[U-Boot] U-Boot and FTP server

2010-06-10 Thread Piotr Piwko
Hello,

Is there any possibility to download a system image from external FTP
server? As I know, U-boot only supports the access to TFTP local
server, but time to time it would be very useful for me if I can
download the image through external FTP server.

Thanks in advance for your engagement,

-- 
Piotr Piwko
http://www.embedded-engineering.pl/
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-Boot and FTP server

2010-06-10 Thread Stefano Babic
Piotr Piwko wrote:
> Hello,
> 

Hi,

> Is there any possibility to download a system image from external FTP
> server?

No, there is not, at least at the moment...

> As I know, U-boot only supports the access to TFTP local
> server, but time to time it would be very useful for me if I can
> download the image through external FTP server.

There is no TCP stack in u-boot, only udp, and for this reason you can
use (or port, if it is not yet available) applications based on UDP
only, as tftp.

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ARM: Kirkwood: Add support for OpenRD-Client & OpenRD-Ultimate

2010-06-10 Thread Tanmay Upadhyay
This patch modifies existing OpenRD-Base support to deal with all
the three OpenRD boards (OpenRD-Base, OpenRD-Client & OpenRD-Ultimate).

Signed-off-by: Tanmay Upadhyay 
---
 Makefile|9 +-
 arch/arm/include/asm/mach-types.h   |   13 ++
 board/Marvell/openrd/Makefile   |   65 +
 board/Marvell/openrd/config.mk  |   33 +
 board/Marvell/openrd/kwbimage.cfg   |  168 +++
 board/Marvell/openrd/openrd.c   |  180 +
 board/Marvell/openrd/openrd.h   |   67 ++
 board/Marvell/openrd_base/Makefile  |   56 
 board/Marvell/openrd_base/config.mk |   33 -
 board/Marvell/openrd_base/kwbimage.cfg  |  168 ---
 board/Marvell/openrd_base/openrd_base.c |  160 --
 board/Marvell/openrd_base/openrd_base.h |   46 ---
 include/configs/openrd_client.h |  219 +++
 include/configs/openrd_ultimate.h   |  219 +++
 14 files changed, 972 insertions(+), 464 deletions(-)
 create mode 100644 board/Marvell/openrd/Makefile
 create mode 100644 board/Marvell/openrd/config.mk
 create mode 100644 board/Marvell/openrd/kwbimage.cfg
 create mode 100644 board/Marvell/openrd/openrd.c
 create mode 100644 board/Marvell/openrd/openrd.h
 delete mode 100644 board/Marvell/openrd_base/Makefile
 delete mode 100644 board/Marvell/openrd_base/config.mk
 delete mode 100644 board/Marvell/openrd_base/kwbimage.cfg
 delete mode 100644 board/Marvell/openrd_base/openrd_base.c
 delete mode 100644 board/Marvell/openrd_base/openrd_base.h
 create mode 100644 include/configs/openrd_client.h
 create mode 100644 include/configs/openrd_ultimate.h

diff --git a/Makefile b/Makefile
index c26e491..f12214b 100644
--- a/Makefile
+++ b/Makefile
@@ -3007,8 +3007,15 @@ omap1610h2_cs_autoboot_config:   unconfig
 omap5912osk_config :   unconfig
@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk ti omap
 
+openrd_ultimate_config \
+openrd_client_config \
 openrd_base_config: unconfig
-   @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
+   @$(MKCONFIG) $(@:_config=) arm arm926ejs openrd Marvell kirkwood
+ifneq ($(SRCTREE),$(OBJTREE))
+   @echo "VARIANT= $(@:_config=)" >> $(OBJTREE)/include/config.mk
+else
+   @echo "VARIANT= $(@:_config=)" >> ./include/config.mk
+endif
 
 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
 
diff --git a/arch/arm/include/asm/mach-types.h 
b/arch/arm/include/asm/mach-types.h
index 940d814..19114b0 100644
--- a/arch/arm/include/asm/mach-types.h
+++ b/arch/arm/include/asm/mach-types.h
@@ -2862,6 +2862,7 @@ extern unsigned int __machine_arch_type;
 #define MACH_TYPE_MATRIX5182879
 #define MACH_TYPE_TINY_GURNARD 2880
 #define MACH_TYPE_SPEAR13102881
+#define MACH_TYPE_OPENRD_ULTIMATE  2884
 
 #ifdef CONFIG_ARCH_EBSA110
 # ifdef machine_arch_type
@@ -37063,6 +37064,18 @@ extern unsigned int __machine_arch_type;
 # define machine_is_spear1310()(0)
 #endif
 
+#ifdef CONFIG_MACH_OPENRD_ULTIMATE
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type__machine_arch_type
+# else
+#  define machine_arch_typeMACH_TYPE_OPENRD_ULTIMATE
+# endif
+# define machine_is_openrd_ultimate()  (machine_arch_type == 
MACH_TYPE_OPENRD_ULTIMATE)
+#else
+# define machine_is_openrd_ultimate()  (0)
+#endif
+
 /*
  * These have not yet been registered
  */
diff --git a/board/Marvell/openrd/Makefile b/board/Marvell/openrd/Makefile
new file mode 100644
index 000..96328e7
--- /dev/null
+++ b/board/Marvell/openrd/Makefile
@@ -0,0 +1,65 @@
+#
+# (C) Copyright 2009
+# Net Insight 
+# Written-by: Simon Kagstrom 
+#
+# Based on sheevaplug:
+# (C) Copyright 2009
+# Marvell Semiconductor 
+# Written-by: Prafulla Wadaskar 
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+# MA 02110-1301 USA
+#
+
+include $(TOPDIR)/config.mk
+
+# Get the board variant (base/client/ultimate) from the .mk file
+ifneq ($(SRCTREE),$(OBJTREE))
+include $(OBJTREE)/include/config.mk
+else
+include $(TOPDIR)/include/config.mk
+endif
+
+LIB= $(obj)lib$(BOARD).a
+
+COBJS  := openrd.o

Re: [U-Boot] [PATCH] ARM: Kirkwood: Add support for OpenRD-Client & OpenRD-Ultimate

2010-06-10 Thread Simon Kagstrom
On Thu, 10 Jun 2010 14:42:24 +0530
Tanmay Upadhyay  wrote:

> This patch modifies existing OpenRD-Base support to deal with all
> the three OpenRD boards (OpenRD-Base, OpenRD-Client & OpenRD-Ultimate).

Yes, that's a good change!

> diff --git a/arch/arm/include/asm/mach-types.h 
> b/arch/arm/include/asm/mach-types.h
> index 940d814..19114b0 100644
> --- a/arch/arm/include/asm/mach-types.h
> +++ b/arch/arm/include/asm/mach-types.h
> @@ -2862,6 +2862,7 @@ extern unsigned int __machine_arch_type;
>  #define MACH_TYPE_MATRIX5182879
>  #define MACH_TYPE_TINY_GURNARD 2880
>  #define MACH_TYPE_SPEAR13102881
> +#define MACH_TYPE_OPENRD_ULTIMATE  2884

I don't think this file is supposed to be edited in patches, but rather
synched from arm-linux by Wolfgang from time to time.

> diff --git a/include/configs/openrd_client.h b/include/configs/openrd_client.h
> new file mode 100644
> index 000..d936ffa

Perhaps common parts of this...

> diff --git a/include/configs/openrd_ultimate.h 
> b/include/configs/openrd_ultimate.h
> new file mode 100644
> index 000..a0e0417

and this and openrd_base.h can be merged into a common file. Most stuff
should be identical, right?

// Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ppc4xx: Enable booting with Option E on 460EX/EXr/GT

2010-06-10 Thread Stefan Roese
This patch enables booting with option E on the PPC460EX/EXr/GT.
When booting with Option E, the PLL is in bypass, CPR0_PLLC[ENG]=0.
The Software Boot Configuration Procedure is needed to engage the
PLL and perform a chip reset.

Signed-off-by: Stefan Roese 
---
 arch/powerpc/cpu/ppc4xx/cpu_init.c |   49 ---
 include/ppc440.h   |7 +
 2 files changed, 46 insertions(+), 10 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/cpu_init.c 
b/arch/powerpc/cpu/ppc4xx/cpu_init.c
index 8a6e545..c04eede 100644
--- a/arch/powerpc/cpu/ppc4xx/cpu_init.c
+++ b/arch/powerpc/cpu/ppc4xx/cpu_init.c
@@ -36,6 +36,26 @@ DECLARE_GLOBAL_DATA_PTR;
 #define CONFIG_SYS_PLL_RECONFIG0
 #endif
 
+#if defined(CONFIG_440EPX) || \
+defined(CONFIG_460EX) || defined(CONFIG_460GT)
+static void reset_with_rli(void)
+{
+   u32 reg;
+
+   /*
+* Set reload inhibit so configuration will persist across
+* processor resets
+*/
+   mfcpr(CPR0_ICFG, reg);
+   reg |= CPR0_ICFG_RLI_MASK;
+   mtcpr(CPR0_ICFG, reg);
+
+   /* Reset processor if configuration changed */
+   __asm__ __volatile__ ("sync; isync");
+   mtspr(SPRN_DBCR0, 0x2000);
+}
+#endif
+
 void reconfigure_pll(u32 new_cpu_freq)
 {
 #if defined(CONFIG_440EPX)
@@ -166,19 +186,28 @@ void reconfigure_pll(u32 new_cpu_freq)
}
}
 
-   if (reset_needed) {
+   /* Now reset the CPU if needed */
+   if (reset_needed)
+   reset_with_rli();
+#endif
+
+#if defined(CONFIG_460EX) || defined(CONFIG_460GT)
+   u32 reg;
+
+   /*
+* See "9.2.1.1 Booting with Option E" in the 460EX/GT
+* users manual
+*/
+   mfcpr(CPR0_PLLC, reg);
+   if ((reg & (CPR0_PLLC_RST | CPR0_PLLC_ENG)) == CPR0_PLLC_RST) {
/*
-* Set reload inhibit so configuration will persist across
-* processor resets
+* Set engage bit
 */
-   mfcpr(CPR0_ICFG, reg);
-   reg &= ~CPR0_ICFG_RLI_MASK;
-   reg |= 1 << 31;
-   mtcpr(CPR0_ICFG, reg);
+   reg = (reg & ~CPR0_PLLC_RST) | CPR0_PLLC_ENG;
+   mtcpr(CPR0_PLLC, reg);
 
-   /* Reset processor if configuration changed */
-   __asm__ __volatile__ ("sync; isync");
-   mtspr(SPRN_DBCR0, 0x2000);
+   /* Now reset the CPU */
+   reset_with_rli();
}
 #endif
 }
diff --git a/include/ppc440.h b/include/ppc440.h
index 5f87d2c..c807dda 100644
--- a/include/ppc440.h
+++ b/include/ppc440.h
@@ -1719,6 +1719,13 @@
 #define CPR0_PERD_PERDV0_MASK  0x0700
 #endif
 
+#if defined(CONFIG_460EX) || defined(CONFIG_460GT)
+#define CPR0_ICFG_RLI_MASK 0x8000
+
+#define CPR0_PLLC_RST  0x8000
+#define CPR0_PLLC_ENG  0x4000
+#endif
+
 /*-
 | PCI Internal Registers et. al. (accessed via plb)
 +*/
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ppc4xx: Enable PCIe support without PCI support on PPC440/460

2010-06-10 Thread Stefan Roese
By not defining CONFIG_SYS_PCI_MASTER_INIT and CONFIG_SYS_PCI_TARGET_INIT,
PCI support (host and adapter) will not be enabled. But it's still
possible to use the U-Boot PCI infrastructure for the PCIe ports.

This configuration option is needed for a new 460GT board, which uses
PCIe but has PCI disabled.

Signed-off-by: Stefan Roese 
---
 arch/powerpc/cpu/ppc4xx/4xx_pci.c |   12 +++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/4xx_pci.c 
b/arch/powerpc/cpu/ppc4xx/4xx_pci.c
index eed4534..bfba952 100644
--- a/arch/powerpc/cpu/ppc4xx/4xx_pci.c
+++ b/arch/powerpc/cpu/ppc4xx/4xx_pci.c
@@ -476,7 +476,9 @@ void pci_init_board(void)
  
*-*/
 #if defined(CONFIG_440)
 
+#if defined(CONFIG_SYS_PCI_MASTER_INIT) || defined(CONFIG_SYS_PCI_TARGET_INIT)
 static struct pci_controller ppc440_hose = {0};
+#endif
 
 /*
  * This routine is called to determine if a pci scan should be
@@ -704,6 +706,7 @@ void pci_master_init(struct pci_controller *hose)
__attribute__((weak, alias("__pci_master_init")));
 #endif /* CONFIG_SYS_PCI_MASTER_INIT */
 
+#if defined(CONFIG_SYS_PCI_MASTER_INIT) || defined(CONFIG_SYS_PCI_TARGET_INIT)
 int pci_440_init (struct pci_controller *hose)
 {
int reg_num = 0;
@@ -845,12 +848,19 @@ int pci_440_init (struct pci_controller *hose)
}
return hose->last_busno;
 }
