[U-Boot-Users] [PATCH] Add CONFIG_MII_INIT support to related boards
From: TsiChung Liew <[EMAIL PROTECTED]> Replace CONFIG_8xx and CONFIG_MCF532x to CONFIG_MII_INIT in cmd_init.c. Add CONFIG_MII_INIT to board configuration files that use mii_init() in cmd_init.c. Signed-off-by: TsiChung Liew <[EMAIL PROTECTED]> --- board/fads/fads.h |1 + common/cmd_mii.c |2 +- include/configs/Adder.h|1 + include/configs/EB+MCF-EV123.h |1 + include/configs/EP88x.h|1 + include/configs/GEN860T.h |1 + include/configs/M5235EVB.h |1 + include/configs/M5271EVB.h |1 + include/configs/M5275EVB.h |1 + include/configs/M5282EVB.h |1 + include/configs/M5329EVB.h |1 + include/configs/M5373EVB.h |1 + include/configs/M54455EVB.h|4 ++-- include/configs/M5475EVB.h |1 + include/configs/M5485EVB.h |1 + include/configs/NETPHONE.h |1 + include/configs/NETTA.h|1 + include/configs/NETTA2.h |1 + include/configs/TK885D.h |2 ++ include/configs/TOP860.h |1 + include/configs/TQM885D.h |1 + include/configs/cobra5272.h|1 + include/configs/idmr.h |3 ++- include/configs/spc1920.h |1 + include/configs/stxxtc.h |1 + include/configs/uc100.h|1 + 26 files changed, 29 insertions(+), 4 deletions(-) diff --git a/board/fads/fads.h b/board/fads/fads.h index dea8a0d..b217068 100644 --- a/board/fads/fads.h +++ b/board/fads/fads.h @@ -96,6 +96,7 @@ #ifdef CONFIG_FEC_ENET #define CFG_DISCOVER_PHY +#define CONFIG_MII_INIT1 #endif diff --git a/common/cmd_mii.c b/common/cmd_mii.c index fa753dd..bcbd7aa 100644 --- a/common/cmd_mii.c +++ b/common/cmd_mii.c @@ -306,7 +306,7 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) return 1; } -#if defined(CONFIG_8xx) || defined(CONFIG_MCF532x) || defined(CONFIG_MII_INIT) +#if defined(CONFIG_MII_INIT) mii_init (); #endif diff --git a/include/configs/Adder.h b/include/configs/Adder.h index 7919991..8a76c26 100644 --- a/include/configs/Adder.h +++ b/include/configs/Adder.h @@ -42,6 +42,7 @@ #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2) #define CFG_DISCOVER_PHY +#define CONFIG_MII_INIT1 #define FEC_ENET #endif /* CONFIG_ETHER_ON_FEC || CONFIG_ETHER_ON_FEC2 */ diff --git a/include/configs/EB+MCF-EV123.h b/include/configs/EB+MCF-EV123.h index ea49a5d..5ba7585 100644 --- a/include/configs/EB+MCF-EV123.h +++ b/include/configs/EB+MCF-EV123.h @@ -88,6 +88,7 @@ #ifdef CONFIG_MCFFEC # define CONFIG_NET_MULTI 1 # define CONFIG_MII 1 +# define CONFIG_MII_INIT 1 # define CFG_DISCOVER_PHY # define CFG_RX_ETH_BUFFER8 # define CFG_FAULT_ECHO_LINK_DOWN diff --git a/include/configs/EP88x.h b/include/configs/EP88x.h index 89e0eeb..c2ab18a 100644 --- a/include/configs/EP88x.h +++ b/include/configs/EP88x.h @@ -42,6 +42,7 @@ #defineCONFIG_ETHER_ON_FEC2/* Enable Ethernet on FEC2 */ #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2) #define CFG_DISCOVER_PHY +#define CONFIG_MII_INIT1 #define FEC_ENET #endif /* CONFIG_FEC_ENET */ diff --git a/include/configs/GEN860T.h b/include/configs/GEN860T.h index 3eb3131..c8b5a6d 100644 --- a/include/configs/GEN860T.h +++ b/include/configs/GEN860T.h @@ -147,6 +147,7 @@ #define CONFIG_FEC_ENET #define CFG_DISCOVER_PHY #define CONFIG_MII +#define CONFIG_MII_INIT1 #define CONFIG_PHY_ADDR0 /* diff --git a/include/configs/M5235EVB.h b/include/configs/M5235EVB.h index 3b4bff3..3ee2b39 100644 --- a/include/configs/M5235EVB.h +++ b/include/configs/M5235EVB.h @@ -77,6 +77,7 @@ #ifdef CONFIG_MCFFEC # define CONFIG_NET_MULTI 1 # define CONFIG_MII 1 +# define CONFIG_MII_INIT 1 # define CFG_DISCOVER_PHY # define CFG_RX_ETH_BUFFER8 # define CFG_FAULT_ECHO_LINK_DOWN diff --git a/include/configs/M5271EVB.h b/include/configs/M5271EVB.h index 47e1e03..e1cc720 100644 --- a/include/configs/M5271EVB.h +++ b/include/configs/M5271EVB.h @@ -88,6 +88,7 @@ #ifdef CONFIG_MCFFEC # define CONFIG_NET_MULTI 1 # define CONFIG_MII 1 +# define CONFIG_MII_INIT 1 # define CFG_DISCOVER_PHY # define CFG_RX_ETH_BUFFER8 # define CFG_FAULT_ECHO_LINK_DOWN diff --git a/include/configs/M5275EVB.h b/include/configs/M5275EVB.h index 599f8dc..283c873 100644 --- a/include/configs/M5275EVB.h +++ b/include/configs/M5275EVB.h @@ -89,6 +89,7 @@ #ifdef CONFIG_MCFFEC #define CONFIG_NET_MULTI 1 #define CONFIG_MII 1 +#define CONFIG_MII_INIT1 #define CFG_DISCOVER_PHY #define CFG_RX_ETH_BUFFER 8 #define CFG_FAULT_ECHO_LINK_DOWN diff --git a/include/conf
[U-Boot-Users] [PATCH] Update CONFIG_PCIAUTO_SKIP_HOST_BRIDGE to related boards
From: TsiChung Liew <[EMAIL PROTECTED]> Remove CONFIG_MPC5200 and define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in related board configuration files. Signed-off-by: TsiChung Liew <[EMAIL PROTECTED]> --- drivers/pci/pci_auto.c |2 +- include/configs/BC3450.h|1 + include/configs/IceCube.h |1 + include/configs/M54455EVB.h |2 +- include/configs/M5475EVB.h |2 +- include/configs/M5485EVB.h |1 + include/configs/PM520.h |1 + include/configs/TOP5200.h |1 + include/configs/TQM5200.h |1 + include/configs/Total5200.h |1 + include/configs/aev.h |1 + include/configs/cpci5200.h |1 + include/configs/hmi1001.h |1 + include/configs/inka4x0.h |1 + include/configs/jupiter.h |1 + include/configs/o2dnt.h |1 + include/configs/pf5200.h|1 + include/configs/spieval.h |1 + 18 files changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index 1085a6c..eb69593 100644 --- a/drivers/pci/pci_auto.c +++ b/drivers/pci/pci_auto.c @@ -383,7 +383,7 @@ int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev) hose->current_busno++; break; -#if defined(CONFIG_MPC5200) || defined(CONFIG_PCIAUTO_SKIP_HOST_BRIDGE) +#if defined(CONFIG_PCIAUTO_SKIP_HOST_BRIDGE) case PCI_CLASS_BRIDGE_OTHER: DEBUGF("PCI Autoconfig: Skipping bridge device %d\n", PCI_DEV(dev)); diff --git a/include/configs/BC3450.h b/include/configs/BC3450.h index 3d09ee7..706c13e 100644 --- a/include/configs/BC3450.h +++ b/include/configs/BC3450.h @@ -87,6 +87,7 @@ # define CONFIG_PCI1 # define CONFIG_PCI_PNP1 /* #define CONFIG_PCI_SCAN_SHOW 1 */ +#define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1 #define CONFIG_PCI_MEM_BUS 0x4000 #define CONFIG_PCI_MEM_PHYSCONFIG_PCI_MEM_BUS diff --git a/include/configs/IceCube.h b/include/configs/IceCube.h index 9b485a9..38a0226 100644 --- a/include/configs/IceCube.h +++ b/include/configs/IceCube.h @@ -56,6 +56,7 @@ #if defined(CONFIG_PCI) #define CONFIG_PCI_PNP 1 #define CONFIG_PCI_SCAN_SHOW 1 +#define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1 #define CONFIG_PCI_MEM_BUS 0x4000 #define CONFIG_PCI_MEM_PHYSCONFIG_PCI_MEM_BUS diff --git a/include/configs/M54455EVB.h b/include/configs/M54455EVB.h index f33ccb0..a3c71e3 100644 --- a/include/configs/M54455EVB.h +++ b/include/configs/M54455EVB.h @@ -179,7 +179,7 @@ #ifdef CONFIG_CMD_PCI #define CONFIG_PCI 1 #define CONFIG_PCI_PNP 1 -#define CONFIG_SKIPPCI_HOSTBRIDGE +#define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1 #define CFG_PCI_CACHE_LINE_SIZE4 diff --git a/include/configs/M5475EVB.h b/include/configs/M5475EVB.h index f0d42be..a4e6c5d 100644 --- a/include/configs/M5475EVB.h +++ b/include/configs/M5475EVB.h @@ -132,7 +132,7 @@ #ifdef CONFIG_CMD_PCI #define CONFIG_PCI 1 #define CONFIG_PCI_PNP 1 -#define CONFIG_SKIPPCI_HOSTBRIDGE +#define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1 #define CFG_PCI_CACHE_LINE_SIZE8 diff --git a/include/configs/M5485EVB.h b/include/configs/M5485EVB.h index 88dd219..9121023 100644 --- a/include/configs/M5485EVB.h +++ b/include/configs/M5485EVB.h @@ -129,6 +129,7 @@ #ifdef CONFIG_CMD_PCI #define CONFIG_PCI 1 #define CONFIG_PCI_PNP 1 +#define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1 #define CFG_PCI_MEM_BUS0x8000 #define CFG_PCI_MEM_PHYS CFG_PCI_MEM_BUS diff --git a/include/configs/PM520.h b/include/configs/PM520.h index d9405b0..ad480a6 100644 --- a/include/configs/PM520.h +++ b/include/configs/PM520.h @@ -57,6 +57,7 @@ #define CONFIG_PCI 1 #define CONFIG_PCI_PNP 1 #define CONFIG_PCI_SCAN_SHOW 1 +#define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1 #define CONFIG_PCI_MEM_BUS 0x4000 #define CONFIG_PCI_MEM_PHYSCONFIG_PCI_MEM_BUS diff --git a/include/configs/TOP5200.h b/include/configs/TOP5200.h index dea5ead..1affcfd 100644 --- a/include/configs/TOP5200.h +++ b/include/configs/TOP5200.h @@ -67,6 +67,7 @@ # define CONFIG_PCI 1 # define CONFIG_PCI_PNP 1 # define CONFIG_PCI_SCAN_SHOW 1 +# define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE 1 # define CONFIG_PCI_MEM_BUS 0x4000 # define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS diff --git a/include/configs/TQM5200.h b/include/configs/TQM5200.h index b36c826..bff2edf 100644 --- a/include/configs/TQM5200.h +++ b/include/configs/TQM5200.h @@ -190,6 +190,7 @@ #ifdef CONFIG_PCI #define CONFIG_CMD_PCI +#define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1 #endif #if defined(CONFIG_MINIFAP) || defined(CONFIG_STK52XX) || defined(CONFIG_FO300) diff --git a/include/configs/Total5200.h b/include/configs/Total5200.h index 2e9a2bc..2507d77 100644 --- a/include/configs/Total5200.h +++ b/include/configs/Total5200.h @@ -8
Re: [U-Boot-Users] [PATCH 07/13] SPARC/LEON3: Added GRETH Ethernet 10/100/1000 driver.
Daniel Hellstrom wrote: > Hello Wolfgang, > > GRETH is an Ethernet 10/100 or 10/100/1000 MAC with out without > a debug link (EDCL). The GRETH core is documented in GRIP.pdf > available at www.gaisler.com. > > If the GRETH has GigaBit support (GBIT, Scatter gather, checksum > offloading etc.) can be determined by a bit in the control register. > The GBIT MAC is supported by operating in GRTEH 10/100 legacy mode. > > This patch is also available at > ftp://ftp.gaisler.com/gaisler.com/u-boot/patches. > > Best Regards, > Daniel Hellstrom > > Signed-off-by: Daniel Hellstrom <[EMAIL PROTECTED]> > --- > drivers/net/Makefile |1 + > drivers/net/greth.c | 661 > ++ > drivers/net/greth.h | 97 > net/eth.c|4 + > 4 files changed, 763 insertions(+), 0 deletions(-) > create mode 100644 drivers/net/greth.c > create mode 100644 drivers/net/greth.h > > Applied to net tree. Please be careful where you put your message relative to the "---" line. regards, Ben - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 08/13] SPARC: added SMC91111 driver in and out macros for LEON processors.
Daniel Hellstrom wrote: > Hello Wolfgang, > > This patch makes SPARC/LEON processors able to read and write > to the SMC9 chip using the chip external I/O bus of the memory > controller. This patchs defines the standard in and out macros > expected by the SMC9111 driver. > > To access that I/O bus one must set up the memory controller > (MCTRL or FTMCTRL) correctly. It is assumed that the user sets > up this correctly when the other MCTRL parameters are set up. It > can be set up from the board configuration header file. > > This patch is also available at > ftp://ftp.gaisler.com/gaisler.com/u-boot/patches. > > Best Regards, > Daniel Hellstrom > > Signed-off-by: Daniel Hellstrom <[EMAIL PROTECTED]> > --- > drivers/net/smc9.h | 74 > +++- > 1 files changed, 73 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/smc9.h b/drivers/net/smc9.h > index 8dcbb3e..6c4af64 100644 > --- a/drivers/net/smc9.h > +++ b/drivers/net/smc9.h > @@ -176,7 +176,79 @@ typedef unsigned long intdword; > }; \ > }) > > -#else /* if not CONFIG_PXA250 */ > +#elif defined(CONFIG_LEON) /* if not CONFIG_PXA250 */ > + > +#define SMC_LEON_SWAP16(_x_)\ > +({ word _x = (_x_); ((_x << 8) | (_x >> 8)); }) > + > +#define SMC_LEON_SWAP32(_x_)\ > +({ dword _x = (_x_); \ > + ((_x << 24) |\ > + ((0xFF00UL & _x) << 8) |\ > + ((0x00FFUL & _x) >> 8) |\ > + (_x >> 24)); }) > + > +#define SMC_inl(r) (SMC_LEON_SWAP32((*(volatile dword > *)(SMC_BASE_ADDRESS+((r)<<0) > +#define SMC_inl_nosw(r) ((*(volatile dword > *)(SMC_BASE_ADDRESS+((r)<<0 > +#define SMC_inw(r) (SMC_LEON_SWAP16((*(volatile word > *)(SMC_BASE_ADDRESS+((r)<<0) > +#define SMC_inw_nosw(r) ((*(volatile word > *)(SMC_BASE_ADDRESS+((r)<<0 > +#define SMC_inb(p) ({ \ > + word ___v = SMC_inw((p) & ~1); \ > + if (p & 1) ___v >>= 8; \ > + else ___v &= 0xff; \ > + ___v; }) > +#define SMC_outl(d,r) (*(volatile dword > *)(SMC_BASE_ADDRESS+((r)<<0))=SMC_LEON_SWAP32(d)) > +#define SMC_outl_nosw(d,r) (*(volatile dword > *)(SMC_BASE_ADDRESS+((r)<<0))=(d)) > +#define SMC_outw(d,r) (*(volatile word > *)(SMC_BASE_ADDRESS+((r)<<0))=SMC_LEON_SWAP16(d)) > +#define SMC_outw_nosw(d,r) (*(volatile word > *)(SMC_BASE_ADDRESS+((r)<<0))=(d)) > +#define SMC_outb(d,r) ({ word __d = (byte)(d); \ > + word __w = SMC_inw((r)&~1); \ > + __w &= ((r)&1) ? 0x00FF : 0xFF00; \ > + __w |= ((r)&1) ? __d<<8 : __d; \ > + SMC_outw(__w,(r)&~1); \ > + }) > +#define SMC_outsl(r,b,l) ({ int __i; \ > + dword *__b2; \ > + __b2 = (dword *) b; \ > + for (__i = 0; __i < l; __i++) { \ > + SMC_outl_nosw( *(__b2 + __i), r); \ > + } \ > + }) > +#define SMC_outsw(r,b,l) ({ int __i; \ > + word *__b2; \ > + __b2 = (word *) b; \ > + for (__i = 0; __i < l; __i++) { \ > + SMC_outw_nosw( *(__b2 + __i), r); \ > + } \ > + }) > +#define SMC_insl(r,b,l) ({ int __i ; \ > + dword *__b2; \ > + __b2 = (dword *) b; \ > + for (__i = 0; __i < l; __i++) { \ > + *(__b2 + __i) = SMC_inl_nosw(r); \ > + SMC_inl(0); \ > + }; \ > + }) > + > +#define SMC_insw(r,b,l) ({ int __i ; \ > + word *__b2; \ > + __b2 = (word *) b; \ > + for (__i = 0; __i < l; __i++) { \ > + *(__b2 + __i) = SMC_inw_nosw(r); \ > + SMC_inw(0); \ > + }; \ > + }) > + > +#define SMC_insb(r,b,l) ({ int __i ; \ > + byte *__b2; \ > + __b2 = (byte *) b; \ > + for (__i = 0; __i < l; __i++) { \ > +
Re: [U-Boot-Users] [PATCH] ColdFire: Fix FEC transmit issue for MCF5275
Tsi-Chung Liew wrote: > Signed-off-by: TsiChung Liew <[EMAIL PROTECTED]> > --- > drivers/net/mcffec.c |7 +++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c > index 3b81258..71d1960 100644 > --- a/drivers/net/mcffec.c > +++ b/drivers/net/mcffec.c > @@ -166,6 +166,13 @@ int fec_send(struct eth_device *dev, volatile void > *packet, int length) > /* Activate transmit Buffer Descriptor polling */ > fecp->tdar = 0x0100;/* Descriptor polling active*/ > > + /* FEC fix for MCF5275, FEC unable to initial transmit data packet. > + * A nop will ensure the descriptor polling active completed. > + */ > +#ifdef CONFIG_M5275 > + __asm__ ("nop"); > +#endif > + > #ifdef CFG_UNIFY_CACHE > icache_invalid(); > #endif > Applied to net tree. As others have noted, adding a NOP here seems like a band-aid, but I can't really dispute it. thanks, Ben - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH] Add CONFIG_MII_INIT in cmd_mii.c
Tsi-Chung Liew wrote: > Provide common configuration in do_mii() to execute mii_init() > for all cpu architectures > > Signed-off-by: TsiChung Liew <[EMAIL PROTECTED]> > --- > common/cmd_mii.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/common/cmd_mii.c b/common/cmd_mii.c > index 31ac43d..8ca5af5 100644 > --- a/common/cmd_mii.c > +++ b/common/cmd_mii.c > @@ -306,7 +306,7 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char > *argv[]) > return 1; > } > > -#if defined(CONFIG_8xx) || defined(CONFIG_MCF532x) > +#if defined(CONFIG_8xx) || defined(CONFIG_MCF532x || > defined(CONFIG_MII_INIT)) > mii_init (); > #endif > > Applied to net tree. thanks, Ben - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH] DHCP request fix for Windows Server 2003
Aras Vaichas wrote: > Aras Vaichas wrote: > >> This patch fixes a problem I had with a client who was getting DHCP >> request retries with our network device and their DHCP server. >> >> It turns out that their Windows Server 2003 DHCP server couldn't handle >> fast DHCP transactions and it just "forgets" some of them. I verified >> this with my own Windows Server 2003 install and a network analyser >> (Ethereal/Wireshark). It seems that a small, lean 200MHz embedded system >> is too fast for a Windows Server 2003 system running on a 2GHz+ machine. >> Go figure. >> >> Adding a small (50ms) delay fixes this problem nicely and it only adds a >> small amount of overhead in comparison to the DHCP request timeouts and >> retries. >> >> NOTE: This patch is ported from my old 1.1.3 U-Boot system. I have not >> retested it with 1.3.2 U-Boot against Windows Server 2003. The patch is >> very small and simple, so I don't think should be necessary. >> >> I can retest this functionality if you wish, but it will require me to >> reinstall Windows Server and set everything up again. >> >> >> > Signed-off-by: Aras Vaichas <[EMAIL PROTECTED]> > > Applied to net tree. In the future, please post patch inline. thanks, Ben - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] Fix 8xx build to conditionally compile fdt.o
Change to COBJS-y method so that the fdt.o library can be properly conditionally compiled. Without this change, the mpc8xx boards that don't use CONFIG_OF_LIBFDT still build the fdt.o, causing code bloat and compile warnings. Signed-off-by: Gerald Van Baren <[EMAIL PROTECTED]> --- Hi Wolfgang, Commit a6f5f317cd074bbbfa2aab4fca05904c811c19fb added fdt.o unconditionally. 8xx : Add OF support to Adder875 board port - resubmit I don't have any 8xx boards (especially no Adder boards) so I cannot verify the patch doesn't break the boards, but it does compile cleanly both with and w/o CONFIG_OF_LIBFDT. Best regards, gvb cpu/mpc8xx/Makefile | 24 +++- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/cpu/mpc8xx/Makefile b/cpu/mpc8xx/Makefile index dbdc2e0..a800210 100644 --- a/cpu/mpc8xx/Makefile +++ b/cpu/mpc8xx/Makefile @@ -28,14 +28,28 @@ include $(TOPDIR)/config.mk LIB= $(obj)lib$(CPU).a START = start.o kgdb.o -COBJS = bedbug_860.o commproc.o cpu.o cpu_init.o \ - fec.o fdt.o i2c.o interrupts.o lcd.o scc.o\ - serial.o speed.o spi.o \ - traps.o upatch.o video.o + +COBJS-y+= bedbug_860.o +COBJS-y+= commproc.o +COBJS-y+= cpu.o +COBJS-y+= cpu_init.o +COBJS-y+= fec.o +COBJS-y+= i2c.o +COBJS-y+= lcd.o +COBJS-y+= interrupts.o +COBJS-y+= scc.o +COBJS-y+= serial.o +COBJS-y+= speed.o +COBJS-y+= spi.o +COBJS-y+= traps.o +COBJS-y+= upatch.o +COBJS-y+= video.o +COBJS-$(CONFIG_OF_LIBFDT) += fdt.o + SOBJS = plprcr_write.o SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) START := $(addprefix $(obj),$(START)) all: $(obj).depend $(START) $(LIB) -- 1.5.4.1 - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [GIT PULL][SH] Please pull git://www.denx.de/git/u-boot-sh.git/
Dear Wolfgang, Please pull git://www.denx.de/git/u-boot-sh.git/. The following changes since commit 74d1e66d22dac91388bc538b2fe19f735edc5b82: Bartlomiej Sieka (1): Fix host tool build breakage, take two are available in the git repository at: git://www.denx.de/git/u-boot-sh master Mark Jonas (2): sh: Added support for SH7720 based board MPR2. sh: Removed warning when compiling drivers/serial/serial_sh.c. Nobuhiro Iwamatsu (9): sh: Fix receive FIFO level register of SH4A sh: Add support SuperH SH7751/SH7751R sh: Move SuperH PCI driver from cpu/sh4 to drivers/pci sh: Add support PCI host driver for SH7751/SH7751R sh: Add support SH4 cache control sh: Add support Renesas Solutions R2D plus board sh: Add maintainer of R7780MP to MAINTAINER file sh: Remove disable_ctrlc function from R7780MP sh: Add support stat structure and stat.h Yusuke Goda (3): sh: Add support SH7780 sh: Add support PCI of SuperH and SH7780 sh: Add support Renesas Solutions R7780MP goda.yusuke (1): sh: Add support Renesas Solutions Migo-R board CREDITS |4 + MAINTAINERS | 12 +- MAKEALL |4 + Makefile | 20 ++ board/MigoR/Makefile | 48 board/MigoR/config.mk | 32 +++ board/MigoR/lowlevel_init.S | 269 ++ board/MigoR/migo_r.c | 54 + board/MigoR/u-boot.lds| 106 + board/mpr2/Makefile | 54 + board/mpr2/config.mk | 37 +++ board/mpr2/lowlevel_init.S| 148 board/mpr2/mpr2.c | 162 + board/mpr2/u-boot.lds | 109 + board/r2dplus/Makefile| 43 board/r2dplus/config.mk | 23 ++ board/r2dplus/lowlevel_init.S | 154 + board/r2dplus/r2dplus.c | 76 ++ board/r2dplus/u-boot.lds | 105 + board/r7780mp/Makefile| 44 board/r7780mp/config.mk | 27 +++ board/r7780mp/lowlevel_init.S | 428 +++ board/r7780mp/r7780mp.c | 81 +++ board/r7780mp/r7780mp.h | 54 + board/r7780mp/u-boot.lds | 105 + cpu/sh4/cpu.c |3 +- doc/README.sh | 51 - drivers/pci/Makefile |3 + drivers/pci/pci_sh4.c | 76 ++ drivers/pci/pci_sh7751.c | 199 drivers/pci/pci_sh7780.c | 107 + drivers/serial/serial_sh.c| 70 +++--- include/asm-sh/cache.h| 35 +++ include/asm-sh/cpu_sh4.h | 13 +- include/asm-sh/cpu_sh7720.h | 25 ++- include/asm-sh/cpu_sh7750.h |4 +- include/asm-sh/cpu_sh7780.h | 503 + include/asm-sh/pci.h | 47 include/asm-sh/processor.h|3 +- include/configs/MigoR.h | 151 include/configs/mpr2.h| 92 include/configs/r2dplus.h | 150 include/configs/r7780mp.h | 165 ++ include/linux/stat.h |4 +- lib_sh/board.c| 13 +- 45 files changed, 3863 insertions(+), 50 deletions(-) create mode 100644 board/MigoR/Makefile create mode 100644 board/MigoR/config.mk create mode 100644 board/MigoR/lowlevel_init.S create mode 100644 board/MigoR/migo_r.c create mode 100644 board/MigoR/u-boot.lds create mode 100644 board/mpr2/Makefile create mode 100644 board/mpr2/config.mk create mode 100644 board/mpr2/lowlevel_init.S create mode 100644 board/mpr2/mpr2.c create mode 100644 board/mpr2/u-boot.lds create mode 100644 board/r2dplus/Makefile create mode 100644 board/r2dplus/config.mk create mode 100644 board/r2dplus/lowlevel_init.S create mode 100644 board/r2dplus/r2dplus.c create mode 100644 board/r2dplus/u-boot.lds create mode 100644 board/r7780mp/Makefile create mode 100644 board/r7780mp/config.mk create mode 100644 board/r7780mp/lowlevel_init.S create mode 100644 board/r7780mp/r7780mp.c create mode 100644 board/r7780mp/r7780mp.h create mode 100644 board/r7780mp/u-boot.lds create mode 100644 drivers/pci/pci_sh4.c create mode 100644 drivers/pci/pci_sh7751.c create mode 100644 drivers/pci/pci_sh7780.c create mode 100644 include/asm-sh/cache.h create mode 100644 include/asm-sh/cpu_sh7780.h create mode 100644 include/asm-sh/pci.h create mode 100644 include/configs/MigoR.h create mode 100644 include/configs/mpr2.h create mode 100644 include/configs/r2dplus.h create mode 100644 include/configs/r7780mp.h - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing
Re: [U-Boot-Users] [PATCH v2 1/7] Separate omap24xx specific code from arm1136
On Sat, 29 Mar 2008, Peter Pearse wrote: > > -Original Message- > > From: Guennadi Liakhovetski [mailto:[EMAIL PROTECTED] > > + > > +/* macro to read the 32 bit timer */ > > +#define READ_TIMER (*(volatile ulong *)(CFG_TIMERBASE+TCRR)) > > I'm assuming you have no objection to me patching this to > > #define READ_TIMER (*((volatile ulong *)(CFG_TIMERBASE+TCRR))) > > to get apollon & omap2420h4 to build with arm-linux-gcc (GCC) 4.0.0 (DENX > ELDK 4.0 4.0.0) . Fine with me, although, strange that it is needed... But if it is - no problem. > Then I can submit for merge tomorrow (Sunday) Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. 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: [EMAIL PROTECTED] - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] LZMA support (patch)
Hi All, I will rework the patch in order to include all files from LZMA SDK and some fix. I'll send the patch on Tuesday (I'm in vacation). These are the implemented features: - LZMA SDK 4.57 Decode code (vanilla) - A Buff2Buff wrapper to decode the image (LZMA_Alone format) - Fixes for mkimage (option -C lzma) and do_bootm - small footprint and small impact on the u-boot sources. To use the LZMA algorithm: just #define CONFIG_LZMA in your board config file. Ciao. luigi > On Friday 28 March 2008, Wolfgang Denk wrote: >> But so far there is no code (board support) in U-Boot to >> use this >> feature, right? And it's not used by the Linux kernel either? >> >> And your patch does not even enable support for it in the >> mkimage >> tool, so you cannot even create images that use the feature? > > ive seen patches floating around to add lzma support akin to > gzip/bzip2 in the > uImage format. makes sense to me, and some people are very > interested in > shaving off flash space in return for slightly longer boot > time. linux > kernel is irrelevant here. someone else doing this means i > dont have to at > some point ;). > -mike > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH] ixp: Support for NSLU2
In message <[EMAIL PROTECTED]> you wrote: > > > Subject: [U-Boot-Users] [PATCH] ixp: Support for NSLU2 > > > > This patch adds support for the Linksys NSLU2. ... > I just need a Signed-off-by line. Example: Peter, please avoid duplicating efforts: IXP stuff is supposed to be handled by the custodian for the Intel IXP architecture, Jean- Christophe Plagniol-Villard - and he already signalled that he is working on this. 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: [EMAIL PROTECTED] "I may be synthetic, but I'm not stupid" - the artificial person, from _Aliens_ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH v2 1/7] Separate omap24xx specific code from arm1136
> -Original Message- > From: Guennadi Liakhovetski [mailto:[EMAIL PROTECTED] > Sent: 26 March 2008 19:41 > To: u-boot-users@lists.sourceforge.net > Cc: Wolfgang Denk; Sascha Hauer; Peter Pearse > Subject: [PATCH v2 1/7] Separate omap24xx specific code from arm1136 > > From: Sascha Hauer <[EMAIL PROTECTED]> > > Move omap24xx code to cpu/arm1136/omap24xx, rename > include/asm-arm/arch-arm1136 to cpu/arm1136/omap24xx. > > Signed-off-by: Sascha Hauer <[EMAIL PROTECTED]> > Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]> > ---snip--- > diff --git a/cpu/arm1136/omap24xx/interrupts.c > b/cpu/arm1136/omap24xx/interrupts.c > new file mode 100644 > index 000..a50fa39 > --- /dev/null > +++ b/cpu/arm1136/omap24xx/interrupts.c > @@ -0,0 +1,159 @@ > +/* > + * (C) Copyright 2004 > + * Texas Instruments > + * Richard Woodruff <[EMAIL PROTECTED]> > + * > + * (C) Copyright 2002 > + * Sysgo Real-Time Solutions, GmbH > + * Marius Groeger <[EMAIL PROTECTED]> > + * Alex Zuepke <[EMAIL PROTECTED]> > + * > + * (C) Copyright 2002 > + * Gary Jennejohn, DENX Software Engineering, <[EMAIL PROTECTED]> > + * > + * 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 > +#include > + > +#define TIMER_LOAD_VAL 0 > + > +/* macro to read the 32 bit timer */ > +#define READ_TIMER (*(volatile ulong *)(CFG_TIMERBASE+TCRR)) I'm assuming you have no objection to me patching this to #define READ_TIMER (*((volatile ulong *)(CFG_TIMERBASE+TCRR))) to get apollon & omap2420h4 to build with arm-linux-gcc (GCC) 4.0.0 (DENX ELDK 4.0 4.0.0) . Then I can submit for merge tomorrow (Sunday) Regards Peter - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH] ixp: Support for NSLU2
> -Original Message- > From: Rod Whitby [mailto:[EMAIL PROTECTED] > Sent: 29 March 2008 15:01 > To: Peter Pearse > Subject: Re: [U-Boot-Users] [PATCH] ixp: Support for NSLU2 > > Peter Pearse wrote: > > I just need a Signed-off-by line. Example: > > Sorry about that. I've resent the patch with the signed-off-by added. > > -- Rod > Ta - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] ixp: Support for NSLU2
This patch adds support for the Linksys NSLU2. Signed-off-by: Rod Whitby <[EMAIL PROTECTED]> --- MAINTAINERS |4 + MAKEALL |1 + Makefile |3 + board/nslu2/Makefile | 53 + board/nslu2/config.mk |1 + board/nslu2/load_sernum_ethaddr.c | 67 +++ board/nslu2/nslu2.c | 96 +++ board/nslu2/u-boot.lds| 56 + include/configs/nslu2.h | 230 + lib_arm/board.c |4 +- 10 files changed, 513 insertions(+), 2 deletions(-) create mode 100644 board/nslu2/Makefile create mode 100644 board/nslu2/config.mk create mode 100644 board/nslu2/load_sernum_ethaddr.c create mode 100644 board/nslu2/nslu2.c create mode 100644 board/nslu2/u-boot.lds create mode 100644 include/configs/nslu2.h diff --git a/MAINTAINERS b/MAINTAINERS index dc13580..891ae00 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -564,6 +564,10 @@ Michael Schwingen <[EMAIL PROTECTED]> actux3 xscale actux4 xscale +Rod Whitby <[EMAIL PROTECTED]> + + nslu2 xscale + # # x86 Systems: # # # diff --git a/MAKEALL b/MAKEALL index 0e1c0cb..2088e78 100755 --- a/MAKEALL +++ b/MAKEALL @@ -529,6 +529,7 @@ LIST_ixp=" \ actux4 \ ixdp425 \ ixdpg425\ + nslu2 \ pdnb3 \ scpu\ " diff --git a/Makefile b/Makefile index 2790865..ec3661e 100644 --- a/Makefile +++ b/Makefile @@ -2563,6 +2563,9 @@ ixdp425_config: unconfig ixdpg425_config: unconfig @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 +nslu2_config : unconfig + @$(MKCONFIG) $(@:_config=) arm ixp nslu2 + lubbock_config : unconfig @$(MKCONFIG) $(@:_config=) arm pxa lubbock diff --git a/board/nslu2/Makefile b/board/nslu2/Makefile new file mode 100644 index 000..934bc1a --- /dev/null +++ b/board/nslu2/Makefile @@ -0,0 +1,53 @@ +# +# (C) Copyright 2008 +# Rod Whitby <[EMAIL PROTECTED]> +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, [EMAIL PROTECTED] +# +# 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 := nslu2.o load_sernum_ethaddr.o + +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB):$(obj).depend $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +clean: + rm -f $(SOBJS) $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak .depend + +# + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# diff --git a/board/nslu2/config.mk b/board/nslu2/config.mk new file mode 100644 index 000..6510cc4 --- /dev/null +++ b/board/nslu2/config.mk @@ -0,0 +1 @@ +TEXT_BASE = 0x01d0 diff --git a/board/nslu2/load_sernum_ethaddr.c b/board/nslu2/load_sernum_ethaddr.c new file mode 100644 index 000..5992fa8 --- /dev/null +++ b/board/nslu2/load_sernum_ethaddr.c @@ -0,0 +1,67 @@ +/* + * (C) Copyright 2008 + * Rod Whitby <[EMAIL PROTECTED]> + * + * (C) Copyright 2000, 2001, 2002 + * Wolfgang Denk, DENX Software Engineering, [EMAIL PROTECTED] + * + * 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
Re: [U-Boot-Users] [PATCH] ixp: Support for NSLU2
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Rod Whitby > Sent: 27 March 2008 04:51 > To: u-boot-users@lists.sourceforge.net > Subject: [U-Boot-Users] [PATCH] ixp: Support for NSLU2 > > This patch adds support for the Linksys NSLU2. Rod I just need a Signed-off-by line. Example: Signed-off-by: Rod Whitby <[EMAIL PROTECTED]> Regards Peter - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] ENV in NAND and in EEPROM ?
Hello, I want to use an eeprom AND an NANDFLASH for storing the Enviroment Data. First: The EEPROM should be connected via SPI, so I have to make a c file within the function for spi_write and spi_read to use it with the CFG_CMD_EEPROM. right ? Now my second question: I want to achieve that the uboot first looks in NANDFlash, if the ENV is damaged, look at NANDFLASH_REDUNDAND area [This is what is normally implemented, I think, and it works], now if these both areas of NAND Flash are damaged, the ubbot should have a lokk at the eeprom to load its environment Is it possible ?? What files do I have to adapt, and where´s the point in the code, where the printenv/setenv command is attached to the NANDFLASH/EEPROM Function to load the data ? Thank you very much Manuel - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Release status - open patches, pull requests etc.
> David, I ran into difficulties applying your QE IO patch, due to > mailer mangling again, I'm afraid. It looked like there weren't *too* > many, so I may manage to do it by hand, but if you can find some way > to send me the 85xx-related patches in a non-mangled format, I would > definitely get them in before Monday. Andy, I will resubmit the patches via the Nabble forum (no line wrapping problems there) tomorrow when I'm back at work. Only problem there is that you can't CC recipients in addition to the u-boot list, so please try following these patches on the list (will resubmit all four). David. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] Amazing lovemaking is now possible
Important information on love making When I look back at 6 months of my life, it is well worth it http://www.nooguui.com/ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users