+#endif
 
 void pci_init_board(void)
 {
-   int busno;
+   int busno = 0;
 
+   /*
+* Only init PCI when either master or target functionality
+* is selected.
+*/
+#if defined(CONFIG_SYS_PCI_MASTER_INIT) || defined(CONFIG_SYS_PCI_TARGET_INIT)
busno = pci_440_init (&ppc440_hose);
+#endif
 #if (defined(CONFIG_440SPE) || \
 defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
 !defined(CONFIG_PCI_DISABLE_PCIE)
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ppc4xx: Enable overwriting of default scan window for IBM DDR2 controller

2010-06-10 Thread Stefan Roese
This patch makes it possible to overwrite the default auto-calibration
scan window (SDRAM_WRDTR.[WDTR], SDRAM_CLKTR.[CKTR] values) with
board specific values. The parameters of the weak default function are
corrected as well. This way we don't need the casts any more.

This feature will be used by an upcoming PPC460GT board port.

Signed-off-by: Stefan Roese 
---
 arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c |   17 +
 arch/powerpc/include/asm/ppc4xx-sdram.h  |5 +
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c 
b/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
index aed0ed7..0f69ef9 100644
--- a/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
+++ b/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
@@ -83,11 +83,6 @@ struct ddrautocal {
u32 flags;
 };
 
-struct sdram_timing {
-   u32 wrdtr;
-   u32 clktr;
-};
-
 struct sdram_timing_clks {
u32 wrdtr;
u32 clktr;
@@ -145,11 +140,12 @@ void
 spd_ddr_init_hang(void) __attribute__((weak, alias("__spd_ddr_init_hang")));
 #endif /* defined(CONFIG_SPD_EEPROM) */
 
-ulong __ddr_scan_option(ulong default_val)
+struct sdram_timing *__ddr_scan_option(struct sdram_timing *default_val)
 {
return default_val;
 }
-ulong ddr_scan_option(ulong) __attribute__((weak, alias("__ddr_scan_option")));
+struct sdram_timing *ddr_scan_option(struct sdram_timing *)
+   __attribute__((weak, alias("__ddr_scan_option")));
 
 u32 __ddr_rdss_opt(u32 default_val)
 {
@@ -931,7 +927,7 @@ static u32 DQS_calibration_methodB(struct ddrautocal *cal)
  * known working {SDRAM_WRDTR.[WDTR], SDRAM_CLKTR.[CKTR]} value
  * pairs via a board defined ddr_scan_option() function.
  */
-struct sdram_timing full_scan_options[] = {
+static struct sdram_timing full_scan_options[] = {
{0, 0}, {0, 1}, {0, 2}, {0, 3},
{1, 0}, {1, 1}, {1, 2}, {1, 3},
{2, 0}, {2, 1}, {2, 2}, {2, 3},
@@ -970,10 +966,7 @@ u32 DQS_autocalibration(void)
 
memset(&tcal, 0, sizeof(tcal));
 
-   ddr_scan_option((ulong)full_scan_options);
-
-   scan_list =
- (struct sdram_timing *)ddr_scan_option((ulong)full_scan_options);
+   scan_list = ddr_scan_option(full_scan_options);
 
mfsdram(SDRAM_MCOPT1, val);
if ((val & SDRAM_MCOPT1_MCHK_CHK_REP) == SDRAM_MCOPT1_MCHK_CHK_REP)
diff --git a/arch/powerpc/include/asm/ppc4xx-sdram.h 
b/arch/powerpc/include/asm/ppc4xx-sdram.h
index 92be514..66cf509 100644
--- a/arch/powerpc/include/asm/ppc4xx-sdram.h
+++ b/arch/powerpc/include/asm/ppc4xx-sdram.h
@@ -1394,6 +1394,11 @@
 #endif /* CONFIG_SDRAM_PPC4xx_DENALI_DDR2 */
 
 #ifndef __ASSEMBLY__
+struct sdram_timing {
+   u32 wrdtr;
+   u32 clktr;
+};
+
 /*
  * Prototypes
  */
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ppc4xx: DDR2: Complete RDSS configuration on non-SPD based boards

2010-06-10 Thread Stefan Roese
As described in item #10 of the SDRAM initialization (chapter 22.2.9
of the PPC460EX/EXr/GT users manual), RDSS may need to be adjusted. The
code for this is now factored out and executed for non-SPD based boards
as well.

Signed-off-by: Stefan Roese 
---
 arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c |   52 +++
 1 files changed, 38 insertions(+), 14 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c 
b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
index faddee9..b2cc2fe 100644
--- a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
+++ b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
@@ -68,6 +68,31 @@
   "SDRAM_" #mnemonic, SDRAM_##mnemonic, data); \
} while (0)
 
+#if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
+static void update_rdcc(void)
+{
+   u32 val;
+
+   /*
+* Complete RDSS configuration as mentioned on page 7 of the AMCC
+* PowerPC440SP/SPe DDR2 application note:
+* "DDR1/DDR2 Initialization Sequence and Dynamic Tuning"
+*
+* Or item #10 "10. Complete RDSS configuration" in chapter
+* "22.2.9 SDRAM Initialization" of AMCC PPC460EX/EXr/GT users
+* manual.
+*/
+   mfsdram(SDRAM_RTSR, val);
+   if ((val & SDRAM_RTSR_TRK1SM_MASK) == SDRAM_RTSR_TRK1SM_ATPLS1) {
+   mfsdram(SDRAM_RDCC, val);
+   if ((val & SDRAM_RDCC_RDSS_MASK) != SDRAM_RDCC_RDSS_T4) {
+   val += 0x4000;
+   mtsdram(SDRAM_RDCC, val);
+   }
+   }
+}
+#endif
+
 #if defined(CONFIG_440)
 /*
  * This DDR2 setup code can dynamically setup the TLB entries for the DDR2
@@ -620,6 +645,12 @@ phys_size_t initdram(int board_type)
 #else
program_DQS_calibration(dimm_populated, iic0_dimm_addr, num_dimm_banks);
 #endif
+   /*
+* Now complete RDSS configuration as mentioned on page 7 of the AMCC
+* PowerPC440SP/SPe DDR2 application note:
+* "DDR1/DDR2 Initialization Sequence and Dynamic Tuning"
+*/
+   update_rdcc();
 
 #ifdef CONFIG_DDR_ECC
/*--
@@ -2692,20 +2723,6 @@ calibration_loop:
blank_string(strlen(str));
 #endif /* CONFIG_DDR_RQDC_FIXED */
 
-   /*
-* Now complete RDSS configuration as mentioned on page 7 of the AMCC
-* PowerPC440SP/SPe DDR2 application note:
-* "DDR1/DDR2 Initialization Sequence and Dynamic Tuning"
-*/
-   mfsdram(SDRAM_RTSR, val);
-   if ((val & SDRAM_RTSR_TRK1SM_MASK) == SDRAM_RTSR_TRK1SM_ATPLS1) {
-   mfsdram(SDRAM_RDCC, val);
-   if ((val & SDRAM_RDCC_RDSS_MASK) != SDRAM_RDCC_RDSS_T4) {
-   val += 0x4000;
-   mtsdram(SDRAM_RDCC, val);
-   }
-   }
-
mfsdram(SDRAM_DLCR, val);
debug("%s[%d] DLCR: 0x%08lX\n", __FUNCTION__, __LINE__, val);
mfsdram(SDRAM_RQDC, val);
@@ -3007,6 +3024,13 @@ phys_size_t initdram(int board_type)
 #endif /* !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) */
 #endif /* CONFIG_PPC4xx_DDR_AUTOCALIBRATION */
 
+   /*
+* Now complete RDSS configuration as mentioned on page 7 of the AMCC
+* PowerPC440SP/SPe DDR2 application note:
+* "DDR1/DDR2 Initialization Sequence and Dynamic Tuning"
+*/
+   update_rdcc();
+
 #if defined(CONFIG_DDR_ECC)
do_program_ecc(0);
 #endif /* defined(CONFIG_DDR_ECC) */
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ppc4xx: Add DDR1/2 macros in ppc4xx-sdram.h for non-405EX as well

2010-06-10 Thread Stefan Roese
This patch adds some DDR(2) macros to all PPC4xx's equipped with
this IBM DDR1/2 controller.

Signed-off-by: Stefan Roese 
---
 arch/powerpc/include/asm/ppc4xx-sdram.h |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/ppc4xx-sdram.h 
b/arch/powerpc/include/asm/ppc4xx-sdram.h
index 66cf509..d9506e2 100644
--- a/arch/powerpc/include/asm/ppc4xx-sdram.h
+++ b/arch/powerpc/include/asm/ppc4xx-sdram.h
@@ -344,6 +344,9 @@
 #define SDRAM_RXBAS_SDSZ_2048  SDRAM_RXBAS_SDSZ_2048MB
 #define SDRAM_RXBAS_SDSZ_4096  SDRAM_RXBAS_SDSZ_4096MB
 #define SDRAM_RXBAS_SDSZ_8192  SDRAM_RXBAS_SDSZ_8192MB
+#endif /* CONFIG_405EX */
+
+/* The mode definitions are the same for all PPC4xx variants */
 #define SDRAM_RXBAS_SDAM_MODE0 PPC_REG_VAL(23, 0x0)
 #define SDRAM_RXBAS_SDAM_MODE1 PPC_REG_VAL(23, 0x1)
 #define SDRAM_RXBAS_SDAM_MODE2 PPC_REG_VAL(23, 0x2)
@@ -356,7 +359,6 @@
 #define SDRAM_RXBAS_SDAM_MODE9 PPC_REG_VAL(23, 0x9)
 #define SDRAM_RXBAS_SDBE_DISABLE   PPC_REG_VAL(31, 0x0)
 #define SDRAM_RXBAS_SDBE_ENABLEPPC_REG_VAL(31, 0x1)
-#endif /* CONFIG_405EX */
 
 /*
  * Memory controller registers
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ppc4xx: Cleanup Boot/FLASH TLB reassignment for PPC440/460

2010-06-10 Thread Stefan Roese
Background Info:
Some PPC440/460 boards have caches enabled in the Boot/FLASH TLB (via
init.S) to speed up the boot process. In relocate_code (start.S) the
cache inhibit attribute for this TLB is set to disable cache. This is
needed for the CFI FLASH driver.

This patch now cleans this code up:
- CONFIG_SYS_TLB_FOR_BOOT_FLASH is defined to 0 (default TLB) if not
  defined in the top of this file. This way, we can remove an ugly
  #ifdef in this code.
- Replace complex "#if defined(CONFIG_440EP) || defined(CONFIG_GR)..."
  statement with "#if defined(CONFIG_440)".
- Remove unnecessary cache invalidate calls resulting in faster bootup.

Signed-off-by: Stefan Roese 
---
 arch/powerpc/cpu/ppc4xx/start.S |   21 ++---
 1 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/start.S b/arch/powerpc/cpu/ppc4xx/start.S
index c739deb..5296dad 100644
--- a/arch/powerpc/cpu/ppc4xx/start.S
+++ b/arch/powerpc/cpu/ppc4xx/start.S
@@ -207,6 +207,10 @@
(0x)
 #endif /* !defined(CONFIG_SYS_DCACHE_SACR_VALUE) */
 
+#if !defined(CONFIG_SYS_TLB_FOR_BOOT_FLASH)
+#define CONFIG_SYS_TLB_FOR_BOOT_FLASH  0   /* use TLB 0 as default */
+#endif
+
 #define function_prolog(func_name) .text; \
.align 2; \
.globl func_name; \
@@ -1457,34 +1461,21 @@ relocate_code:
isync
 #endif /* CONFIG_SYS_INIT_RAM_DCACHE */
 
-#if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
-defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
-defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
-defined(CONFIG_460SX)
/*
 * On some 440er platforms the cache is enabled in the first TLB 
(Boot-CS)
 * to speed up the boot process. Now this cache needs to be disabled.
 */
-   iccci   0,0 /* Invalidate inst cache */
-   dccci   0,0 /* Invalidate data cache, now no longer 
our stack */
-   sync
-   isync
-
+#if defined(CONFIG_440)
/* Clear all potential pending exceptions */
mfspr   r1,SPRN_MCSR
mtspr   SPRN_MCSR,r1
-#ifdef CONFIG_SYS_TLB_FOR_BOOT_FLASH
addir1,r0,CONFIG_SYS_TLB_FOR_BOOT_FLASH /* Use defined TLB */
-#else
-   addir1,r0,0x/* Default TLB entry is #0 */
-#endif /* CONFIG_SYS_TLB_FOR_BOOT_FLASH */
tlbre   r0,r1,0x0002/* Read contents */
ori r0,r0,0x0c00/* Or in the inhibit, write through bit 
*/
tlbwe   r0,r1,0x0002/* Save it out */
sync
isync
-#endif /* defined(CONFIG_440EP) || ... || defined(CONFIG_460GT) */
+#endif /* defined(CONFIG_440) */
mr  r1,  r3 /* Set new stack pointer*/
mr  r9,  r4 /* Save copy of Init Data pointer   */
mr  r10, r5 /* Save copy of Destination Address */
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] net: Add option to disable fibre on M88E1111 PHY for PPC4xx

2010-06-10 Thread Stefan Roese
By defining CONFIG_M88E_DISABLE_FIBRE boards can configure the
M88E PYH to disable fibre. This is needed for an upcoming PPC460GT
based board, which has fibre/copper auto-selection enabled by default.
This doesn't seem to work. So we disable fibre in the PHY register.

Signed-off-by: Stefan Roese 
Cc: Ben Warren 
---
 drivers/net/4xx_enet.c |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
index 2fac641..2958903 100644
--- a/drivers/net/4xx_enet.c
+++ b/drivers/net/4xx_enet.c
@@ -1095,6 +1095,11 @@ static int ppc_4xx_eth_init (struct eth_device *dev, 
bd_t * bis)
miiphy_write (dev->name, reg, 0x18, 0x4101);
miiphy_write (dev->name, reg, 0x09, 0x0e00);
miiphy_write (dev->name, reg, 0x04, 0x01e1);
+#if defined(CONFIG_M88E_DISABLE_FIBRE)
+   miiphy_read(dev->name, reg, 0x1b, ®_short);
+   reg_short |= 0x8000;
+   miiphy_write(dev->name, reg, 0x1b, reg_short);
+#endif
 #endif
 #if defined(CONFIG_M88E1112_PHY)
if (bis->bi_phymode[devnum] == BI_PHYMODE_SGMII) {
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ppc4xx: Add T3COPR board support (PPC460GT based)

2010-06-10 Thread Stefan Roese
This patch adds support for the T3CORP board, based on the
AppliedMicro (AMCC) PPC460GT.

Signed-off-by: Stefan Roese 
---
 MAINTAINERS|1 +
 MAKEALL|1 +
 Makefile   |3 +
 board/t3corp/Makefile  |   53 +
 board/t3corp/chip_config.c |   59 +
 board/t3corp/config.mk |   39 
 board/t3corp/init.S|   99 
 board/t3corp/t3corp.c  |  198 
 include/configs/t3corp.h   |  544 
 9 files changed, 997 insertions(+), 0 deletions(-)
 create mode 100644 board/t3corp/Makefile
 create mode 100644 board/t3corp/chip_config.c
 create mode 100644 board/t3corp/config.mk
 create mode 100644 board/t3corp/init.S
 create mode 100644 board/t3corp/t3corp.c
 create mode 100644 include/configs/t3corp.h

diff --git a/MAINTAINERS b/MAINTAINERS
index 7a13d28..5b88243 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -383,6 +383,7 @@ Stefan Roese 
rainier PPC440GRx
sequoia PPC440EPx
sycamorePPC405GPr
+   t3corp  PPC460GT
taishan PPC440GX
walnut  PPC405GP
yellowstone PPC440GR
diff --git a/MAKEALL b/MAKEALL
index 2527352..17978dd 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -262,6 +262,7 @@ LIST_4xx="  \
sc3 \
sequoia \
sequoia_nand\
+   t3corp  \
taihu   \
taishan \
v5fx30teval \
diff --git a/Makefile b/Makefile
index c26e491..0efbff0 100644
--- a/Makefile
+++ b/Makefile
@@ -1545,6 +1545,9 @@ rainier_ramboot_config: unconfig
@echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
$(obj)board/amcc/sequoia/config.tmp
 
+t3corp_config: unconfig
+   @$(MKCONFIG) $(@:_config=) powerpc ppc4xx t3corp
+
 taihu_config:  unconfig
@$(MKCONFIG) $(@:_config=) powerpc ppc4xx taihu amcc
 
diff --git a/board/t3corp/Makefile b/board/t3corp/Makefile
new file mode 100644
index 000..e2bb546
--- /dev/null
+++ b/board/t3corp/Makefile
@@ -0,0 +1,53 @@
+#
+# (C) Copyright 2010
+# Stefan Roese, DENX Software Engineering, s...@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).a
+
+COBJS-y:= $(BOARD).o
+COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
+SOBJS  := init.o
+
+COBJS   := $(COBJS-y)
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):$(OBJS) $(SOBJS)
+   $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+
+clean:
+   rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak $(obj).depend
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/t3corp/chip_config.c b/board/t3corp/chip_config.c
new file mode 100644
index 000..c00bf16
--- /dev/null
+++ b/board/t3corp/chip_config.c
@@ -0,0 +1,59 @@
+/*
+ * (C) Copyright 2010
+ * Stefan Roese, DENX Software Engineering, s...@denx.de.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#include 
+#include 
+
+struct ppc4xx_config ppc4xx_config_val[] = {
+   {
+   "600", "CPU: 600 PLB: 200 OPB: 100 EBC: 100",
+ 

Re: [U-Boot] [PATCH] ARM: Kirkwood: Add support for OpenRD-Client & OpenRD-Ultimate

2010-06-10 Thread Tanmay Upadhyay


On 06/10/2010 02:46 PM, Simon Kagstrom wrote:

On Thu, 10 Jun 2010 14:42:24 +0530
Tanmay Upadhyay  wrote:

   

This patch modifies existing OpenRD-Base support to deal with all
the three OpenRD boards (OpenRD-Base, OpenRD-Client&  OpenRD-Ultimate).
 

Yes, that's a good change!

   

diff --git a/arch/arm/include/asm/mach-types.h 
b/arch/arm/include/asm/mach-types.h
index 940d814..19114b0 100644
--- a/arch/arm/include/asm/mach-types.h
+++ b/arch/arm/include/asm/mach-types.h
@@ -2862,6 +2862,7 @@ extern unsigned int __machine_arch_type;
  #define MACH_TYPE_MATRIX5182879
  #define MACH_TYPE_TINY_GURNARD 2880
  #define MACH_TYPE_SPEAR13102881
+#define MACH_TYPE_OPENRD_ULTIMATE  2884
 

I don't think this file is supposed to be edited in patches, but rather
synched from arm-linux by Wolfgang from time to time.

   
Sorry, I didn't know about that. However, as the number is already 
registered, is that ok to have it here?

diff --git a/include/configs/openrd_client.h b/include/configs/openrd_client.h
new file mode 100644
index 000..d936ffa
 

Perhaps common parts of this...

   

diff --git a/include/configs/openrd_ultimate.h 
b/include/configs/openrd_ultimate.h
new file mode 100644
index 000..a0e0417
 

and this and openrd_base.h can be merged into a common file. Most stuff
should be identical, right?
   
I agree with you. But auto-generated 'config.h' file includes 
. So there has to be one for each board. However, there 
could be one 'openrd.h'  in the configs and three board specific files 
include it. This will increase the number of files, but would decrease 
LOC. What do you think?


Thanks,

Tanmay

// Simon


Email Scanned for Virus&  Dangerous Content by : www.CleanMailGateway.com


Disclaimer: This e-mail message and all attachments transmitted with it are 
intended solely for the use of the addressee and may contain legally privileged 
and confidential information. If the reader of this message is not the intended 
recipient, or an employee or agent responsible for delivering this message to 
the intended recipient, you are hereby notified that any dissemination, 
distribution, copying, or other use of this message or its attachments is 
strictly prohibited. If you have received this message in error, please notify 
the sender immediately by replying to this message and please delete it from 
your computer. Any views expressed in this message are those of the individual 
sender unless otherwise stated.Company has taken enough precautions to prevent 
the spread of viruses. However the company accepts no liability for any damage 
caused by any virus transmitted by this email.

   
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Fw: Regarding M96 GPU

2010-06-10 Thread Thirumalai
Hi Stefen,
I just want to know whether the u-boot will support M96 GPU. I 
 having a graphics card which is based on the M96 and it working fine on 
 linux environment. But it is not getting detected on u-boot. I am using 
 u-boot 2010-03.
 
 What and all need to modify to support M96 on u-boot?
 
 -Thirumalai 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Regarding M96 GPU

2010-06-10 Thread Thirumalai

- Original Message - 
From: "Stefan Roese" 
To: "Thirumalai" 
Sent: Thursday, June 10, 2010 3:16 PM
Subject: Re: Regarding M96 GPU


> Hi Thirumalai,
>
> On Thursday 10 June 2010 11:43:23 Thirumalai wrote:
>> I just want to know whether the u-boot will support M96 GPU. 
>> I
>> having a graphics card which is based on the M96 and it working fine on
>> linux environment. But it is not getting detected on u-boot. I am using
>> u-boot 2010-03.
>>
>> What and all need to modify to support M96 on u-boot?
>
> Sorry, but I really don't know. I suggest you send this question to the 
> u-boot
> mainline list instead, and perhaps Cc the u-boot-video custodian (Anatolij
> Gustschin )

Thanks Stefen.

>
> Cheers,
> Stefan
>
> --
> DENX Software Engineering GmbH,  MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] ARM: Kirkwood: Add support for OpenRD-Client & OpenRD-Ultimate

2010-06-10 Thread Simon Kagstrom
On Thu, 10 Jun 2010 15:08:00 +0530
Tanmay Upadhyay  wrote:

> >> +#define MACH_TYPE_OPENRD_ULTIMATE  2884
> >>  
> > I don't think this file is supposed to be edited in patches, but rather
> > synched from arm-linux by Wolfgang from time to time.
>
> Sorry, I didn't know about that. However, as the number is already 
> registered, is that ok to have it here?

Probably Wolfgang or Tom Rix (the ARM maintainer) can synch it if you
ask them to.

> I agree with you. But auto-generated 'config.h' file includes 
> . So there has to be one for each board. However, there 
> could be one 'openrd.h'  in the configs and three board specific files 
> include it. This will increase the number of files, but would decrease 
> LOC. What do you think?

Personally I'd prefer to keep the common parts in a common file, so I'd
vote for that solution.

// Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Regarding M96 GPU

2010-06-10 Thread Anatolij Gustschin
Hi Thirumalai,

On Thu, 10 Jun 2010 15:26:11 +0530
"Thirumalai"  wrote:

> - Original Message - 
> From: "Stefan Roese" 
> To: "Thirumalai" 
> Sent: Thursday, June 10, 2010 3:16 PM
> Subject: Re: Regarding M96 GPU
> 
> 
> > Hi Thirumalai,
> >
> > On Thursday 10 June 2010 11:43:23 Thirumalai wrote:
> >> I just want to know whether the u-boot will support M96 GPU. 
> >> I
> >> having a graphics card which is based on the M96 and it working fine on
> >> linux environment. But it is not getting detected on u-boot. I am using
> >> u-boot 2010-03.
> >>
> >> What and all need to modify to support M96 on u-boot?

You need to add a video driver for M96 which performs initialization
of DDR memory controller, detects the output connector, etc.
Check what Linux driver does for initialization and port this
code to U-Boot.

Best regards,
Anatolij
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] arm: add initilisation of watchdog in init_sequence

2010-06-10 Thread Nicolas Ferre
Le 30/05/2010 13:17, Tom Rix :
> Nicolas Ferre wrote:
>> For platforms that implement a hardware watchdog, call its initialization
>> routine in init_sequence.
>> This location has been chosen to be the closest to initialization of
>> console as
>> some watchdog drivers are writing status messages. On the other hand,
>> watchdog
>> setup should be close to chip startup to be able to begin the triggering
>> quickly.
>>
> I am not opposed to putting watchdog into the init sequence.
> 
> A current ARM way for initializing the watchdog is to do it in
> s_init.  Why doesn't this work for you ?

Well, I only see it done like this in some omap platforms. It does work
for me because we do not always use the lowlevel_init.S file: sometimes,
the low level initialization is done by a tiny first level bootloader...

> Reviewing other watchdog additions in the init sequences from
> powerpc,sh,m68k
> If an init is to be added, this setup should be cut-n-pasted from one
> of these.  There should be follow-on patches to convert the ARM s_init's
> over to using the init sequence.

I guess that as architecture implementation are different in the way of
initializing watchdog, I may include this in each board file or create a
common initialization for AT91 at board level...

Best regards,
-- 
Nicolas Ferre

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] serial: atmel_usart: insert watchdog petting during putc() and tstc()

2010-06-10 Thread Nicolas Ferre
Watchdog resets were experienced during autoboot delay. Petting the watchdog
during putc() and tstc() functions solve the issue.

Signed-off-by: Nicolas Ferre 
---
 drivers/serial/atmel_usart.c |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c
index cad3412..fcaee5d 100644
--- a/drivers/serial/atmel_usart.c
+++ b/drivers/serial/atmel_usart.c
@@ -80,7 +80,8 @@ void serial_putc(char c)
if (c == '\n')
serial_putc('\r');
 
-   while (!(usart3_readl(CSR) & USART3_BIT(TXRDY))) ;
+   while (!(usart3_readl(CSR) & USART3_BIT(TXRDY)))
+WATCHDOG_RESET();
usart3_writel(THR, c);
 }
 
@@ -99,5 +100,6 @@ int serial_getc(void)
 
 int serial_tstc(void)
 {
+   WATCHDOG_RESET();
return (usart3_readl(CSR) & USART3_BIT(RXRDY)) != 0;
 }
-- 
1.5.6.5

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] MMC/SD Support for Open-RD Base/Ultimate

2010-06-10 Thread Fred Server
Hello All,

Are there any plans to add MMC/SD support for the Open-RD Base/Ultimate
platforms ?  It was on a to be done list over 6 months ago, but there
doesn't seem to have been any movement.  I have tried a recent version of
U-boot and like some of the new features, but because I need to boot from
SD, I am stuck with an ancient unsupported 1.1.4 version.  Thanks for any
help in this area.

Fred
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4] TI: DaVinci: Add board specific code for da850 EVM

2010-06-10 Thread Paulraj, Sandeep


> >
> > Signed-off-by: Sudhakar Rajashekhara 
> > Acked-by: Ben Gardiner 
> > Reviewed-by: Wolfgang Denk 
> > ---
> >  MAINTAINERS  |4 +
> >  MAKEALL  |1 +
> >  Makefile |3 +-
> >  arch/arm/include/asm/arch-davinci/hardware.h |1 +
> >  board/davinci/da8xxevm/Makefile  |1 +
> >  board/davinci/da8xxevm/da850evm.c|  111
> 
> >  include/configs/da850evm.h   |  140
> > ++
> >  7 files changed, 260 insertions(+), 1 deletions(-)
> >  create mode 100644 board/davinci/da8xxevm/da850evm.c
> >  create mode 100644 include/configs/da850evm.h
> 
> 
> Sudhakar,
> 
> Unfortunately there are some checkpatch errors which need your attention.
> 
> Atleast one error cannot be fixed but the others should.
> 
> Also when I tried to apply the first patch in this series, it just would
> not apply. I applied the patch that this is dependent on.
> 
> Can you submit all 3 patches one final time? It appears as if there are
> some dependencies.
> 
> Thanks,
> Sandeep

It appears there was an issue with my version of git, which seemed to be the 
reason for these issues.

I have applied this patch set to u-boot-ti.

Thanks,
Sandeep
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Please Pull u-boot-ti/master

2010-06-10 Thread s-paulraj
Tom,

Please pull u-boot-ti/master.
This set consists of a patch set from Sudhkar which earlier broke other
DaVinci boards. I verified that all DaVinci boards built fine.

Thanks,
Sandeep

The following changes since commit 23911740486c59851df57521c49bfd81ce1865ec:
  Delio Brignoli (1):
DaVinci: Improve DaVinci SPI speed.

are available in the git repository at:

  git://git.denx.de/u-boot-ti.git master

Grazvydas Ignotas (1):
  OMAP3: pandora: enable battery backup capacitor

Sudhakar Rajashekhara (3):
  da830: Move common code out of da830evm.c file
  TI: DaVinci: Prepare for da850 support
  TI: DaVinci: Add board specific code for da850 EVM

 MAINTAINERS |4 +
 MAKEALL |1 +
 Makefile|5 +-
 arch/arm/include/asm/arch-davinci/hardware.h|1 +
 board/davinci/{da830evm => da8xxevm}/Makefile   |6 +-
 board/davinci/da8xxevm/common.c |   55 +
 board/davinci/da8xxevm/common.h |   30 +
 board/davinci/{da830evm => da8xxevm}/config.mk  |0
 board/davinci/{da830evm => da8xxevm}/da830evm.c |   29 ++---
 board/davinci/da8xxevm/da850evm.c   |  111 ++
 board/pandora/pandora.c |9 ++
 include/configs/da850evm.h  |  140 +++
 12 files changed, 371 insertions(+), 20 deletions(-)
 rename board/davinci/{da830evm => da8xxevm}/Makefile (90%)
 create mode 100644 board/davinci/da8xxevm/common.c
 create mode 100644 board/davinci/da8xxevm/common.h
 rename board/davinci/{da830evm => da8xxevm}/config.mk (100%)
 rename board/davinci/{da830evm => da8xxevm}/da830evm.c (90%)
 create mode 100644 board/davinci/da8xxevm/da850evm.c
 create mode 100644 include/configs/da850evm.h
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] build u-boot 2010-03 for freescale 8349E

2010-06-10 Thread Zied Fakhfakh
HI all,

I'm new to u-boot. I trying to build u-boot 2010-03 for freescale 8349E

make MPC8349E_config

does not work ?

any suggestion ?

-- 
Zied FAKHFAKH
Dot TN - CTO

@: fz...@dottn.com
t: +216 71 82 89 58
f: +216 71 82 89 58
w: http://www.dottn.com
a: Centre Molka, Esc E, Bur 17 - Manar 2 - 2092 - Tunis - Tunisia
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] build u-boot 2010-03 for freescale 8349E

2010-06-10 Thread Stefano Babic
Zied Fakhfakh wrote:
> > HI all,
> >
> > I'm new to u-boot. I trying to build u-boot 2010-03 for freescale 8349E
> >
> > make MPC8349E_config
> >
> > does not work ?

Probably because there is not a board with this name...

> >
> > any suggestion ?

There are some boards using this processor:

MPC8349EMDS
MPC8349ITX
TQM834x

For example, make MPC8349EMDS_config works flawlessy. You must check if
your target matches one of this board or if it is very similar to one of
them and making the porting. Only you know your target.

Regards,
Stefano Babic


-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] build u-boot 2010-03 for freescale 8349E

2010-06-10 Thread Zied Fakhfakh
it's definitly this one

On Thu, Jun 10, 2010 at 6:40 PM, Zied Fakhfakh  wrote:

> MPC8349ITX
>
http://www.linuxfordevices.com/files/misc/freescale_mpc8349e_mitx.jpg

[r...@zitouna u-boot-2010.03]# make MPC8349ITX_config
make: ppc_8xx-gcc: Command not found
/bin/sh: ppc_8xx-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
Generating include/autoconf.mk
/bin/sh: line 3: ppc_8xx-gcc: command not found
/bin/sh: ppc_8xx-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
Generating include/autoconf.mk.dep
/bin/sh: line 3: ppc_8xx-gcc: command not found
make: ppc_8xx-gcc: Command not found
/bin/sh: ppc_8xx-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/sh: ppc_8xx-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
Configuring for MPC8349ITX board...
[r...@zitouna u-boot-2010.03]#

any suggestion ?

am on Red Hat Enterprise Linux 5 x86_64, I don't know how to go
CROSS_COMPILING :(

-- 
Zied FAKHFAKH
Dot TN - CTO

@: fz...@dottn.com
t: +216 71 82 89 58
f: +216 71 82 89 58
w: http://www.dottn.com
a: Centre Molka, Esc E, Bur 17 - Manar 2 - 2092 - Tunis - Tunisia
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] build u-boot 2010-03 for freescale 8349E

2010-06-10 Thread Ben Warren
On 6/10/2010 10:51 AM, Zied Fakhfakh wrote:
> it's definitly this one
>
> On Thu, Jun 10, 2010 at 6:40 PM, Zied Fakhfakh  wrote:
>
>
>> MPC8349ITX
>>
>>  
> http://www.linuxfordevices.com/files/misc/freescale_mpc8349e_mitx.jpg
>
> [r...@zitouna u-boot-2010.03]# make MPC8349ITX_config
> make: ppc_8xx-gcc: Command not found
> /bin/sh: ppc_8xx-gcc: command not found
> dirname: missing operand
> Try `dirname --help' for more information.
> Generating include/autoconf.mk
> /bin/sh: line 3: ppc_8xx-gcc: command not found
> /bin/sh: ppc_8xx-gcc: command not found
> dirname: missing operand
> Try `dirname --help' for more information.
> Generating include/autoconf.mk.dep
> /bin/sh: line 3: ppc_8xx-gcc: command not found
> make: ppc_8xx-gcc: Command not found
> /bin/sh: ppc_8xx-gcc: command not found
> dirname: missing operand
> Try `dirname --help' for more information.
> /bin/sh: ppc_8xx-gcc: command not found
> dirname: missing operand
> Try `dirname --help' for more information.
> Configuring for MPC8349ITX board...
> [r...@zitouna u-boot-2010.03]#
>
> any suggestion ?
>
> am on Red Hat Enterprise Linux 5 x86_64, I don't know how to go
> CROSS_COMPILING :(
>
>
You need a toolchain.  Try this one:

http://www.denx.de/wiki/DULG/ELDK

There's a mailing list and everything.  Ask intelligent questions there.

regards,
Ben
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Problems booting PPC with RAM root fs

2010-06-10 Thread Adam Moskowitz
Here's my situation . . . We have a custom PPC-based board that
currently boots from a kernel in the on-board flash and the root fs
mounted via NFS. My project is to move the root fs into flash; to test
that -- mainly to save time and write cycles on the flash -- I'm trying
to do my debugging by pulling the root fs into RAM using TFTP then boot
from that. of course, it's not working.

Here's a summary of how I got this far: I created a file with dd,
formatted it with mke2fs, mounted it (-o loop), copied in a known
working root fs), unmounted, gzipped, then ran mkimage as follows:

mkimage \
-n "RAMdisk image" \
-A PPC \
-O linux \
-T ramdisk \
-C gzip \
-d ext2-image.gz \
uboot-image

Here's how I tried to boot the system:

U-Boot 1.1.4 (May 20 2008 - 16:49:25)
. . .
=> setenv netmask 255.255.255.252
=> setenv gatewayip 10.3.0.33
=> setenv ipaddr 10.3.0.34
=> setenv serverip 10.255.8.1
=> tftp 0x400 testlab/uboot-image
(tftp results)
done!
Bytes transferred = 10014657 (98cfc1 hex)
=> setenv bootargs console=ttl0,19200,root=/dev/ram,load_ramdisk=1
=> bootm 0xFC04 0x400

[
a complete log of the boot session appears below
(just in case attachments don't work)
]

The system uncompresses and recognizes the kernel and the rootfs, but
fails because for some reason, it's trying to load the root fs via NFS,
even though I thought I told it not to do that.

I hope this is as simple as I don't have the right kernel command line
args, but I'm at a loss for which args to give it to fix this.

If anyone can please point me in the right direction, I'd really
appreciate it.

Thanks,
Adam



- typescript of boot session starts here -
Reset cause: Powerup
This is build nodebd3.1.12
Initializing ECC ... RAM initialized
Jumping to U-Boot...


U-Boot 1.1.4 (May 20 2008 - 16:49:25)


I2C:   ready
DRAM:  128 MB
FLASH: 32 MB
Found mac: 00:18:17:10:00:cd
ethaddr 00:18:17:10:00:cd
Hit any key to stop autoboot:  3  2  0 
=> setenv netmask 255.255.255.252
=> setenv gatewayip 10.3.0.33
=> setenv ipaddr 10.3.0.34
=> setenv serverip 10.255.8.1
=> tftp 0x400 testlab/uboot-image
Ethernet clock acquiring lock... done
PHY Hard Reset.
setup_phy: PHY found at address 0
setup_phy: PHY found at address 1
XLLTemac_PhyInit: Vitesse 8201 PHY at 1 configured
Waiting for link...  link up
Waiting for DCM lock... locked
Speed: 1000Mb, Full duplex
TFTP from server 10.255.8.1; our IP address is 10.3.0.34; sending through 
gateway 10.3.0.33
Filename 'testlab/uboot-image'.
Load address: 0x400
Loadingg: *#
 #
 (line repeats 29 times)
 ##
done!
Bytes transferred = 10014657 (98cfc1 hex)
=> setenv bootargs console=ttl0,19200,root=/dev/ram,load_ramdisk=1
=> bootm 0xFC04 0x400
## Booting image at fc04 ...
   Image Name:   Linux-2.4.20_mvl31-ml300
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:633621 Bytes = 618.8 kB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
Uncompressing Kernel Image from src 0xfc040040 to dest 0x0..OK
## Loading RAMDisk Image at 0400 ...
   Image Name:   RAMdisk image for adam
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:10014593 Bytes =  9.6 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Loading Ramdisk to 07627000, end 07fb3f81 ... OK
Linux version 2.4.20_mvl31-ml300 (drad...@drdws009.nyc.deshaw.com) (gcc version 
3.3.6) #1 Tue Jul 7 16:43:48 EDT 2009
Xilinx Virtex-II Pro port (C) 2002 MontaVista Software, Inc. (sou...@mvista.com)
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttl0,19200,root=/dev/ram,load_ramdisk=1
Xilinx INTC #0 at 0x03F0 (DCR)
Calibrating delay loop... 299.00 BogoMIPS
Memory: 118208k available (1092k kernel code, 384k data, 60k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
LSP Revision 42
ikconfig 0.5 with /proc/ikconfig
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgo...@atnf.csiro.au)
devfs: boot_options: 0x1
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
PHY Hard Reset.<3>eth0: using sgDMA mode.
[descriptor_init]Recv V:c900d000, P:07fd
[descriptor_init

Re: [U-Boot] build u-boot 2010-03 for freescale 8349E

2010-06-10 Thread Zied Fakhfakh
On Thu, Jun 10, 2010 at 6:53 PM, Ben Warren wrote:

> You need a toolchain.  Try this one:
>
> http://www.denx.de/wiki/DULG/ELDK
>
> There's a mailing list and everything.  Ask intelligent questions there.
>
[?]

>
> regards,
>



-- 
Zied FAKHFAKH
Dot TN - CTO

@: fz...@dottn.com
t: +216 71 82 89 58
f: +216 71 82 89 58
w: http://www.dottn.com
a: Centre Molka, Esc E, Bur 17 - Manar 2 - 2092 - Tunis - Tunisia
<<344.gif>>___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Problems booting PPC with RAM root fs

2010-06-10 Thread Wolfgang Denk
Dear Adam Moskowitz,

In message <20100610173438.ga25...@cakewalk.menlo.com> you wrote:
>
> Here's my situation . . . We have a custom PPC-based board that
> currently boots from a kernel in the on-board flash and the root fs
> mounted via NFS. My project is to move the root fs into flash; to test
> that -- mainly to save time and write cycles on the flash -- I'm trying
> to do my debugging by pulling the root fs into RAM using TFTP then boot
> from that. of course, it's not working.
> 
> Here's a summary of how I got this far: I created a file with dd,
> formatted it with mke2fs, mounted it (-o loop), copied in a known
> working root fs), unmounted, gzipped, then ran mkimage as follows:

Do you know the root file system builder RFSB? See
http://git.denx.de/?p=rfsb.git;a=summary

> U-Boot 1.1.4 (May 20 2008 - 16:49:25)

This is a very old version. It does not have any device tree support.
Consider updating.

> => setenv bootargs console=ttl0,19200,root=/dev/ram,load_ramdisk=1

You must not use commas to separate arguments; This should be

setenv bootargs 'console=ttl0,19200 root=/dev/ram load_ramdisk=1'

Please RTFM!

> The system uncompresses and recognizes the kernel and the rootfs, but
> fails because for some reason, it's trying to load the root fs via NFS,
> even though I thought I told it not to do that.

You did not pass a root= argument - this was part of the console=
argument and ignored.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Death. Destruction. Disease. Horror. That's what war  is  all  about.
That's what makes it a thing to be avoided.
-- Kirk, "A Taste of Armageddon", stardate 3193.0
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] build u-boot 2010-03 for freescale 8349E

2010-06-10 Thread Wolfgang Denk
Dear Zied Fakhfakh,

In message  you 
wrote:
>
> > You need a toolchain.  Try this one:
> >
> > http://www.denx.de/wiki/DULG/ELDK
> >
> > There's a mailing list and everything.  Ask intelligent questions there.
> >
> [?]

http://lists.denx.de/mailman/listinfo/eldk

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Prepare for tomorrow -- get ready.
-- Edith Keeler, "The City On the Edge of Forever",
   stardate unknown
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] ARM: Kirkwood: Add support for OpenRD-Client & OpenRD-Ultimate

2010-06-10 Thread Prafulla Wadaskar
 

> -Original Message-
> From: Simon Kagstrom [mailto:simon.kagst...@netinsight.net] 
> Sent: Thursday, June 10, 2010 3:56 PM
> To: Tanmay Upadhyay
> Cc: Prafulla Wadaskar; u-boot@lists.denx.de
> Subject: Re: [PATCH] ARM: Kirkwood: Add support for 
> OpenRD-Client & OpenRD-Ultimate
> 
> On Thu, 10 Jun 2010 15:08:00 +0530
> Tanmay Upadhyay  wrote:
> 
> > >> +#define MACH_TYPE_OPENRD_ULTIMATE  2884
> > >>  
> > > I don't think this file is supposed to be edited in 
> patches, but rather
> > > synched from arm-linux by Wolfgang from time to time.
> >
> > Sorry, I didn't know about that. However, as the number is already 
> > registered, is that ok to have it here?
> 
> Probably Wolfgang or Tom Rix (the ARM maintainer) can synch it if you
> ask them to.

Tom Does this frequently, Hi Tom, can you pls do the needful?

> 
> > I agree with you. But auto-generated 'config.h' file includes 
> > . So there has to be one for each board. 

Yes, This is correct approach, lets have three files for three boards (like 
other added)
Abstract common part in openrd.h and include it in respective board config 
header files.

> However, there 
> > could be one 'openrd.h'  in the configs and three board 
> specific files 
> > include it. This will increase the number of files, but 
> would decrease 
> > LOC. What do you think?

As suggested above, let's keep code clean and simple.
Adding new board support in future to the same family will keep on increasing 
code complexity.
I prefer adding few files instead of modifying existing.
Secondly kwimage.cfg in your port may have common settings for all three board 
which may not be the case always.
And file parsing does not support conditional code for this file.

So I suggest, you should keep common code under openrd.c/h, and board specific 
in .c/h
Even I don't mind keeping existing openrd_base board support as it is and 
adding new board support for two other boards.

Regards..
Prafulla . .
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2] [U-BOOT] Zoom3: Add support for OMAP3630 Zoom3 board.

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

This patch gives basic funcionality to OMAP3630 Zoom3 board.

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 MAINTAINERS|4 +
 MAKEALL|1 +
 Makefile   |3 +
 board/logicpd/zoom3/Makefile   |   54 +++
 board/logicpd/zoom3/config.mk  |   33 +
 board/logicpd/zoom3/debug_board.c  |   66 +
 board/logicpd/zoom3/led.c  |  133 ++
 board/logicpd/zoom3/zoom3.c|  201 ++
 board/logicpd/zoom3/zoom3.h|  163 ++
 board/logicpd/zoom3/zoom3_serial.c |  132 +
 board/logicpd/zoom3/zoom3_serial.h |   76 ++
 common/serial.c|2 +
 include/configs/omap3_zoom3.h  |  271 
 include/serial.h   |7 +
 14 files changed, 1146 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/Makefile
 create mode 100644 board/logicpd/zoom3/config.mk
 create mode 100644 board/logicpd/zoom3/debug_board.c
 create mode 100644 board/logicpd/zoom3/led.c
 create mode 100644 board/logicpd/zoom3/zoom3.c
 create mode 100644 board/logicpd/zoom3/zoom3.h
 create mode 100644 board/logicpd/zoom3/zoom3_serial.c
 create mode 100644 board/logicpd/zoom3/zoom3_serial.h
 create mode 100644 include/configs/omap3_zoom3.h

diff --git a/MAINTAINERS b/MAINTAINERS
index 7a13d28..384dda9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -798,6 +798,10 @@ Alex Z
lartSA1100
dnp1110 SA1110
 
+Aldo Brett Cedillo Martinez 
+
+   omap3_zoom3 ARM CORTEX-A8 (OMAP3xx SoC)
+
 -
 
 Unknown / orphaned boards:
diff --git a/MAKEALL b/MAKEALL
index 2527352..8ebeaad 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -650,6 +650,7 @@ LIST_ARM_CORTEX_A8="\
omap3_sdp3430   \
omap3_zoom1 \
omap3_zoom2 \
+   omap3_zoom3 \
smdkc100\
 "
 
diff --git a/Makefile b/Makefile
index c26e491..198ee67 100644
--- a/Makefile
+++ b/Makefile
@@ -3179,6 +3179,9 @@ omap3_zoom1_config :  unconfig
 omap3_zoom2_config :   unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 logicpd omap3
 
+omap3_zoom3_config :   unconfig
+   @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom3 logicpd omap3
+
 smdkc100_config:   unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 smdkc100 samsung s5pc1xx
 
diff --git a/board/logicpd/zoom3/Makefile b/board/logicpd/zoom3/Makefile
new file mode 100644
index 000..79c02ab
--- /dev/null
+++ b/board/logicpd/zoom3/Makefile
@@ -0,0 +1,54 @@
+#
+# (C) Copyright 2000, 2001, 2002
+# Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+# Aldo Cedillo 
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).a
+
+COBJS-y := $(BOARD).o
+COBJS-y += debug_board.o
+COBJS-y += zoom3_serial.o
+COBJS-$(CONFIG_STATUS_LED) += led.o
+
+COBJS  := $(sort $(COBJS-y))
+SRCS   := $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+
+$(LIB):$(obj).depend $(OBJS)
+   $(AR) $(ARFLAGS) $@ $(OBJS)
+
+clean:
+   rm -f $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak $(obj).depend
+
+#
+
+#defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/logicpd/zoom3/config.mk b/board/logicpd/zoom3/config.mk
new file mode 100644
index 000..33f394b
--- /dev/null
+++ b/board/logicpd/zoom3/config.mk
@@ -0,0 +1,33 @@
+#
+# (C) Copyright 2009
+# Texas Instruments, 
+#
+# Zoom II uses OMAP3 (ARM-CortexA8) CPU
+# see http://www.ti.com/ for more information on Texas Instruments
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Found

Re: [U-Boot] [PATCH V7 1/3] Initial support for Marvell Orion5x SoC

2010-06-10 Thread Prafulla Wadaskar


> -Original Message-
> From: u-boot-boun...@lists.denx.de
> [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Albert Aribaud
> Sent: Thursday, June 10, 2010 2:20 AM
> To: u-boot@lists.denx.de
> Subject: [U-Boot] [PATCH V7 1/3] Initial support for Marvell
> Orion5x SoC
>
> This patch adds support for the Marvell Orion5x SoC.
> It has no use alone, and must be followed by a patch
> to add Orion5x support for serial, then support for
> the ED Mini V2, an Orion5x-based product from LaCie.
>
> Signed-off-by: Albert Aribaud 
> ---

...snip...

> diff --git a/arch/arm/cpu/arm926ejs/orion5x/cpu.c
> b/arch/arm/cpu/arm926ejs/orion5x/cpu.c
> new file mode 100644
> index 000..807174a
> --- /dev/null
> +++ b/arch/arm/cpu/arm926ejs/orion5x/cpu.c
> @@ -0,0 +1,271 @@
> +/*
> + * Copyright (C) 2010 Albert ARIBAUD 
> + *
> + * Based on original Kirkwood support which is
> + * (C) Copyright 2009
> + * Marvell Semiconductor 
> + * Written-by: Prafulla Wadaskar 
> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
> + * MA 02110-1301 USA
> + */
> +
> +#include 
> +#include 
> +#include 
> +#include 
> +#include 
> +#include 
> +
> +#define BUFLEN   16
> +
> +void reset_cpu(unsigned long ignored)
> +{
> + struct orion5x_cpu_registers *cpureg =
> + (struct orion5x_cpu_registers *)ORION5X_CPU_REG_BASE;
> +
> + writel(readl(&cpureg->rstoutn_mask) | (1 << 2),
> + &cpureg->rstoutn_mask);
> + writel(readl(&cpureg->sys_soft_rst) | 1,
> + &cpureg->sys_soft_rst);
> + while (1)
> + ;
> +}
> +
> +/*
> + * Window Size
> + * Used with the Base register to set the address window
> size and location.
> + * Must be programmed from LSB to MSB as sequence of ones followed by
> + * sequence of zeros. The number of ones specifies the size
> of the window in
> + * 64 KByte granularity (e.g., a value of 0x00FF specifies
> 256 = 16 MByte).
> + * NOTE: A value of 0x0 specifies 64-KByte size.
> + */
> +unsigned int orion5x_winctrl_calcsize(unsigned int sizeval)
> +{
> + int i;
> + unsigned int j = 0;
> + u32 val = sizeval >> 1;
> +
> + for (i = 0; val > 0x1; i++) {
> + j |= (1 << i);
> + val = val >> 1;
> + }
> + return 0x & j;
> +}
> +
> +/*
> + * orion5x_config_adr_windows - Configure address Windows
> + *
> + * There are 8 address windows supported by Orion5x Soc to
> addess different
> + * devices. Each window can be configured for size, BAR and
> remap addr
> + * Below configuration is standard for most of the cases
> + *
> + * If remap function not used, remap_lo must be set as base
> + *
> + * Reference Documentation:
> + * Mbus-L to Mbus Bridge Registers Configuration.
> + * (Sec 25.1 and 25.3 of Datasheet)
> + */
> +int orion5x_config_adr_windows(void)
> +{
> + struct orion5x_win_registers *winregs =
> + (struct orion5x_win_registers *)ORION5X_CPU_WIN_BASE;
> +
> + /* Window 0: PCIE MEM address space */
> + writel(ORION5X_CPU_WIN_CTRL_DATA(ORION5X_DEFSZ_PCIE_MEM,
> + ORION5X_TARGET_PCIE, ORION5X_ATTR_PCIE_MEM,
> + ORION5X_WIN_ENABLE), &winregs[0].ctrl);
> + writel(ORION5X_DEFADR_PCIE_MEM, &winregs[0].base);
> + writel(ORION5X_DEFADR_PCIE_MEM_REMAP_LO, &winregs[0].remap_lo);
> + writel(ORION5X_DEFADR_PCIE_MEM_REMAP_HI, &winregs[0].remap_hi);
> +
> + /* Window 1: PCIE IO address space */
> + writel(ORION5X_CPU_WIN_CTRL_DATA(ORION5X_DEFSZ_PCIE_IO,
> + ORION5X_TARGET_PCIE, ORION5X_ATTR_PCIE_IO,
> + ORION5X_WIN_ENABLE), &winregs[1].ctrl);
> + writel(ORION5X_DEFADR_PCIE_IO, &winregs[1].base);
> + writel(ORION5X_DEFADR_PCIE_IO_REMAP_LO, &winregs[1].remap_lo);
> + writel(ORION5X_DEFADR_PCIE_IO_REMAP_HI, &winregs[1].remap_hi);
> +
> + /* Window 2: PCI MEM address space */
> + writel(ORION5X_CPU_WIN_CTRL_DATA(ORION5X_DEFSZ_PCI_MEM,
> + ORION5X_TARGET_PCI, ORION5X_ATTR_PCI_MEM,
> + ORION5X_WIN_ENABLE), &winregs[2].ctrl);
> + writel(ORION5X_DEFADR_PCI_MEM, &winregs[2].base);
> +
> + /* Window 3: PCI IO address space */
> + writel(ORION5X_CPU_WIN_CTRL_DATA(ORION5X_DEFSZ_PCI_IO,
> + ORION5X_TARGET_PCI, 

Re: [U-Boot] Micrel Controller KSZ8841-16MBL

2010-06-10 Thread Douglas Lopes Pereira
Hi Ben,

thanks for the quick reply.

On Thu, Jun 10, 2010 at 4:18 PM, Ben Warren wrote:

> On 6/10/2010 12:02 PM, Douglas Lopes Pereira wrote:
>
>> Hi all,
>>
>> I need some help here...
>>
>> I'm working on adding a driver for KSZ8841 ethernet controller which I
>> found
>> at this forum: blackfin.uclinux.org.
>>
>> I was looking at the mail list archive and found a message from Prafulla
>> answering Raphael Amorin.
>>
>> Mr. Prafulla suggested him to add the input code into drivers/net/phy/ and
>> public interfaces in netdev.h
>>
>> Since drivers/net/phy/ does not exist anymore, I'm assuming that input
>> code
>> should go to drivers/net/ instead.
>>
>>
>>
> Huh? drivers/net/phy does exist...  But the KS8841 is a MAC/PHY, so belongs
> in driver/net proper.
>
>  But what about the public interfaces (aka. eth_init, eth_send)? Where
>> should
>> it go?
>>
>>
> You're using an out-of-date API.  Please read the documentation
> (doc/README.drivers.eth)
>
I will take a look at the documentation.


>
> I actually wrote a driver for this controller a few years ago, but didn't
> submit it because at the time it didn't make sense to submit my board and we
> don't allow bare drivers (ones for which there is no in-tree board).  If
> you'd like, I can clean up the driver and send it to you, and then put it in
> the tree.  Unfortunately I don't have hardware to test it on anymore.

If it is not taking much of your effort, I would appreciate to have a
path/copy of the driver.


>
>  Thanks for your time,
>> Best regards,
>> Douglas
>>
>>
> regards,
> Ben
>

Thank again,
Regards,
Douglas
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 05/11] [U-BOOT][ZOOM3] Initial support - adding board files (led.c)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/led.c |  133 +
 1 files changed, 133 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/led.c

diff --git a/board/logicpd/zoom3/led.c b/board/logicpd/zoom3/led.c
new file mode 100644
index 000..1871d79
--- /dev/null
+++ b/board/logicpd/zoom3/led.c
@@ -0,0 +1,133 @@
+/*
+ * Copyright (c) 2009 Wind River Systems, Inc.
+ * Tom Rix 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+static unsigned int saved_state[2] = {STATUS_LED_OFF, STATUS_LED_OFF};
+
+/*
+ * GPIO LEDs
+ * 173 red
+ * 154 blue
+ * 61  blue2
+ */
+#define ZOOM3_LED_RED  173
+#define ZOOM3_LED_BLUE 154
+#define ZOOM3_LED_BLUE261
+
+void red_LED_off(void)
+{
+   /* red */
+   if (!omap_request_gpio(ZOOM3_LED_RED)) {
+   omap_set_gpio_direction(ZOOM3_LED_RED, 0);
+   omap_set_gpio_dataout(ZOOM3_LED_RED, 0);
+   }
+
+   saved_state[STATUS_LED_RED] = STATUS_LED_OFF;
+}
+
+void blue_LED_off(void)
+{
+   /* blue */
+   if (!omap_request_gpio(ZOOM3_LED_BLUE)) {
+   omap_set_gpio_direction(ZOOM3_LED_BLUE, 0);
+   omap_set_gpio_dataout(ZOOM3_LED_BLUE, 0);
+   }
+
+   /* blue 2 */
+   if (!omap_request_gpio(ZOOM3_LED_BLUE2)) {
+   omap_set_gpio_direction(ZOOM3_LED_BLUE2, 0);
+   omap_set_gpio_dataout(ZOOM3_LED_BLUE2, 0);
+   }
+
+   saved_state[STATUS_LED_BLUE] = STATUS_LED_OFF;
+}
+
+void red_LED_on(void)
+{
+   blue_LED_off();
+
+   /* red */
+   if (!omap_request_gpio(ZOOM3_LED_RED)) {
+   omap_set_gpio_direction(ZOOM3_LED_RED, 0);
+   omap_set_gpio_dataout(ZOOM3_LED_RED, 1);
+   }
+
+   saved_state[STATUS_LED_BLUE] = STATUS_LED_ON;
+}
+
+void blue_LED_on(void)
+{
+   red_LED_off();
+
+   /* blue */
+   if (!omap_request_gpio(ZOOM3_LED_BLUE)) {
+   omap_set_gpio_direction(ZOOM3_LED_BLUE, 0);
+   omap_set_gpio_dataout(ZOOM3_LED_BLUE, 1);
+   }
+
+   /* blue 2 */
+   if (!omap_request_gpio(ZOOM3_LED_BLUE2)) {
+   omap_set_gpio_direction(ZOOM3_LED_BLUE2, 0);
+   omap_set_gpio_dataout(ZOOM3_LED_BLUE2, 1);
+   }
+
+   saved_state[STATUS_LED_BLUE] = STATUS_LED_ON;
+}
+
+void __led_init(led_id_t mask, int state)
+{
+   __led_set(mask, state);
+}
+
+void __led_toggle(led_id_t mask)
+{
+   if (STATUS_LED_BLUE == mask) {
+   if (STATUS_LED_ON == saved_state[STATUS_LED_BLUE])
+   blue_LED_off();
+   else
+   blue_LED_on();
+   } else if (STATUS_LED_RED == mask) {
+   if (STATUS_LED_ON == saved_state[STATUS_LED_RED])
+   red_LED_off();
+   else
+   red_LED_on();
+   }
+}
+
+void __led_set(led_id_t mask, int state)
+{
+   if (STATUS_LED_BLUE == mask) {
+   if (STATUS_LED_ON == state)
+   blue_LED_on();
+   else
+   blue_LED_off();
+   } else if (STATUS_LED_RED == mask) {
+   if (STATUS_LED_ON == state)
+   red_LED_on();
+   else
+   red_LED_off();
+   }
+}
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 00/11][U-BOOT][ZOOM3] Initial support.

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

The following series of patches is intented to give basic functionality 
to OMAP3630 Zoom3 board. All your reviews are welcome and appreciated.

Aldo Brett Cedillo Martinez (11):
  [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.h)
  [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.c)
  [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.h)
  [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.c)
  [U-BOOT][ZOOM3] Initial support - adding board files (led.c)
  [U-BOOT][ZOOM3] Initial support - adding board files (debug_board.c)
  [U-BOOT][ZOOM3] Initial support - adding board files (config.mk)
  [U-BOOT][ZOOM3] Initial support - adding board files (Makefile)
  [U-BOOT][ZOOM3] Initial support - add config file (omap3_zoom3.h)
  [U-BOOT][ZOOM3] Initial support - added OMAP3630 serial devices.
  [U-BOOT][ZOOM3] Initial support - add board to main Makefile, , add
the board to the list in MAKEALL file, and name to MAINTAINERS.

 MAINTAINERS|4 +
 MAKEALL|1 +
 Makefile   |3 +
 board/logicpd/zoom3/Makefile   |   54 +++
 board/logicpd/zoom3/config.mk  |   33 +
 board/logicpd/zoom3/debug_board.c  |   66 +
 board/logicpd/zoom3/led.c  |  133 ++
 board/logicpd/zoom3/zoom3.c|  201 ++
 board/logicpd/zoom3/zoom3.h|  163 ++
 board/logicpd/zoom3/zoom3_serial.c |  132 +
 board/logicpd/zoom3/zoom3_serial.h |   76 ++
 common/serial.c|2 +
 include/configs/omap3_zoom3.h  |  271 
 include/serial.h   |7 +
 14 files changed, 1146 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/Makefile
 create mode 100644 board/logicpd/zoom3/config.mk
 create mode 100644 board/logicpd/zoom3/debug_board.c
 create mode 100644 board/logicpd/zoom3/led.c
 create mode 100644 board/logicpd/zoom3/zoom3.c
 create mode 100644 board/logicpd/zoom3/zoom3.h
 create mode 100644 board/logicpd/zoom3/zoom3_serial.c
 create mode 100644 board/logicpd/zoom3/zoom3_serial.h
 create mode 100644 include/configs/omap3_zoom3.h

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 08/11] [U-BOOT][ZOOM3] Initial support - adding board files (Makefile)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/Makefile |   54 ++
 1 files changed, 54 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/Makefile

diff --git a/board/logicpd/zoom3/Makefile b/board/logicpd/zoom3/Makefile
new file mode 100644
index 000..79c02ab
--- /dev/null
+++ b/board/logicpd/zoom3/Makefile
@@ -0,0 +1,54 @@
+#
+# (C) Copyright 2000, 2001, 2002
+# Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+# Aldo Cedillo 
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).a
+
+COBJS-y := $(BOARD).o
+COBJS-y += debug_board.o
+COBJS-y += zoom3_serial.o
+COBJS-$(CONFIG_STATUS_LED) += led.o
+
+COBJS  := $(sort $(COBJS-y))
+SRCS   := $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+
+$(LIB):$(obj).depend $(OBJS)
+   $(AR) $(ARFLAGS) $@ $(OBJS)
+
+clean:
+   rm -f $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak $(obj).depend
+
+#
+
+#defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 07/11] [U-BOOT][ZOOM3] Initial support - adding board files (config.mk)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/config.mk |   33 +
 1 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/config.mk

diff --git a/board/logicpd/zoom3/config.mk b/board/logicpd/zoom3/config.mk
new file mode 100644
index 000..33f394b
--- /dev/null
+++ b/board/logicpd/zoom3/config.mk
@@ -0,0 +1,33 @@
+#
+# (C) Copyright 2009
+# Texas Instruments, 
+#
+# Zoom II uses OMAP3 (ARM-CortexA8) CPU
+# see http://www.ti.com/ for more information on Texas Instruments
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+# Physical Address:
+# 0x8000 (bank0)
+# 0xA000 (bank1)
+# Linux-Kernel is expected to be at 0x80008000, entry 0x80008000
+# (mem base + reserved)
+
+# For use with external or internal boots.
+TEXT_BASE = 0x80e8
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V7 1/3] Initial support for Marvell Orion5x SoC

2010-06-10 Thread Prafulla Wadaskar
 

> -Original Message-
> From: u-boot-boun...@lists.denx.de 
> [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Albert Aribaud
> Sent: Thursday, June 10, 2010 2:20 AM
> To: u-boot@lists.denx.de
> Subject: [U-Boot] [PATCH V7 1/3] Initial support for Marvell 
> Orion5x SoC
> 
...snip...
> +/*
> + * SOC specific misc init
> + */
> +#if defined(CONFIG_ARCH_MISC_INIT)
> +int arch_misc_init(void)
> +{
> + u32 temp;
> +
> + /*CPU streaming & write allocate */
> + temp = readfr_extra_feature_reg();
> + temp &= ~(1 << 28); /* disable wr alloc */
> + writefr_extra_feature_reg(temp);
> +
> + temp = readfr_extra_feature_reg();
> + temp &= ~(1 << 29); /* streaming disabled */
> + writefr_extra_feature_reg(temp);
> +
> + /* L2Cache settings */
> + temp = readfr_extra_feature_reg();
> + /* Disable L2C pre fetch - Set bit 24 */
> + temp |= (1 << 24);
> + /* enable L2C - Set bit 22 */
> + temp |= (1 << 22);
> + writefr_extra_feature_reg(temp);
> +
> + icache_enable();
> + /* Change reset vector to address 0x0 */
> + temp = get_cr();
> + set_cr(temp & ~CR_V);
> +
> + /* Set CPIOs and MPPs - values provided by board
> +include file */
> +/*
> + writel(ORION5X_MPP_BASE+0x00, ORION5X_MPP0_7);
> + writel(ORION5X_MPP_BASE+0x04, ORION5X_MPP8_15);
> + writel(ORION5X_MPP_BASE+0x50, ORION5X_MPP16_23);
> + writel(ORION5X_GPIO_BASE+0x04, ORION5X_GPIO_OUT_ENABLE);
> +*/

Pls remove dead code, I think you need to enable it !!

Regards..
Prafulla . .
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] cpuat91: convert to new at91 soc architecture

2010-06-10 Thread Eric Bénard
convert the board to the new soc architecture
update default config
i2c upgrade taken from eb_cpux9k2.h & board/BuS/eb_cpux9k2/cpux9k2.c

Signed-off-by: Eric Bénard 
---
 Makefile   |2 +-
 board/eukrea/cpuat91/cpuat91.c |   53 ---
 include/configs/cpuat91.h  |   45 +++--
 3 files changed, 54 insertions(+), 46 deletions(-)

diff --git a/Makefile b/Makefile
index c26e491..ffc749d 100644
--- a/Makefile
+++ b/Makefile
@@ -2693,7 +2693,7 @@ CPUAT91_RAM_config \
 CPUAT91_config :   unconfig
@mkdir -p $(obj)include
@echo "#define CONFIG_$(@:_config=) 1"  >$(obj)include/config.h
-   @$(MKCONFIG) -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
+   @$(MKCONFIG) -a cpuat91 arm arm920t cpuat91 eukrea at91
 
 csb637_config  :   unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
diff --git a/board/eukrea/cpuat91/cpuat91.c b/board/eukrea/cpuat91/cpuat91.c
index 0017962..cd4d42c 100644
--- a/board/eukrea/cpuat91/cpuat91.c
+++ b/board/eukrea/cpuat91/cpuat91.c
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2006 Eukrea Electromatique 
+ * (C) Copyright 2006-2010 Eukrea Electromatique 
  * Eric Benard 
  * based on at91rm9200dk.c which is :
  * (C) Copyright 2002
@@ -27,13 +27,11 @@
 
 #include 
 #include 
-#include 
-#include 
 
-#if defined(CONFIG_DRIVER_ETHER)
-#include 
-#include 
-#endif
+#include 
+#include 
+#include 
+#include 
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -61,31 +59,7 @@ int dram_init(void)
return 0;
 }
 
-#if defined(CONFIG_DRIVER_ETHER)
-#if defined(CONFIG_CMD_NET)
-
-/*
- * Name:
- * at91rm9200_GetPhyInterface
- * Description:
- * Initialise the interface functions to the PHY
- * Arguments:
- * None
- * Return value:
- * None
- */
-void at91rm9200_GetPhyInterface(AT91PS_PhyOps p_phyops)
-{
-   p_phyops->Init = ks8721_initphy;
-   p_phyops->IsPhyConnected = ks8721_isphyconnected;
-   p_phyops->GetLinkSpeed = ks8721_getlinkspeed;
-   p_phyops->AutoNegotiate = ks8721_autonegotiate;
-}
-
-#endif /* CONFIG_CMD_NET */
-#endif /* CONFIG_DRIVER_ETHER */
 #ifdef CONFIG_DRIVER_AT91EMAC
-
 int board_eth_init(bd_t *bis)
 {
int rc = 0;
@@ -93,3 +67,20 @@ int board_eth_init(bd_t *bis)
return rc;
 }
 #endif
+
+#ifdef CONFIG_SOFT_I2C
+void i2c_init_board(void)
+{
+   u32 pin;
+   at91_pmc_t *pmc = (at91_pmc_t *) AT91_PMC_BASE;
+   at91_pio_t *pio = (at91_pio_t *) AT91_PIO_BASE;
+
+   writel(1 << AT91_ID_PIOA, &pmc->pcer);
+   pin = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
+   writel(pin, &pio->pioa.idr);
+   writel(pin, &pio->pioa.pudr);
+   writel(pin, &pio->pioa.per);
+   writel(pin, &pio->pioa.oer);
+   writel(pin, &pio->pioa.sodr);
+}
+#endif
diff --git a/include/configs/cpuat91.h b/include/configs/cpuat91.h
index 049298c..b012782 100644
--- a/include/configs/cpuat91.h
+++ b/include/configs/cpuat91.h
@@ -1,5 +1,5 @@
 /*
- * CPUAT91 by (C) Copyright 2006 Eric Benard
+ * CPUAT91 by (C) Copyright 2006-2010 Eric Benard
  * e...@eukrea.com
  *
  * Configuration settings for the CPUAT91 board.
@@ -23,15 +23,12 @@
  * MA 02111-1307 USA
  */
 
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#define CONFIG_AT91_LEGACY
+#ifndef _CONFIG_CPUAT91_H
+#define _CONFIG_CPUAT91_H
 
 #ifdef CONFIG_CPUAT91_RAM
 #define CONFIG_SKIP_LOWLEVEL_INIT  1
 #define CONFIG_SKIP_RELOCATE_UBOOT 1
-#define CONFIG_CPUAT91 1
 #else
 #define CONFIG_BOOTDELAY   1
 #endif
@@ -43,6 +40,7 @@
 
 #define CONFIG_ARM920T 1
 #define CONFIG_AT91RM9200  1
+#define CONFIG_CPUAT91 1
 
 #undef CONFIG_USE_IRQ
 #define USE_920T_MMU   1
@@ -89,16 +87,36 @@
 #undef CONFIG_USART0
 #undef CONFIG_USART1
 
-#define CONFIG_HARD_I2C1
+#undef CONFIG_HARD_I2C
+#define CONFIG_SOFT_I2C1
+#define AT91_PIN_SDA   (1<<25)
+#define AT91_PIN_SCL   (1<<26)
+
+#define CONFIG_SYS_I2C_INIT_BOARD  1
+#defineCONFIG_SYS_I2C_SPEED5
+#define CONFIG_SYS_I2C_SLAVE   0
+
+#define I2C_INIT   i2c_init_board();
+#define I2C_ACTIVE writel(AT91_PMX_AA_TWD, &pio->pioa.mddr);
+#define I2C_TRISTATE   writel(AT91_PMX_AA_TWD, &pio->pioa.mder);
+#define I2C_READ   ((readl(&pio->pioa.pdsr) & AT91_PMX_AA_TWD) != 0)
+#define I2C_SDA(bit)   \
+   if (bit)\
+   writel(AT91_PMX_AA_TWD, &pio->pioa.sodr);   \
+   else\
+   writel(AT91_PMX_AA_TWD, &pio->pioa.codr);
+#define I2C_SCL(bit)   \
+   if (bit)\
+   writel(AT91_PMX_AA_TWCK, &pio->pioa.sodr);  \
+   else 

Re: [U-Boot] [PATCH 00/11][U-BOOT][ZOOM3] Initial support.

2010-06-10 Thread Wolfgang Denk
Dear Aldo Cedillo,

In message <1276200675-16489-1-git-send-email-aldo.cedi...@ti.com> you wrote:
> From: Aldo Brett Cedillo Martinez 
> 
> The following series of patches is intented to give basic functionality 
> to OMAP3630 Zoom3 board. All your reviews are welcome and appreciated.
> 
> Aldo Brett Cedillo Martinez (11):
>   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.h)
>   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.c)
>   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.h)
>   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.c)
>   [U-BOOT][ZOOM3] Initial support - adding board files (led.c)
>   [U-BOOT][ZOOM3] Initial support - adding board files (debug_board.c)
>   [U-BOOT][ZOOM3] Initial support - adding board files (config.mk)
>   [U-BOOT][ZOOM3] Initial support - adding board files (Makefile)
>   [U-BOOT][ZOOM3] Initial support - add config file (omap3_zoom3.h)
>   [U-BOOT][ZOOM3] Initial support - added OMAP3630 serial devices.
>   [U-BOOT][ZOOM3] Initial support - add board to main Makefile, , add
> the board to the list in MAKEALL file, and name to MAINTAINERS.

NAK.

Please submit all the stuff that belongs together as a single commit.
Please read the documentation, for example
http://www.denx.de/wiki/U-Boot/Patches

[I don't even look at the content yet.]

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
"More software projects have gone awry for lack of calendar time than
for all other causes combined."
 - Fred Brooks, Jr., _The Mythical Man Month_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V7 1/3] Initial support for Marvell Orion5x SoC

2010-06-10 Thread Albert ARIBAUD
Hi Prafulla,

Le 10/06/2010 21:36, Prafulla Wadaskar a écrit :

 >> +/* Display device and revision IDs.
 >> + * This function must cover all known device/revision
 >> + * combinations, not only the one for which u-boot is
 >> + * compiled; this way, one can identify actual HW in
 >> + * case of a mismatch.
 >> + */

 >> + if (dev == MV88F5181_DEV_ID) {
 >
 > Pls see comments at the end

 >> + } else if (dev == MV88F6183_DEV_ID) {
 >
 > Pls see comments at the end

 >> +/*
 >> + * The following definitions are intended for identifying
 >> + * the real device and revision on which u-boot is running
 >> + * even if it was compiled only for a specific one. Thus,
 >> + * these constants must not be considered chip-specific.
 >> + */
 >> +
 >> +/* Orion-1 (88F5181) and Orion-VoIP (88F5181L) */
 >> +#define MV88F5181_DEV_ID0x5181
 >> +#define MV88F5181_REV_B13
 >> +#define MV88F5181L_REV_A0   8
 >> +#define MV88F5181L_REV_A1   9
 >> +/* Orion-NAS (88F5182) */
 >> +#define MV88F5182_DEV_ID0x5182
 >> +#define MV88F5182_REV_A22
 >> +/* Orion-2 (88F5281) */
 >> +#define MV88F5281_DEV_ID0x5281
 >> +#define MV88F5281_REV_D04
 >> +#define MV88F5281_REV_D15
 >> +#define MV88F5281_REV_D26
 >> +/* Orion-1-90 (88F6183) */
 >> +#define MV88F6183_DEV_ID0x6183
 >> +#define MV88F6183_REV_B03
 >> +
 >
 > Pls refer comments at the end.

 > Small request-
 > As per this definition only 5182 is supported and tested,
 > It would be more logical to remove 5181 and 6183 specific code,
 > We can always add it as it is required, at this moment it looks like 
a dead code.

This was raised and discussed before:



For any other purpose than identification of the actual SoC, I would 
have agreed about removing anything not related to 5182. But here, 
precisely, the code is trying to print the identity of the *actual* SoC 
it is being run on, as opposed to that of the *assumed* SoC it was 
compiled for.

Thus here the code must define and test for as many device and revision 
IDs as possible so as to give the most accurate information possible.

This is epxlicitely stated in the comments before the identification 
function and the device and revision defines.

 > also moving 5281 specific code to mv88f5182.h will make this patch 
clean and complete.

If you're talking about the device / variant IDs, I don't think they 
should move for the reason above; if that's something else, can you be 
more precise?

 > Rest everything seems to be okay

Ok. If we can agree about the identification function, then I'll post a 
final V8 patch with GPIO/MPP enabled.

 > Regards..
 > Prafulla . .

Cheers!

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 10/11] [U-BOOT][ZOOM3] Initial support - added OMAP3630 serial devices.

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 common/serial.c  |2 ++
 include/serial.h |7 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/common/serial.c b/common/serial.c
index fceabfa..2a644ba 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -92,6 +92,8 @@ struct serial_device *__default_serial_console (void)
 #endif
 #elif defined(CONFIG_OMAP3_ZOOM2)
return ZOOM2_DEFAULT_SERIAL_DEVICE;
+#elif defined(CONFIG_OMAP3_ZOOM3)
+   return ZOOM3_DEFAULT_SERIAL_DEVICE;
 #else
 #error No default console
 #endif
diff --git a/include/serial.h b/include/serial.h
index 6513d8e..236e5d1 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -66,6 +66,13 @@ extern struct serial_device zoom2_serial_device2;
 extern struct serial_device zoom2_serial_device3;
 #endif
 
+#if defined(CONFIG_OMAP3_ZOOM3)
+extern struct serial_device zoom3_serial_device0;
+extern struct serial_device zoom3_serial_device1;
+extern struct serial_device zoom3_serial_device2;
+extern struct serial_device zoom3_serial_device3;
+#endif
+
 extern struct serial_device serial_ffuart_device;
 extern struct serial_device serial_btuart_device;
 extern struct serial_device serial_stuart_device;
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 04/11] [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.c)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/zoom3_serial.c |  132 
 1 files changed, 132 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/zoom3_serial.c

diff --git a/board/logicpd/zoom3/zoom3_serial.c 
b/board/logicpd/zoom3/zoom3_serial.c
new file mode 100644
index 000..e50c6dc
--- /dev/null
+++ b/board/logicpd/zoom3/zoom3_serial.c
@@ -0,0 +1,132 @@
+/*
+ * Copyright (c) 2009 Wind River Systems, Inc.
+ * Tom Rix 
+ * Aldo Cedillo 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * This file was adapted from arch/powerpc/cpu/mpc5xxx/serial.c
+ *
+ */
+
+#include 
+#include 
+#include 
+#include 
+#include "zoom3_serial.h"
+
+int quad_init_dev(unsigned long base)
+{
+   /*
+* The Quad UART is on the debug board.
+* Check if the debug board is attached before using the UART
+*/
+   if (zoom3_debug_board_connected()) {
+   NS16550_t com_port = (NS16550_t) base;
+   int baud_divisor = CONFIG_SYS_NS16550_CLK / 16 /
+   CONFIG_BAUDRATE;
+   /*
+* Zoom3 has a board specific initialization of its UART.
+* This generic initialization has been copied from
+* drivers/serial/ns16550.c. The macros have been expanded.
+*
+* Do the following instead of
+* NS16550_init (com_port, clock_divisor);
+*/
+   com_port->ier = 0x00;
+
+   /*
+* On Zoom3 board Set pre-scalar to 1
+* CLKSEL is GND => MCR[7] is 1 => preslr is 4
+* So change the prescl to 1
+*/
+   com_port->lcr = 0xbf;
+   com_port->fcr |= 0x10;
+   com_port->mcr &= 0x7f;
+
+   /* This is generic ns16550.c setup */
+   com_port->lcr = UART_LCR_BKSE | UART_LCR_8N1;
+   com_port->dll = 0;
+   com_port->dlm = 0;
+   com_port->lcr = UART_LCR_8N1;
+   com_port->mcr = UART_MCR_DTR | UART_MCR_RTS;
+   com_port->fcr = UART_FCR_FIFO_EN | UART_FCR_RXSR |
+   UART_FCR_TXSR;
+   com_port->lcr = UART_LCR_BKSE | UART_LCR_8N1;
+   com_port->dll = baud_divisor & 0xff;
+   com_port->dlm = (baud_divisor >> 8) & 0xff;
+   com_port->lcr = UART_LCR_8N1;
+   }
+
+   /*
+* We have to lie here, otherwise the board init code will hang
+* on the check
+*/
+   return 0;
+}
+
+void quad_putc_dev(unsigned long base, const char c)
+{
+   if (zoom3_debug_board_connected()) {
+   if (c == '\n')
+   quad_putc_dev(base, '\r');
+
+   NS16550_putc((NS16550_t) base, c);
+   } else {
+   usbtty_putc(c);
+   }
+}
+
+void quad_puts_dev(unsigned long base, const char *s)
+{
+   if (zoom3_debug_board_connected()) {
+   while ((s != NULL) && (*s != '\0'))
+   quad_putc_dev(base, *s++);
+   } else {
+   usbtty_puts(s);
+   }
+}
+
+int quad_getc_dev(unsigned long base)
+{
+   if (zoom3_debug_board_connected())
+   return NS16550_getc((NS16550_t) base);
+
+   return usbtty_getc();
+}
+
+int quad_tstc_dev(unsigned long base)
+{
+   if (zoom3_debug_board_connected())
+   return NS16550_tstc((NS16550_t) base);
+
+   return usbtty_tstc();
+}
+
+void quad_setbrg_dev(unsigned long base)
+{
+   if (zoom3_debug_board_connected()) {
+   int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 /
+   CONFIG_BAUDRATE;
+
+   NS16550_reinit((NS16550_t) base, clock_divisor);
+   }
+}
+
+QUAD_INIT(0)
+QUAD_INIT(1)
+QUAD_INIT(2)
+QUAD_INIT(3)
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 09/11] [U-BOOT][ZOOM3] Initial support - add config file (omap3_zoom3.h)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 include/configs/omap3_zoom3.h |  271 +
 1 files changed, 271 insertions(+), 0 deletions(-)
 create mode 100644 include/configs/omap3_zoom3.h

diff --git a/include/configs/omap3_zoom3.h b/include/configs/omap3_zoom3.h
new file mode 100644
index 000..e70f1cf
--- /dev/null
+++ b/include/configs/omap3_zoom3.h
@@ -0,0 +1,271 @@
+/*
+ * (C) Copyright 2006-2010 Texas Instruments.
+ *
+ * Richard Woodruff 
+ * Syed Mohammed Khasim 
+ * Nishanth Menon 
+ * Tom Rix 
+ * Aldo Cedillo 
+ *
+ * Configuration settings for the TI OMAP3630 Zoom 3 board.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+/*
+ * High Level Configuration Options
+ */
+#define CONFIG_ARMCORTEXA8 1   /* This is an ARM V7 CPU core */
+#define CONFIG_OMAP1   /* in a TI OMAP core */
+#define CONFIG_OMAP36XX1   /* which is a 36XX */
+#define CONFIG_OMAP3_ZOOM3 1   /* working with a Zoom3 */
+
+#include   /* get chip and board defs */
+#include 
+
+/*
+ * Display CPU and board information
+ */
+#define CONFIG_DISPLAY_CPUINFO 1
+#define CONFIG_DISPLAY_BOARDINFO   1
+
+/* Clock defines */
+#define V_OSCK 260 /* Clock output from T2 */
+#define V_SCLK (V_OSCK >> 1)
+
+#undef CONFIG_USE_IRQ  /* no support for IRQs */
+#define CONFIG_MISC_INIT_R
+
+#define CONFIG_CMDLINE_TAG 1   /* enable passing of ATAGs */
+#define CONFIG_SETUP_MEMORY_TAGS   1
+#define CONFIG_INITRD_TAG  1
+#define CONFIG_REVISION_TAG1
+
+/*
+ * Size of malloc() pool
+ */
+#define CONFIG_ENV_SIZE(128 << 10) /* 128 KiB */
+/* Sector */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + (128 << 10))
+#define CONFIG_SYS_GBL_DATA_SIZE   128 /* bytes reserved for */
+   /* initial data */
+
+/*
+ * Hardware drivers
+ */
+
+/*
+ * NS16550 Configuration
+ * Zoom3 uses the TL16CP754C on the debug board
+ */
+#define CONFIG_SERIAL_MULTI1
+
+/*
+ * 0 - 1 : first USB with respect to the left edge of the debug board
+ * 2 - 3 : second USB with respect to the left edge of the debug board
+ */
+#define ZOOM3_DEFAULT_SERIAL_DEVICE(&zoom3_serial_device0)
+
+#define V_NS16550_CLK  (1843200)   /* 1.8432 Mhz */
+
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_REG_SIZE(-2)
+#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
+#define CONFIG_BAUDRATE115200
+#define CONFIG_SYS_BAUDRATE_TABLE  {115200}
+
+#define CONFIG_ENV_OVERWRITE   /* allow to overwrite serial and ethaddr */
+
+#define CONFIG_MMC 1
+#define CONFIG_OMAP3_MMC   1
+#define CONFIG_DOS_PARTITION   1
+
+/* DDR - Use Micron DDR */
+#define CONFIG_OMAP3_MICRON_DDR1
+
+/* Status LED */
+#define CONFIG_STATUS_LED  1 /* Status LED enabled */
+#define CONFIG_BOARD_SPECIFIC_LED  1
+#define STATUS_LED_BLUE0 /* Check what color is used   
*/
+#define STATUS_LED_RED 1 /* when using 3630*/
+/* Blue */
+#define STATUS_LED_BIT STATUS_LED_BLUE
+#define STATUS_LED_STATE   STATUS_LED_ON
+#define STATUS_LED_PERIOD  (CONFIG_SYS_HZ / 2)
+/* Red */
+#define STATUS_LED_BIT1STATUS_LED_RED
+#define STATUS_LED_STATE1  STATUS_LED_OFF
+#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)
+/* Optional value */
+#define STATUS_LED_BOOTSTATUS_LED_BIT
+
+/* GPIO banks */
+#ifdef CONFIG_STATUS_LED
+#define CONFIG_OMAP3_GPIO_2/* ZOOM2_LED_BLUE2 */
+#define CONFIG_OMAP3_GPIO_6/* ZOOM2_LED_RED */
+#endif
+#define CONFIG_OMAP3_GPIO_3/* board revision */
+#define CONFIG_OMAP3_GPIO_5/* debug board detection, ZOOM2_LED_BLUE */
+
+/* USB */
+#define CONFIG_MUSB_UDC1
+#define CONFIG_USB_OMAP3   1
+
+/* USB device configuration */
+#define CONFIG_USB_DE

[U-Boot] Micrel Controller KSZ8841-16MBL

2010-06-10 Thread Douglas Lopes Pereira
Hi all,

I need some help here...

I'm working on adding a driver for KSZ8841 ethernet controller which I found
at this forum: blackfin.uclinux.org.

I was looking at the mail list archive and found a message from Prafulla
answering Raphael Amorin.

Mr. Prafulla suggested him to add the input code into drivers/net/phy/ and
public interfaces in netdev.h

Since drivers/net/phy/ does not exist anymore, I'm assuming that input code
should go to drivers/net/ instead.

But what about the public interfaces (aka. eth_init, eth_send)? Where should
it go?

Thanks for your time,
Best regards,
Douglas

[tags: KSZ8841; KSZ8842; KSZ884X; KS8841; KS8842; KS884X; Micrel; Ethernet
Controller]
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 06/11] [U-BOOT][ZOOM3] Initial support - adding board files (debug_board.c)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/debug_board.c |   66 +
 1 files changed, 66 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/debug_board.c

diff --git a/board/logicpd/zoom3/debug_board.c 
b/board/logicpd/zoom3/debug_board.c
new file mode 100644
index 000..0520257
--- /dev/null
+++ b/board/logicpd/zoom3/debug_board.c
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2010 Wind River Systems, Inc.
+ * Tom Rix 
+ * Aldo Cedillo 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#define DEBUG_BOARD_CONNECTED  1
+#define DEBUG_BOARD_NOT_CONNECTED  0
+
+static int debug_board_connected = DEBUG_BOARD_CONNECTED;
+
+static void zoom3_debug_board_detect(void)
+{
+   int val = 0;
+
+   /*
+* TODO gpio 158 is UART1_RX, should we make a macro of this
+* instead of the raw number?
+*/
+   if (!omap_request_gpio(158)) {
+   /*
+* GPIO to query for debug board
+* 158 db board query
+*/
+   omap_set_gpio_direction(158, 1);
+   val = omap_get_gpio_datain(158);
+   omap_free_gpio(158);
+   }
+
+   if (!val)
+   debug_board_connected = DEBUG_BOARD_NOT_CONNECTED;
+}
+
+int zoom3_debug_board_connected(void)
+{
+   static int first_time = 1;
+
+   if (first_time) {
+   zoom3_debug_board_detect();
+   first_time = 0;
+   }
+
+   return debug_board_connected;
+}
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 03/11] [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.h)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/zoom3_serial.h |   76 
 1 files changed, 76 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/zoom3_serial.h

diff --git a/board/logicpd/zoom3/zoom3_serial.h 
b/board/logicpd/zoom3/zoom3_serial.h
new file mode 100644
index 000..f581a7f
--- /dev/null
+++ b/board/logicpd/zoom3/zoom3_serial.h
@@ -0,0 +1,76 @@
+/*
+ * Copyright (c) 2009 Wind River Systems, Inc.
+ * Tom Rix 
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#ifndef ZOOM3_SERIAL_H
+#define ZOOM3_SERIAL_H
+
+extern int zoom3_debug_board_connected(void);
+
+#define SERIAL_TL16CP754C_BASE 0x1000  /* Zoom3 serial chip address */
+
+#define QUAD_BASE_0SERIAL_TL16CP754C_BASE
+#define QUAD_BASE_1(SERIAL_TL16CP754C_BASE + 0x100)
+#define QUAD_BASE_2(SERIAL_TL16CP754C_BASE + 0x200)
+#define QUAD_BASE_3(SERIAL_TL16CP754C_BASE + 0x300)
+
+#define S(a) #a
+#define N(a) S(quad##a)
+#define U(a) S(UART##a)
+
+#define QUAD_INIT(n)   \
+int quad_init_##n(void)\
+{  \
+   return quad_init_dev(QUAD_BASE_##n);\
+}  \
+void quad_setbrg_##n(void) \
+{  \
+   quad_setbrg_dev(QUAD_BASE_##n); \
+}  \
+void quad_putc_##n(const char c)   \
+{  \
+   quad_putc_dev(QUAD_BASE_##n, c);\
+}  \
+void quad_puts_##n(const char *s)  \
+{  \
+   quad_puts_dev(QUAD_BASE_##n, s);\
+}  \
+int quad_getc_##n(void)\
+{  \
+   return quad_getc_dev(QUAD_BASE_##n);\
+}  \
+int quad_tstc_##n(void)\
+{  \
+   return quad_tstc_dev(QUAD_BASE_##n);\
+}  \
+struct serial_device zoom3_serial_device##n =  \
+{  \
+   N(n),   \
+   U(n),   \
+   quad_init_##n,  \
+   NULL,   \
+   quad_setbrg_##n,\
+   quad_getc_##n,  \
+   quad_tstc_##n,  \
+   quad_putc_##n,  \
+   quad_puts_##n,  \
+};
+
+#endif /* ZOOM3_SERIAL_H */
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 02/11] [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.c)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/zoom3.c |  201 +++
 1 files changed, 201 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/zoom3.c

diff --git a/board/logicpd/zoom3/zoom3.c b/board/logicpd/zoom3/zoom3.c
new file mode 100644
index 000..f5a8201
--- /dev/null
+++ b/board/logicpd/zoom3/zoom3.c
@@ -0,0 +1,201 @@
+/*
+ * Copyright (c) 2010 Texas Instruments 
+ * Aldo Cedillo 
+ *
+ * Derived from Zoom2 code by
+ * Tom Rix 
+ *
+ * Derived from Zoom1 code by
+ *  Nishanth Menon 
+ *  Sunil Kumar 
+ *  Shashi Ranjan 
+ *  Richard Woodruff 
+ *  Syed Mohammed Khasim 
+ *
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include 
+#include 
+#ifdef CONFIG_STATUS_LED
+#include 
+#endif
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include "zoom3.h"
+#include "zoom3_serial.h"
+
+
+/*
+ * This is the zoom3, board specific, gpmc configuration for the
+ * quad uart on the debug board. The more general gpmc configurations
+ * are setup at the cpu level in vim arch/arm/cpu/armv7/omap3/mem.c
+ *
+ * The details of the setting of the serial gpmc setup are not available.
+ * The values were provided by another party.
+ */
+static u32 gpmc_serial_TL16CP754C[GPMC_MAX_REG] = {
+   0x00011000,
+   0x001f1f01,
+   0x00080803,
+   0x1d091d09,
+   0x041f1f1f,
+   0x1d0904c4, 0
+};
+
+/* Used to track the revision of the board */
+static zoom3_revision revision = ZOOM3_REVISION_UNKNOWN;
+
+/*
+ * Routine: zoom3_get_version
+ * Description: Return the revision of the Zoom3 this code is running on.
+ */
+zoom3_revision zoom3_get_revision(void)
+{
+   return revision;
+}
+
+/*
+ * Routine: zoom3_identify
+ * Description: Detect which version of Zoom3 we are running on.
+ */
+void zoom3_identify(void)
+{
+   /*
+* To check for production board vs beta board,
+* check if gpio 94 is clear.
+*
+* No way yet to check for alpha board identity.
+* Alpha boards were produced in very limited quantities
+* and they are not commonly used. The are mentioned here
+* only for completeness.
+*/
+   if (!omap_request_gpio(94)) {
+   unsigned int val;
+
+   omap_set_gpio_direction(94, 1);
+   val = omap_get_gpio_datain(94);
+   omap_free_gpio(94);
+
+   if (val)
+   revision = ZOOM3_REVISION_BETA;
+   else
+   revision = ZOOM3_REVISION_PRODUCTION;
+   }
+
+   puts("Board revision ");
+
+   switch (revision) {
+   case ZOOM3_REVISION_PRODUCTION:
+   puts("Production\n");
+   break;
+   case ZOOM3_REVISION_BETA:
+   puts("Beta\n");
+   break;
+   default:
+   puts("Unknown\n");
+   break;
+   }
+}
+
+/*
+ * Routine: board_init
+ * Description: Early hardware init.
+ */
+int board_init(void)
+{
+   DECLARE_GLOBAL_DATA_PTR;
+   u32 *gpmc_config;
+
+   gpmc_init();/* in SRAM or SDRAM, finish GPMC */
+
+   /* Configure console support for zoom3 */
+   gpmc_config = gpmc_serial_TL16CP754C;
+   enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[3],
+   SERIAL_TL16CP754C_BASE, GPMC_SIZE_16M);
+
+   /* board id for Linux */
+   gd->bd->bi_arch_number = MACH_TYPE_OMAP_ZOOM3;
+   /* boot param addr */
+   gd->bd->bi_boot_params = (OMAP36XX_SDRC_CS0 + 0x100);
+
+#if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
+   status_led_set(STATUS_LED_BOOT, STATUS_LED_ON);
+#endif
+   return 0;
+}
+
+/*
+ * Routine: misc_init_r
+ * Description: Configure zoom board specific configurations
+ */
+int misc_init_r(void)
+{
+   zoom3_identify();
+   #if (CONFIG_TWL4030_POWER)
+   twl4030_power_init();
+   twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
+   #endif
+   dieid_num_r();
+
+   /*
+* Board reset
+* The board is reset by holding the large button
+* on the top right 

[U-Boot] [PATCH] display the entry point when compiling a stand-alone program

2010-06-10 Thread Timur Tabi
Contrary to popular belief, the entry point for a stand-alone program is not
consistent.  The only way to know for sure is to use the nm program and
search for the entry point function.  So we update the Makefile build rule
to display this entry point after the ELF image is created.

Signed-off-by: Timur Tabi 
---
 examples/standalone/Makefile |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 6ea3b93..d6a01ea 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -83,6 +83,7 @@ $(obj)%:  $(obj)%.o $(LIB)
$(LD) -g -Ttext $(STANDALONE_LOAD_ADDR) \
-o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \
-L$(gcclibdir) -lgcc
+   $(NM) $@ | grep $@
 
 $(SREC):
 $(obj)%.srec:  $(obj)%
-- 
1.7.0.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/2] cpuat91: unbreak ethernet

2010-06-10 Thread Eric Bénard
* the following problems are met :
config was set to use the new driver as a default but
- RMII was not enabled for the new driver
- the new driver didn't compile with RMII enabled
- the new driver initialize a PHY at address O when the PHY of
this board is at 1 thus we get "AT91 EMAC RMII: No PHY present"

* to fix these problems, this patch :
- enable RMII for the new driver
- fix the wrong define used in the at91_emac.c
- allow the config file to set a default phy address (and use
0 as a default as in the actual at91_emac.c driver)

Signed-off-by: Eric Bénard 
---
 drivers/net/at91_emac.c   |   24 ++--
 include/configs/cpuat91.h |9 +++--
 2 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/drivers/net/at91_emac.c b/drivers/net/at91_emac.c
index 2399569..1ebcf05 100644
--- a/drivers/net/at91_emac.c
+++ b/drivers/net/at91_emac.c
@@ -53,6 +53,10 @@
Please decrease the CONFIG_SYS_RX_ETH_BUFFER value
 #endif
 
+#ifndef CONFIG_DRIVER_AT91EMAC_PHYADDR
+#define CONFIG_DRIVER_AT91EMAC_PHYADDR 0
+#endif
+
 /* MDIO clock must not exceed 2.5 MHz, so enable MCK divider */
 #if (AT91C_MASTER_CLOCK > 8000)
#define HCLK_DIVAT91_EMAC_CFG_MCLK_64
@@ -198,12 +202,12 @@ static int at91emac_phy_reset(struct eth_device *netdev)
emac = (at91_emac_t *) netdev->iobase;
 
adv = ADVERTISE_CSMA | ADVERTISE_ALL;
-   at91emac_write(emac, 0, MII_ADVERTISE, adv);
+   at91emac_write(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, MII_ADVERTISE, 
adv);
VERBOSEP("%s: Starting autonegotiation...\n", netdev->name);
-   at91emac_write(emac, 0, MII_BMCR, (BMCR_ANENABLE | BMCR_ANRESTART));
+   at91emac_write(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, MII_BMCR, 
(BMCR_ANENABLE | BMCR_ANRESTART));
 
for (i = 0; i < 10 / 100; i++) {
-   at91emac_read(emac, 0, MII_BMSR, &status);
+   at91emac_read(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, MII_BMSR, 
&status);
if (status & BMSR_ANEGCOMPLETE)
break;
udelay(100);
@@ -229,13 +233,13 @@ static int at91emac_phy_init(struct eth_device *netdev)
emac = (at91_emac_t *) netdev->iobase;
 
/* Check if the PHY is up to snuff... */
-   at91emac_read(emac, 0, MII_PHYSID1, &phy_id);
+   at91emac_read(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, MII_PHYSID1, 
&phy_id);
if (phy_id == 0x) {
printf("%s: No PHY present\n", netdev->name);
return 1;
}
 
-   at91emac_read(emac, 0, MII_BMSR, &status);
+   at91emac_read(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, MII_BMSR, &status);
 
if (!(status & BMSR_LSTATUS)) {
/* Try to re-negotiate if we don't have link already. */
@@ -243,7 +247,7 @@ static int at91emac_phy_init(struct eth_device *netdev)
return 2;
 
for (i = 0; i < 10 / 100; i++) {
-   at91emac_read(emac, 0, MII_BMSR, &status);
+   at91emac_read(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, 
MII_BMSR, &status);
if (status & BMSR_LSTATUS)
break;
udelay(100);
@@ -253,8 +257,8 @@ static int at91emac_phy_init(struct eth_device *netdev)
VERBOSEP("%s: link down\n", netdev->name);
return 3;
} else {
-   at91emac_read(emac, 0, MII_ADVERTISE, &adv);
-   at91emac_read(emac, 0, MII_LPA, &lpa);
+   at91emac_read(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, 
MII_ADVERTISE, &adv);
+   at91emac_read(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, MII_LPA, 
&lpa);
media = mii_nway_result(lpa & adv);
speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF)
 ? 1 : 0);
@@ -271,7 +275,7 @@ int at91emac_UpdateLinkSpeed(at91_emac_t *emac)
 {
unsigned short stat1;
 
-   at91emac_read(emac, 0, MII_BMSR, &stat1);
+   at91emac_read(emac, CONFIG_DRIVER_AT91EMAC_PHYADDR, MII_BMSR, &stat1);
 
if (!(stat1 & BMSR_LSTATUS))/* link status up? */
return 1;
@@ -372,7 +376,7 @@ static int at91emac_init(struct eth_device *netdev, bd_t 
*bd)
value = AT91_EMAC_CFG_CAF | AT91_EMAC_CFG_NBC |
HCLK_DIV;
 #ifdef CONFIG_RMII
-   value |= AT91C_EMAC_RMII;
+   value |= AT91_EMAC_CFG_RMII;
 #endif
writel(value, &emac->cfg);
 
diff --git a/include/configs/cpuat91.h b/include/configs/cpuat91.h
index b4fda76..049298c 100644
--- a/include/configs/cpuat91.h
+++ b/include/configs/cpuat91.h
@@ -131,15 +131,12 @@
(CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 512 * 1024)
 
 #define CONFIG_NET_MULTI   1
-#ifdef CONFIG_NET_MULTI
 #define CONFIG_DRIVER_AT91EMAC 1
 #define CONFIG_SYS_RX_ETH_BUFFER   8
-#else
-#define CONFIG_DRIVER_ETHER1
-#endif
+#define CONFIG_RMII1
+#define

Re: [U-Boot] Bug in IP/UDP defragment?

2010-06-10 Thread Alessandro Rubini
Hello.
Please forgive my delay.

> 16:58:32.290407 IP 10.12.48.10.33088 > 10.12.48.32.3285: UDP, length 2959
> 16:58:32.290410 IP 10.12.48.10 > 10.12.48.32: udp
> 16:58:32.290412 IP 10.12.48.10 > 10.12.48.32: udp

The third fragment here is less than 8 bytes of payload, and this
triggers the bug.

> I don't know yet what are the side effects of my patch.

Ok, I restudied the flow.

> - if (offset8 + (len / 8) <= h - payload) {
> + if (offset8 + (len / 8) < h - payload) {
>   /* no overlap with holes (dup fragment?) */
>   return NULL;

offset8 is the start of this fragment, as 8-byte-items, and h is the
current hole, the one that might be relevant. Since everything before
"h" is already filled, a fragment that ends where this hole starts
is duplicate, thus "<=". 

Here len/8 is 0, so you force accepting this trailing fragment, but
you'll also accept duplicate packets.  Looking at how following code
behaves in this case (it assumes some hole or part of is filled),
the "overlaps with initial part of the hole" will trigger, and the
hole will be rewritten unchanged.

So I don't see bad side effects in your fix, but if anyone will re-read
the code (looking for another bug, for example) after your change it will
be hard to understand (they'll suggest reverting the change for example).

I'd suggest to still discard duplicate fragments, by turning

if (offset8 + (len / 8) <= h - payload)

to
/* last fragment may be 1..7 bytes, the "+7" forces acceptance */
if (offset8 + ((len + 7) / 8) <= h - payload)

or something along these lines. Will you please post a patch?

Thanks a lof for your report and fix

/alessandro
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH V7 3/3] Add support for the LaCie ED Mini V2 board

2010-06-10 Thread Prafulla Wadaskar
 

> -Original Message-
> From: u-boot-boun...@lists.denx.de 
> [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Albert Aribaud
> Sent: Thursday, June 10, 2010 2:20 AM
> To: u-boot@lists.denx.de
> Subject: [U-Boot] [PATCH V7 3/3] Add support for the LaCie ED 
> Mini V2 board
> 
> This patch adds support for the LaCie ED Mini V2 product
> which is based on the Marvell Orion5x SoC.
> 
> Signed-off-by: Albert Aribaud 
> ---
>  MAINTAINERS |4 +
>  MAKEALL |1 +
>  Makefile|3 +
>  board/LaCie/edminiv2/Makefile   |   53 
>  board/LaCie/edminiv2/config.mk  |   27 ++
>  board/LaCie/edminiv2/edminiv2.c |   92 +
>  include/configs/edminiv2.h  |  172 
...snip...
> +/*
> + * Board-specific values for Orion5x MPP low level init:
> + * - MPPs 12 to 15 are SATA LEDs (mode 5)
> + * - Others are GPIO/unused (mode 3 for MPP0, mode 5 for
> + *   MPP16 to MPP19, mode 0 for others
> + */
> +
> +#define ORION5X_MPP0_7   0x0003
> +#define ORION5X_MPP8_15  0x
> +#define ORION5X_MPP16_23 0x
> +
> +/*
> + * Board-specific values for Orion5x GPIO low level init:
> + * - GPIO3 is input (RTC interrupt)
> + * - GPIO16 is Power LED control (0 = on, 1 = off)
> + * - GPIO17 is Power LED source select (0 = CPLD, 1 = GPIO16)
> + * - GPIO18 is Power Button status (0 = Released, 1 = Pressed)
> + * - Last GPIO is 26, further bits are supposed to be 0.
> + * Enable mask has ones for INPUT, 0 for OUTPUT.
> + * Default is LED ON.
> + */
> +
> +#define ORION5X_GPIO_OUT_ENABLE  0x03fc
> +#define ORION5X_GPIO_OUT_VALUE   0x03fc

Ack for the patch, except above definition to be used in patch 1/3
Regards..
Prafulla . .
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Micrel Controller KSZ8841-16MBL

2010-06-10 Thread Ben Warren
On 6/10/2010 12:02 PM, Douglas Lopes Pereira wrote:
> Hi all,
>
> I need some help here...
>
> I'm working on adding a driver for KSZ8841 ethernet controller which I found
> at this forum: blackfin.uclinux.org.
>
> I was looking at the mail list archive and found a message from Prafulla
> answering Raphael Amorin.
>
> Mr. Prafulla suggested him to add the input code into drivers/net/phy/ and
> public interfaces in netdev.h
>
> Since drivers/net/phy/ does not exist anymore, I'm assuming that input code
> should go to drivers/net/ instead.
>
>
Huh? drivers/net/phy does exist...  But the KS8841 is a MAC/PHY, so 
belongs in driver/net proper.
> But what about the public interfaces (aka. eth_init, eth_send)? Where should
> it go?
>
You're using an out-of-date API.  Please read the documentation 
(doc/README.drivers.eth)

I actually wrote a driver for this controller a few years ago, but 
didn't submit it because at the time it didn't make sense to submit my 
board and we don't allow bare drivers (ones for which there is no 
in-tree board).  If you'd like, I can clean up the driver and send it to 
you, and then put it in the tree.  Unfortunately I don't have hardware 
to test it on anymore.
> Thanks for your time,
> Best regards,
> Douglas
>
regards,
Ben
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] MMC/SD Support for Open-RD Base/Ultimate

2010-06-10 Thread Prafulla Wadaskar
 

> -Original Message-
> From: u-boot-boun...@lists.denx.de 
> [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Fred Server
> Sent: Thursday, June 10, 2010 8:48 PM
> To: u-boot@lists.denx.de
> Subject: [U-Boot] MMC/SD Support for Open-RD Base/Ultimate
> 
> Hello All,
> 
> Are there any plans to add MMC/SD support for the Open-RD 
> Base/Ultimate
> platforms ?  It was on a to be done list over 6 months ago, but there
> doesn't seem to have been any movement.  I have tried a

Indeed it is good to have it, but at least from my side I do not have cycles 
for it :-(,
I will appreciate if someone can initiate it.
 
> recent version of
> U-boot and like some of the new features, but because I need 
> to boot from
> SD, I am stuck with an ancient unsupported 1.1.4 version.  
> Thanks for any
> help in this area.

You can use "boot from USB storage" if you are comfortable with it.

Regards..
Prafulla . .
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 01/11] [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.h)

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 board/logicpd/zoom3/zoom3.h |  163 +++
 1 files changed, 163 insertions(+), 0 deletions(-)
 create mode 100644 board/logicpd/zoom3/zoom3.h

diff --git a/board/logicpd/zoom3/zoom3.h b/board/logicpd/zoom3/zoom3.h
new file mode 100644
index 000..7ef4af0
--- /dev/null
+++ b/board/logicpd/zoom3/zoom3.h
@@ -0,0 +1,163 @@
+/*
+ * Copyright (c) 2010 Texas Instruments
+ *
+ * Aldo Cedillo 
+ *
+ * Derived from: board/omap3/zoom2/zoom2.h
+ * Tom Rix 
+ *
+ * Derived from: board/omap3/zoom1/zoom1.h
+ * Nishanth Menon 
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _BOARD_ZOOM3_H_
+#define _BOARD_ZOOM3_H_
+
+const omap3_sysinfo sysinfo = {
+   DDR_STACKED,
+   "OMAP3 Zoom3",
+   "NAND",
+};
+
+typedef enum {
+   ZOOM3_REVISION_UNKNOWN = 0,
+   ZOOM3_REVISION_ALPHA,
+   ZOOM3_REVISION_BETA,
+   ZOOM3_REVISION_PRODUCTION
+} zoom3_revision;
+
+zoom3_revision zoom3_get_revision(void);
+
+/*
+ * IEN - Input Enable
+ * IDIS- Input Disable
+ * PTD - Pull type Down
+ * PTU - Pull type Up
+ * DIS - Pull type selection is inactive
+ * EN  - Pull type selection is active
+ * M0  - Mode 0
+ * The commented string gives the final mux configuration for that pin
+ */
+#define MUX_ZOOM3() \
+ /* SDRC*/\
+   MUX_VAL(CP(SDRC_D0),(IEN  | PTD | DIS | M0)) /* SDRC_D0 */\
+   MUX_VAL(CP(SDRC_D1),(IEN  | PTD | DIS | M0)) /* SDRC_D1 */\
+   MUX_VAL(CP(SDRC_D2),(IEN  | PTD | DIS | M0)) /* SDRC_D2 */\
+   MUX_VAL(CP(SDRC_D3),(IEN  | PTD | DIS | M0)) /* SDRC_D3 */\
+   MUX_VAL(CP(SDRC_D4),(IEN  | PTD | DIS | M0)) /* SDRC_D4 */\
+   MUX_VAL(CP(SDRC_D5),(IEN  | PTD | DIS | M0)) /* SDRC_D5 */\
+   MUX_VAL(CP(SDRC_D6),(IEN  | PTD | DIS | M0)) /* SDRC_D6 */\
+   MUX_VAL(CP(SDRC_D7),(IEN  | PTD | DIS | M0)) /* SDRC_D7 */\
+   MUX_VAL(CP(SDRC_D8),(IEN  | PTD | DIS | M0)) /* SDRC_D8 */\
+   MUX_VAL(CP(SDRC_D9),(IEN  | PTD | DIS | M0)) /* SDRC_D9 */\
+   MUX_VAL(CP(SDRC_D10),   (IEN  | PTD | DIS | M0)) /* SDRC_D10 */\
+   MUX_VAL(CP(SDRC_D11),   (IEN  | PTD | DIS | M0)) /* SDRC_D11 */\
+   MUX_VAL(CP(SDRC_D12),   (IEN  | PTD | DIS | M0)) /* SDRC_D12 */\
+   MUX_VAL(CP(SDRC_D13),   (IEN  | PTD | DIS | M0)) /* SDRC_D13 */\
+   MUX_VAL(CP(SDRC_D14),   (IEN  | PTD | DIS | M0)) /* SDRC_D14 */\
+   MUX_VAL(CP(SDRC_D15),   (IEN  | PTD | DIS | M0)) /* SDRC_D15 */\
+   MUX_VAL(CP(SDRC_D16),   (IEN  | PTD | DIS | M0)) /* SDRC_D16 */\
+   MUX_VAL(CP(SDRC_D17),   (IEN  | PTD | DIS | M0)) /* SDRC_D17 */\
+   MUX_VAL(CP(SDRC_D18),   (IEN  | PTD | DIS | M0)) /* SDRC_D18 */\
+   MUX_VAL(CP(SDRC_D19),   (IEN  | PTD | DIS | M0)) /* SDRC_D19 */\
+   MUX_VAL(CP(SDRC_D20),   (IEN  | PTD | DIS | M0)) /* SDRC_D20 */\
+   MUX_VAL(CP(SDRC_D21),   (IEN  | PTD | DIS | M0)) /* SDRC_D21 */\
+   MUX_VAL(CP(SDRC_D22),   (IEN  | PTD | DIS | M0)) /* SDRC_D22 */\
+   MUX_VAL(CP(SDRC_D23),   (IEN  | PTD | DIS | M0)) /* SDRC_D23 */\
+   MUX_VAL(CP(SDRC_D24),   (IEN  | PTD | DIS | M0)) /* SDRC_D24 */\
+   MUX_VAL(CP(SDRC_D25),   (IEN  | PTD | DIS | M0)) /* SDRC_D25 */\
+   MUX_VAL(CP(SDRC_D26),   (IEN  | PTD | DIS | M0)) /* SDRC_D26 */\
+   MUX_VAL(CP(SDRC_D27),   (IEN  | PTD | DIS | M0)) /* SDRC_D27 */\
+   MUX_VAL(CP(SDRC_D28),   (IEN  | PTD | DIS | M0)) /* SDRC_D28 */\
+   MUX_VAL(CP(SDRC_D29),   (IEN  | PTD | DIS | M0)) /* SDRC_D29 */\
+   MUX_VAL(CP(SDRC_D30),   (IEN  | PTD | DIS | M0)) /* SDRC_D30 */\
+   MUX_VAL(CP(SDRC_D31),   (IEN  | PTD | DIS | M0)) /* SDRC_D31 */\
+   MUX_VAL(CP(SDRC_CLK),   (IEN  | PTD | DIS | M0)) /* SDRC_CLK */\
+   MUX_VAL(CP(SDRC_DQS0),  (IEN  | PTD | DIS | M0)) /* SDRC_DQS0 
*/\
+   MUX_VAL(CP(SDRC_DQS1),  (IEN  | PTD | DIS | M0)) /* SDRC_DQS1 
*/\
+   MUX_VAL(CP(SDRC_DQS2)

[U-Boot] [PATCH 11/11] [U-BOOT][ZOOM3] Initial support - add board to main Makefile, add the board to the list in MAKEALL file, and name to MAINTAINERS.

2010-06-10 Thread Aldo Cedillo
From: Aldo Brett Cedillo Martinez 

Signed-off-by: Aldo Brett Cedillo Martinez 
---
 MAINTAINERS |4 
 MAKEALL |1 +
 Makefile|3 +++
 3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 7a13d28..384dda9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -798,6 +798,10 @@ Alex Z
lartSA1100
dnp1110 SA1110
 
+Aldo Brett Cedillo Martinez 
+
+   omap3_zoom3 ARM CORTEX-A8 (OMAP3xx SoC)
+
 -
 
 Unknown / orphaned boards:
diff --git a/MAKEALL b/MAKEALL
index 2527352..8ebeaad 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -650,6 +650,7 @@ LIST_ARM_CORTEX_A8="\
omap3_sdp3430   \
omap3_zoom1 \
omap3_zoom2 \
+   omap3_zoom3 \
smdkc100\
 "
 
diff --git a/Makefile b/Makefile
index c26e491..198ee67 100644
--- a/Makefile
+++ b/Makefile
@@ -3179,6 +3179,9 @@ omap3_zoom1_config :  unconfig
 omap3_zoom2_config :   unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 logicpd omap3
 
+omap3_zoom3_config :   unconfig
+   @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom3 logicpd omap3
+
 smdkc100_config:   unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 smdkc100 samsung s5pc1xx
 
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 00/11][U-BOOT][ZOOM3] Initial support.

2010-06-10 Thread Martinez, Aldo
Got it :)

> -Original Message-
> From: Wolfgang Denk [mailto:w...@denx.de]
> Sent: Thursday, June 10, 2010 4:26 PM
> To: Martinez, Aldo
> Cc: u-boot@lists.denx.de
> Subject: Re: [U-Boot] [PATCH 00/11][U-BOOT][ZOOM3] Initial support.
> 
> Dear Aldo Cedillo,
> 
> In message <1276200675-16489-1-git-send-email-aldo.cedi...@ti.com> you
> wrote:
> > From: Aldo Brett Cedillo Martinez 
> >
> > The following series of patches is intented to give basic functionality
> > to OMAP3630 Zoom3 board. All your reviews are welcome and appreciated.
> >
> > Aldo Brett Cedillo Martinez (11):
> >   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.h)
> >   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3.c)
> >   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.h)
> >   [U-BOOT][ZOOM3] Initial support - adding board files (zoom3_serial.c)
> >   [U-BOOT][ZOOM3] Initial support - adding board files (led.c)
> >   [U-BOOT][ZOOM3] Initial support - adding board files (debug_board.c)
> >   [U-BOOT][ZOOM3] Initial support - adding board files (config.mk)
> >   [U-BOOT][ZOOM3] Initial support - adding board files (Makefile)
> >   [U-BOOT][ZOOM3] Initial support - add config file (omap3_zoom3.h)
> >   [U-BOOT][ZOOM3] Initial support - added OMAP3630 serial devices.
> >   [U-BOOT][ZOOM3] Initial support - add board to main Makefile, , add
> > the board to the list in MAKEALL file, and name to MAINTAINERS.
> 
> NAK.
> 
> Please submit all the stuff that belongs together as a single commit.
> Please read the documentation, for example
> http://www.denx.de/wiki/U-Boot/Patches
> 
> [I don't even look at the content yet.]
> 
> Best regards,
> 
> Wolfgang Denk
> 
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
> "More software projects have gone awry for lack of calendar time than
> for all other causes combined."
>  - Fred Brooks, Jr., _The Mythical Man Month_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] medical profession listings

2010-06-10 Thread Bledsoe J Juan
Special Package for this week

Certified Physicians in America 

788,977 in total * 17,817 emails

Featuring coverage for more than 30 specialties like Internal Medicine, Family 
Practice, Opthalmology, Anesthesiologists, Cardiologists and more

16 different sortable fields


Listing of US Pharma Companies
Names and email addresses of 47,000 employees in high-ranking positions

Contact List of US Hospitals
23,000 Admins in more than 7,000 hospitals {a $399 value]

Complete and Accurate Listing for Dental Service Providers
Virtually every dentist in America with full contact details

US Chiropractor List
Complete data for all chiropractors in America (a $250 value)


Cost just slashed -  
$399 for everything

send us an email:  soco...@greenlightmarketing.net

  

exp. mar Jun 11 2010


email disapp...@greenlightmarketing.net for delisting


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] How can I use yaffs2 in uboot

2010-06-10 Thread jackfriend
Change CONFIG_SYS_MALLOC_LEN ,Now I can write  a yaffs2 file system image (59M) 
in nand flash  (/flash/a )

but The Linux how to find the file system image?(the system  support yaffs2)
set bootargs noinitrd root=/dev/mtdblock3 rootfstype=yaffs2 rw 
console=ttySAC0,115200 init=/linuxrc mem=64M

this way doesn't work

I use

my2440# nand write.yaffs 30008000 0x58 3b0 
NAND write: device 0 offset 0x58, size 0x3b0
written: OK

my2440#tftp zImage.img

and then bootm  linux can find the file system image


 [*]   MTD partitioning support   
< > RedBoot partition table parsing 

[*] Command line partition table parsing  
< > TI AR7 partitioning support   
static struct mtd_partition mini2440_default_nand_part[] __initdata = {

  [0] = {
.name   = "u-boot",
.size   = SZ_256K + SZ_128K,   
.offset = 0,
   }, 

 [1] = {
 .name   = "u-boot-env",
 .size   = SZ_128K,   
 .offset = SZ_256K + SZ_128K,
  },  
 
 [2] = {
 .name   = "kernel",
 .size   = 0x0050,   
 .offset = SZ_512K,
  },  
 
 [3] = {   
  .name   = "root",
  .offset = SZ_512K + 0x0050,
  .size   = MTDPART_SIZ_FULL,
   },
   };

in /uboot/fs/yaffs2/yaffscfg.c  flashDev->startBlock =44;
flashDev->endBlock = 800;
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 2/2] powerpc/85xx: Report workaround of errata SATA-A001

2010-06-10 Thread Timur Tabi
On Wed, Jun 9, 2010 at 11:18 PM, Kumar Gala  wrote:
>  static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
>  {
> +       __maybe_unused u32 svr = get_svr();
> +
> +#if defined(CONFIG_FSL_SATA_V2) && defined(CONFIG_FSL_SATA_ERRATUM_A001)
> +       if (IS_SVR_REV(svr, 1, 0) &&
> +           ((SVR_SOC_VER(svr) == SVR_P1022) ||
> +            (SVR_SOC_VER(svr) == SVR_P1022_E) ||
> +            (SVR_SOC_VER(svr) == SVR_P1013) ||
> +            (SVR_SOC_VER(svr) == SVR_P1013_E))) {
> +               puts("Work-around for Erratum SATA A001 enabled\n");
> +       }
> +#endif
> +
>        return 0;
>  }

How are you planning on handling chip-specific errata?  Do you forsee
do_errata() containing code for every erratum of every chip?

-- 
Timur Tabi
Linux kernel developer at Freescale
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Is it possible to use 1GB or DDR on MPC8360 with e300 core?

2010-06-10 Thread remya pillai
Hi Kim

Thanks for the reply.

I would like to make my situation more clear to you.

CONFIG_SPD_EEPROM is defined in my board config file already. I could read
the following spd eeprom info also. From this, its clear that we have enough
hardware to provide 1GB memory.

*DIMM type:   JKCS38UKA 1GB
SPD size:128
EEPROM size: 256
Memory type: 8
Row addr:14
Column addr: 10
# of rows:   96
Row density: 1
# of banks:  8
Data width:  72
Chip width:  8
Refresh rate:82
CAS latencies:   38
Write latencies: 04
tRP: 60
**tRCD:60*

In mpc8360e , we have 8 BAT registers each has 256MB max size. I tried to
club 4 bat registers to get 1GB RAM space. But Its failing.

"board info" structure, which passes the u-boot parameters to linux kernel
has ram_size= 1GB. Also the DDRLAWBAR & DDRLAWAR registers are configured
for 1GB. But still I could transfer only 256MB to DRAM in the u-boot level.

Is it a u-boot limitation?  I am very new to u-boot &  kernel. So pls help
me out.

Regards
Remya






On Wed, Jun 9, 2010 at 9:58 PM, Kim Phillips wrote:

> On Wed, 9 Jun 2010 17:31:13 +0530
> remya pillai  wrote:
>
> > I have an mpc8360e processor (has e300 core and QE) for our networking
> > application. I have to use 1GB DRAM module in my board, but u-boot for
> > powerpc is not supporting that. It is supporting only 256MB DRAM module.
>
> Apparently DDR is set up manually in the u-boot port of your board -
> try defining CONFIG_SPD_EEPROM in your board config, or reconfigure its
> static DDR parameters.
>
> Kim
>



-- 
REMYA S J
DN Softsol Private Limited
Confidential
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 00/19] SPEAr : Network support for spear platforms and SPEAr1300

2010-06-10 Thread Vipin KUMAR
Dear Tom, Wolfgang,

Can you please let me know the status of the remainging patches of this 
patch-set.
I have not received any reply after sending v3 patch a long time back

These are the Acks I have already received

SPEAr : Configuring FSMC driver for NAND interface
http://www.mail-archive.com/u-boot@lists.denx.de/msg31656.html
SPEAr : FSMC driver support added
http://www.mail-archive.com/u-boot@lists.denx.de/msg31655.html
SPEAr : i2c driver moved completely into drivers/i2c
http://www.mail-archive.com/u-boot@lists.denx.de/msg31604.html
SPEAr : USB Device Controller driver support added
http://www.mail-archive.com/u-boot@lists.denx.de/msg32362.html
SPEAr : macb driver support added for spear310 and spear320
http://www.mail-archive.com/u-boot@lists.denx.de/msg33153.html
SPEAr : Network support configured for spear SoCs
http://www.mail-archive.com/u-boot@lists.denx.de/msg33152.html

Thanks in advance

Regards
Vipin

On 5/28/2010 10:22 PM, Vipin Kumar wrote:
> Dear Wolfgang,
> 
> This patch-set as been pending for a long time and it seems Tom is also away
> from mails. A few patches have already been Acked by respective device owners
> 
> Please let me know how do I get this patch-set included in 2006.06 release
> 
> Thanks in advance
> Vipin
> 
> On Fri, May 14, 2010 at 8:26 AM, Vipin KUMAR  wrote:
>> Dear Tom,
>>
>> I am still waiting for Ack/feedback if any on this patchset v3
>> All feedbacks provided by you on patchset v2 have been incorporated
>>
>> Regards
>> Vipin
>>
>> On 5/9/2010 7:46 PM, Vipin Kumar wrote:
>>> Hello Tom,
>>>
>>> Please consider this patch-set for mainline submission.
>>> Please let me know if there are any changes to be made
>>> in code or if the patches are good to go into mainline
>>>
>>> Thanks & Regards
>>> Vipin
>>>
>>> On Thu, May 6, 2010 at 4:48 PM, Vipin KUMAR  wrote:
 Hello Tom,
   The following patch-set contains all the accepted feedbacks on patch-set 
 v2.
   Please consider this for submission into mainline

   Below changes are introduced other than the recieved review comments
   1. Introduced a CONFIG_DW_SEARCH_PHY definition, which if defined 
 searches
   the ethernet phy address. Searching was always enabled in earlier patch
   2. Introduced a new function dw_write_hwaddr in ethernet driver and
   registered it as a callback via dev->write_hwaddr. This is a new feature
   recently implemented by Ben.

 Thanks in advance

 Regards
 Vipin

 Vipin Kumar (19):
  u-boot.img file not created when srctree and objtree are different
  change_bit routine defined
  SPEAr : SMI erase and write timeouts increased
  SPEAr : Placing ethaddr write and read within CONFIG_CMD_NET
  SPEAr : Reducing the max RAM size to 128MB
  SPEAr : Basic arch related support added for SPEAr SoCs
  SPEAr : Network driver support added
  SPEAr : Network support configured for spear SoCs
  SPEAr : macb driver support added for spear310 and spear320
  SPEAr : FSMC driver support added
  SPEAr : Configuring FSMC driver for NAND interface
  SPEAr : i2c driver moved completely into drivers/i2c
  SPEAr : smi driver moved completely into drivers/mtd
  SPEAr : USB Device Controller driver support added
  SPEAr : Supporting various configurations for spear3xx and spear6xx
boards
  SPEAr : Basic spear1300 architecture support added
  SPEAr : spear1300 SoC support added
  SPEAr : Removing extraneous code
  SPEAr : USB device controller bugfixes

  MAINTAINERS|1 +
  MAKEALL|1 +
  Makefile   |   30 +-
  arch/arm/cpu/arm926ejs/spear/Makefile  |3 +-
  arch/arm/cpu/arm926ejs/spear/cpu.c |   78 +++
  arch/arm/cpu/arm_cortexa8/spear13xx/Makefile   |   52 ++
  arch/arm/cpu/arm_cortexa8/spear13xx/cache.S|  114 +
  arch/arm/cpu/arm_cortexa8/spear13xx/cpu.c  |   96 
  .../arm_cortexa8/spear13xx/reset.c}|   52 +--
  arch/arm/cpu/arm_cortexa8/spear13xx/timer.c|  138 +
  .../arm/include/asm/arch-spear/clk.h   |   26 +-
  arch/arm/include/asm/arch-spear/hardware.h |   16 +-
  arch/arm/include/asm/arch-spear/spr_misc.h |5 +
  .../arm/include/asm/arch-spear13xx/hardware.h  |   33 +-
  arch/arm/include/asm/arch-spear13xx/spr_gpt.h  |   85 
  arch/arm/include/asm/arch-spear13xx/spr_misc.h |  317 
  .../arm/include/asm/arch-spear13xx/sys_proto.h |   29 +-
  arch/arm/include/asm/bitops.h  |   11 +-
  board/spear/common/Makefile|   10 +-
  board/spear/common/spr_misc.c  |   28 +-
  board/spear/spear1300/Makefile |   51 ++