Re: [U-Boot] Fw:How can I use yaffs2 in uboot
Dear jackfriend, In message <39c3dad3.3bd4.12910469457.coremail.jackfri...@163.com> you wrote: > > How can I use yaffs2 in uboot ... > my2440 # ymount /flash > > yaffs: Mounting /flash Looks good? > my2440 # ywrm a 0x30008000 4 > > Error opening file: -1 Maybe you try a "yls" first to check which files are present in your file system. Then test if read accesses are working. I'm not sure if write mode has been tested (or even implemented). Also, it might make sense to enable YAFFS2_DEBUG while testing. 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 "It is better to have tried and failed than to have failed to try, but the result's the same." - Mike Dennison ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] P20xx/P10xx/MPC85xx eSPI direct boot
Has anyone come across (or written) a tool/script/makefile target to pack u-boot into a SPI boot image (i.e. with boot header and config symbols) to boot directly from SPI on the P2020RDB (or P1020 etc.) and/or MPC8536DS? Would it be within the scope of u-boot to have such an option? Can ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Fw:How can I use yaffs2 in uboot
How can I use yaffs2 in uboot I add CONFIG_YAFFS2 in /include/configs/smdk2410.h my2440 # nand write 0x30008000 8 4 NAND write: device 0 offset 0x8, size 0x4 262144 bytes written: OK my2440 # my2440 # ymount /flash yaffs: Mounting /flash my2440 # ywrm a 0x30008000 4 Error opening file: -1 I also need what parameters ? thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v3] add new board pm9g45
Asen Dimov wrote: > Add the new board PM9G45 from Ronetix GmbH. > * AT91SAM9G45 MCU at 400Mhz. > * 128MB DDR2 SDRAM > * 256MB NAND > * 10/100 MBits Ethernet DP83848 > * Serial number chip DS2401 > > The board is made as SODIMM200 module. > For more info www.ronatix.at or i...@ronetix.at. > > Signed-off-by: Asen Dimov Applied to arm/master. Thanks Tom ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Warnings when compiling for AVR32 boards
During "./MAKEALL avr32" at least my toolchain gives the following warnings for every board: Configuring for atstk1002 board... atmel_usart.c:21:2: warning: #warning Please update to use C structur SoC access ! cmd_bdinfo.c: In function 'do_bdinfo': cmd_bdinfo.c:295: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int' textdata bss dec hex filename 915877136 211712 310435 4bca3 ./u-boot atmel_usart.c: that is more or less a TODO warning, it should probably be removed or the structure approach be implemented. And is it wise to directly pointer access hardware, even if the AVR32 hardware allows that without cache problems? cmd_bdinfo.c: this is because printf ("baudrate= %d bps\n", bd->bi_baudrate); but AVR32 bd_t has unsigned long bi_baudrate and there is no explicit case for avr32 architecture, so the code under /* ! PPC, which leaves MIPS */ is compiled and used! The current architecture specific #if chain in cmd_bdinfo.c is as follows: #ifndef CONFIG_ARM /* PowerPC and other */ #ifdef CONFIG_PPC #elif defined(CONFIG_NIOS2) /* Nios-II */ #elif defined(CONFIG_MICROBLAZE) /* ! PPC, which leaves Microblaze */ #elif defined(CONFIG_SPARC)/* SPARC */ #elif defined(CONFIG_M68K) /* M68K */ #elif defined(CONFIG_BLACKFIN) #else /* ! PPC, which leaves MIPS */ >>AVR32 falls into here << #endif /* MIPS */ #else /* ARM */ #endif /* CONFIG_ARM XXX */ Would it not be better to include ARM in the #elif chain as well, and of course add AVR32 in a similiar way: #if defined(CONFIG_PPC) #elif defined(CONFIG_NIOS2) #elif defined(CONFIG_MICROBLAZE) #elif defined(CONFIG_SPARC) #elif defined(CONFIG_M68K) #elif defined(CONFIG_BLACKFIN) #elif defined(CONFIG_MIPS) #elif defined(CONFIG_AVR32) #elif defined(CONFIG_ARM) #else #error "a case for this architecture does not exist" #endif I can rework that and submit a patch, but I cannot MAKEALL all the architectures. However the changes should be straightforward and involve little risk breaking something. Reinhard ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] add support for EMK TOP7000 CPU Module (3rd try)
Add support for EMK TOP7000 CPU Module Specifics: 1) create subdir board/emk/top7000 and files in it 2) create include/configs/top7000.h 3) update board/emk/common/vpd.c 4) add call to misc_init_r() to arch/avr32/lib/board.c 5) create arch/avr32/include/asm/unaligned.h to fix zlib.c compilation problem 6) update Makefile, MAINTAINERS, MAKEALL Signed-off-by: Reinhard Meyer --- MAINTAINERS|6 +- MAKEALL|1 + Makefile |3 + arch/avr32/include/asm/unaligned.h |1 + arch/avr32/lib/board.c |5 + board/emk/common/vpd.c | 71 +++- board/emk/top7000/Makefile | 41 +++ board/emk/top7000/config.mk|3 + board/emk/top7000/top7000.c| 174 + board/emk/top7000/u-boot.lds | 72 include/configs/top7000.h | 217 11 files changed, 587 insertions(+), 7 deletions(-) create mode 100644 arch/avr32/include/asm/unaligned.h create mode 100644 board/emk/top7000/Makefile create mode 100644 board/emk/top7000/config.mk create mode 100644 board/emk/top7000/top7000.c create mode 100644 board/emk/top7000/u-boot.lds create mode 100644 include/configs/top7000.h diff --git a/MAINTAINERS b/MAINTAINERS index 7a13d28..a361be1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -311,7 +311,7 @@ Andrea "llandre" Marson PPChameleonEVB PPC405EP -Reinhard Meyer +Reinhard Meyer TOP860 MPC860T TOP5200 MPC5200 @@ -919,6 +919,10 @@ Julien May HAMMERHEAD AT32AP7000 +Reinhard Meyer + + TOP7000 AT32AP7000 + Haavard Skinnemoen ATSTK1000 AT32AP7xxx diff --git a/MAKEALL b/MAKEALL index 2527352..016f6ef 100755 --- a/MAKEALL +++ b/MAKEALL @@ -874,6 +874,7 @@ LIST_avr32="\ favr-32-ezkit \ hammerhead \ mimc200 \ + top7000 \ " # diff --git a/Makefile b/Makefile index c26e491..e57a4ca 100644 --- a/Makefile +++ b/Makefile @@ -3549,6 +3549,9 @@ hammerhead_config : unconfig mimc200_config : unconfig @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x +top7000_config : unconfig + @$(MKCONFIG) $(@:_config=) avr32 at32ap top7000 emk at32ap700x + # # SH3 (SuperH) # diff --git a/arch/avr32/include/asm/unaligned.h b/arch/avr32/include/asm/unaligned.h new file mode 100644 index 000..6cecbbb --- /dev/null +++ b/arch/avr32/include/asm/unaligned.h @@ -0,0 +1 @@ +#include diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c index 917ed6c..6be5ab0 100644 --- a/arch/avr32/lib/board.c +++ b/arch/avr32/lib/board.c @@ -337,6 +337,11 @@ void board_init_r(gd_t *new_gd, ulong dest_addr) jumptable_init(); console_init_r(); +#if defined(CONFIG_MISC_INIT_R) + /* miscellaneous platform dependent initialisations */ + misc_init_r(); +#endif + s = getenv("loadaddr"); if (s) load_addr = simple_strtoul(s, NULL, 16); diff --git a/board/emk/common/vpd.c b/board/emk/common/vpd.c index c2af219..d2c8af2 100644 --- a/board/emk/common/vpd.c +++ b/board/emk/common/vpd.c @@ -1,6 +1,6 @@ /* - * (C) Copyright 2003 - * Reinhard Meyer, EMK Elektronik GmbH, r.me...@emk-elektronik.de + * (C) Copyright 2003-2010 + * EMK Elektronik GmbH & Co. KG, reinhard.me...@emk-elektronik.de * * See file CREDITS for list of people who contributed to this * project. @@ -22,10 +22,9 @@ */ #include - -/* - * read "factory" part of EEPROM and set some environment variables - */ +#include + +/* read "factory" part of EEPROM and set some environment variables */ void read_factory_r (void) { /* read 'factory' part of EEPROM */ @@ -70,6 +69,10 @@ void read_factory_r (void) /* search for our specific entry */ if (!strncmp ((char *) buf, "[RLA/lan/Ethernet] ", 19)) { setenv ("ethaddr", (char *)(buf + 19)); +#if defined(CONFIG_TOP7000) + } else if (!strncmp ((char *) buf, "[RLA/lan2/Ethernet] ", 20)) { + setenv ("eth1addr", (char *)(buf + 20)); +#endif } else if (!strncmp ((char *) buf, "[BOARD/SERIAL] ", 15)) { setenv ("serial#", (char *)(buf + 15)); } else if (!strncmp ((char *) buf, "[BOARD/TYPE] ", 13)) { @@ -77,3 +80,59 @@ void read_factory_r (void) } } } + +#if defined(CONFIG_TOP7000_VPD) && defin
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU Module (2nd try)
Reinhard Meyer (-VC) schrieb: if anything can go wrong, it will go wrong... a 0x0d (CR) sneaked into the following line: > hammerhead \ > - mimc200 \ > + mimc200 \ > + top7000 \ Please do not try to apply the patch. I will send a new one! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] add support for EMK TOP7000 CPU Module (2nd try)
Add support for EMK TOP7000 CPU Module Specifics: 1) create subdir board/emk/top7000 and files in it 2) create include/configs/top7000.h 3) update board/emk/common/vpd.c 4) add call to misc_init_r() to arch/avr32/lib/board.c 5) create arch/avr32/include/asm/unaligned.h to fix zlib.c compilation problem 6) update Makefile, MAINTAINERS, MAKEALL Signed-off-by: Reinhard Meyer --- MAINTAINERS|6 +- MAKEALL|3 +- Makefile |3 + arch/avr32/include/asm/unaligned.h |1 + arch/avr32/lib/board.c |5 + board/emk/common/vpd.c | 71 +++- board/emk/top7000/Makefile | 41 +++ board/emk/top7000/config.mk|3 + board/emk/top7000/top7000.c| 174 + board/emk/top7000/u-boot.lds | 72 include/configs/top7000.h | 217 11 files changed, 588 insertions(+), 8 deletions(-) create mode 100644 arch/avr32/include/asm/unaligned.h create mode 100644 board/emk/top7000/Makefile create mode 100644 board/emk/top7000/config.mk create mode 100644 board/emk/top7000/top7000.c create mode 100644 board/emk/top7000/u-boot.lds create mode 100644 include/configs/top7000.h diff --git a/MAINTAINERS b/MAINTAINERS index 7a13d28..a361be1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -311,7 +311,7 @@ Andrea "llandre" Marson PPChameleonEVB PPC405EP -Reinhard Meyer +Reinhard Meyer TOP860 MPC860T TOP5200 MPC5200 @@ -919,6 +919,10 @@ Julien May HAMMERHEAD AT32AP7000 +Reinhard Meyer + + TOP7000 AT32AP7000 + Haavard Skinnemoen ATSTK1000 AT32AP7xxx diff --git a/MAKEALL b/MAKEALL index 2527352..3a80041 100755 --- a/MAKEALL +++ b/MAKEALL @@ -873,7 +873,8 @@ LIST_avr32="\ atngw100\ favr-32-ezkit \ hammerhead \ - mimc200 \ + mimc200 \ + top7000 \ " # diff --git a/Makefile b/Makefile index c26e491..e57a4ca 100644 --- a/Makefile +++ b/Makefile @@ -3549,6 +3549,9 @@ hammerhead_config : unconfig mimc200_config : unconfig @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x +top7000_config : unconfig + @$(MKCONFIG) $(@:_config=) avr32 at32ap top7000 emk at32ap700x + # # SH3 (SuperH) # diff --git a/arch/avr32/include/asm/unaligned.h b/arch/avr32/include/asm/unaligned.h new file mode 100644 index 000..6cecbbb --- /dev/null +++ b/arch/avr32/include/asm/unaligned.h @@ -0,0 +1 @@ +#include diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c index 917ed6c..6be5ab0 100644 --- a/arch/avr32/lib/board.c +++ b/arch/avr32/lib/board.c @@ -337,6 +337,11 @@ void board_init_r(gd_t *new_gd, ulong dest_addr) jumptable_init(); console_init_r(); +#if defined(CONFIG_MISC_INIT_R) + /* miscellaneous platform dependent initialisations */ + misc_init_r(); +#endif + s = getenv("loadaddr"); if (s) load_addr = simple_strtoul(s, NULL, 16); diff --git a/board/emk/common/vpd.c b/board/emk/common/vpd.c index c2af219..d2c8af2 100644 --- a/board/emk/common/vpd.c +++ b/board/emk/common/vpd.c @@ -1,6 +1,6 @@ /* - * (C) Copyright 2003 - * Reinhard Meyer, EMK Elektronik GmbH, r.me...@emk-elektronik.de + * (C) Copyright 2003-2010 + * EMK Elektronik GmbH & Co. KG, reinhard.me...@emk-elektronik.de * * See file CREDITS for list of people who contributed to this * project. @@ -22,10 +22,9 @@ */ #include - -/* - * read "factory" part of EEPROM and set some environment variables - */ +#include + +/* read "factory" part of EEPROM and set some environment variables */ void read_factory_r (void) { /* read 'factory' part of EEPROM */ @@ -70,6 +69,10 @@ void read_factory_r (void) /* search for our specific entry */ if (!strncmp ((char *) buf, "[RLA/lan/Ethernet] ", 19)) { setenv ("ethaddr", (char *)(buf + 19)); +#if defined(CONFIG_TOP7000) + } else if (!strncmp ((char *) buf, "[RLA/lan2/Ethernet] ", 20)) { + setenv ("eth1addr", (char *)(buf + 20)); +#endif } else if (!strncmp ((char *) buf, "[BOARD/SERIAL] ", 15)) { setenv ("serial#", (char *)(buf + 15)); } else if (!strncmp ((char *) buf, "[BOARD/TYPE] ", 13)) { @@ -77,3 +80,59 @@ void read_factory_r (void) }
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU module
Hello Reinhard, On Sun, Jun 6, 2010 at 4:52 AM, Reinhard Meyer (-VC) < reinhard.me...@emk-elektronik.de> wrote: > Wolfgang Denk schrieb: > > Dear "Reinhard Meyer (-VC)", > > > > In message <4c0b85d8.4070...@emk-elektronik.de> you wrote: > >> is this patch going to be accepted, or is someone insisting that only > >> my port shall return the number of controllers initialized? > > > > I don't understand what you mean by "only my port". Ben's comment that > > board_eth_init() is supposed to retrurn the number of successfully > > initialized controllers has been standard policy for a pretty long > > time, and many boards do so. > > > > Eventually the boards you compared against are older ones, and have > > not been maintained well, so they misbehave in this regard? > > > > Best regards, > > > > Wolfgang Denk > > > > Hello Wolfgang, > > Is that documented somewhere? I see that the calling function in net.c > does NOT care about any positive interger result. Will it care sometime > in the future? :) > > Yes, it's documented (doc/README.drivers.eth). Maybe it will get used in the future. That's why I politely asked to to make a simple change. It wasn't an arbitrary request, and most boards (maybe not most MACB-using ones) do it properly. regards, Ben ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU module
Dear "Reinhard Meyer (-VC)", In message <4c0b8be7.7090...@emk-elektronik.de> you wrote: > > Is that documented somewhere? I see that the calling function in net.c Probably only in the mailing list archives... > does NOT care about any positive interger result. Will it care sometime > in the future? :) > > The second problem is that I cannot seem to undo my previous commit in my > tree, so any changes I do to my source would come out as a second patch. > Would that be accepted? No. Why cannot you "git rebase -i" your tree (resp. your development branch) and squash the commits in question? > Or do you know what must be done that GIT will issue a new patch with the > current and the new changes in one patch? Squash the commits into one? > what to do to return to , do new edits and generate a new, > single patch? man git-rebase 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 He is truly wise who gains wisdom from another's mishap. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU module
Reinhard Meyer (-VC) schrieb: > Wolfgang Denk schrieb: >> Dear "Reinhard Meyer (-VC)", >> The second problem is that I cannot seem to undo my previous commit in my > tree, so any changes I do to my source would come out as a second patch. > Would that be accepted? > > Or do you know what must be done that GIT will issue a new patch with the > current and the new changes in one patch? > > I generate the patches by > : > git commit -m > git format-patch origin > > what to do to return to , do new edits and generate a new, > single patch? > A "git reset --soft HEAD^" followed by "git add" of all newly changed files does the trick... > Best Regards, Reinhard > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU module
Wolfgang Denk schrieb: > Dear "Reinhard Meyer (-VC)", > > In message <4c0b85d8.4070...@emk-elektronik.de> you wrote: >> is this patch going to be accepted, or is someone insisting that only >> my port shall return the number of controllers initialized? > > I don't understand what you mean by "only my port". Ben's comment that > board_eth_init() is supposed to retrurn the number of successfully > initialized controllers has been standard policy for a pretty long > time, and many boards do so. > > Eventually the boards you compared against are older ones, and have > not been maintained well, so they misbehave in this regard? > > Best regards, > > Wolfgang Denk > Hello Wolfgang, Is that documented somewhere? I see that the calling function in net.c does NOT care about any positive interger result. Will it care sometime in the future? :) The second problem is that I cannot seem to undo my previous commit in my tree, so any changes I do to my source would come out as a second patch. Would that be accepted? Or do you know what must be done that GIT will issue a new patch with the current and the new changes in one patch? I generate the patches by : git commit -m git format-patch origin what to do to return to , do new edits and generate a new, single patch? Best Regards, Reinhard ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU module
Wolfgang Denk schrieb: > Dear "Reinhard Meyer (-VC)", > > In message <4c0b85d8.4070...@emk-elektronik.de> you wrote: >> is this patch going to be accepted, or is someone insisting that only >> my port shall return the number of controllers initialized? > > I don't understand what you mean by "only my port". Ben's comment that > board_eth_init() is supposed to retrurn the number of successfully > initialized controllers has been standard policy for a pretty long > time, and many boards do so. > > Eventually the boards you compared against are older ones, and have > not been maintained well, so they misbehave in this regard? > > Best regards, > > Wolfgang Denk > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Please pull u-boot-samsung/master
Minkyu Kang wrote: > Dear Tom, > > Please pull u-boot-samsung/master. > Thanks. > > The following changes since commit 922d27b596c179c5a7d68abe45ede5adb1b6589c: > Minkyu Kang (1): > Merge branch 'master' of git://git.denx.de/u-boot-arm > > are available in the git repository at: > > git://git.denx.de/u-boot-samsung master > > Minkyu Kang (2): > s5pc1xx: gpio: bug fix at gpio_set_pull function > s5pc1xx: Add support for Samsung Goni board > > MAINTAINERS|9 +- > MAKEALL|1 + > Makefile |3 + > board/samsung/goni/Makefile| 54 > board/samsung/goni/config.mk | 16 + diff --git a/board/samsung/goni/config.mk b/board/samsung/goni/config.mk new file mode 100644 index 000..2da9ca1 --- /dev/null +++ b/board/samsung/goni/config.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2008 # Samsung Elecgtronics +# Kyungmin Park +# + This needs the usual GPL 2 (or later) copyright. Tom > board/samsung/goni/goni.c | 55 > board/samsung/goni/lowlevel_init.S | 585 > > board/samsung/goni/mem_setup.S | 265 > board/samsung/goni/onenand.c | 36 +++ > drivers/gpio/s5p_gpio.c|2 +- > include/configs/s5p_goni.h | 217 + > 11 files changed, 1238 insertions(+), 5 deletions(-) > create mode 100644 board/samsung/goni/Makefile > create mode 100644 board/samsung/goni/config.mk > create mode 100644 board/samsung/goni/goni.c > create mode 100644 board/samsung/goni/lowlevel_init.S > create mode 100644 board/samsung/goni/mem_setup.S > create mode 100644 board/samsung/goni/onenand.c > create mode 100644 include/configs/s5p_goni.h > > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU module
Dear "Reinhard Meyer (-VC)", In message <4c0b85d8.4070...@emk-elektronik.de> you wrote: > > is this patch going to be accepted, or is someone insisting that only > my port shall return the number of controllers initialized? I don't understand what you mean by "only my port". Ben's comment that board_eth_init() is supposed to retrurn the number of successfully initialized controllers has been standard policy for a pretty long time, and many boards do so. Eventually the boards you compared against are older ones, and have not been maintained well, so they misbehave in this regard? 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 Testing can show the presense of bugs, but not their absence. -- Edsger Dijkstra ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] add support for EMK TOP7000 CPU module
Hello, is this patch going to be accepted, or is someone insisting that only my port shall return the number of controllers initialized? Reinhard Meyer schrieb: > Ben Warren schrieb: >> Hello Reinhard, >> >> On Sat, Jun 5, 2010 at 3:41 AM, Reinhard Meyer (-VC) < >> reinhard.me...@emk-elektronik.de> wrote: >> >>> Add support for EMK TOP7000 CPU module >>> >>> Specifics: >>> >>> 1) create subdir board/emk/top7000 and files in it >>> 2) create include/configs/top7000.h >>> 3) update board/emk/common/vpd.c >>> 4) add call to misc_init_r() to arch/avr32/lib/board.c >>> 5) create arch/avr32/include/asm/unaligned.h to >>> fix zlib.c compilation problem >>> 6) update Makefile, MAINTAINERS, MAKEALL >>> >>> Signed-off-by: Reinhard Meyer >>> >>> --- >>> MAINTAINERS|6 +- >>> MAKEALL|3 +- >>> Makefile |3 + >>> arch/avr32/include/asm/unaligned.h |1 + >>> arch/avr32/lib/board.c |5 + >>> board/emk/common/vpd.c | 56 +- >>> board/emk/top7000/Makefile | 41 +++ >>> board/emk/top7000/config.mk|3 + >>> board/emk/top7000/top7000.c| 169 >>> board/emk/top7000/u-boot.lds | 72 >>> include/configs/top7000.h | 216 >>> >>> 11 files changed, 570 insertions(+), 5 deletions(-) >>> create mode 100644 arch/avr32/include/asm/unaligned.h >>> create mode 100644 board/emk/top7000/Makefile >>> create mode 100644 board/emk/top7000/config.mk >>> create mode 100644 board/emk/top7000/top7000.c >>> create mode 100644 board/emk/top7000/u-boot.lds >>> create mode 100644 include/configs/top7000.h >>> >>> diff --git a/MAINTAINERS b/MAINTAINERS >>> index 7a13d28..a361be1 100644 >>> --- a/MAINTAINERS >>> +++ b/MAINTAINERS >>> @@ -311,7 +311,7 @@ Andrea "llandre" Marson >>> >>>PPChameleonEVB PPC405EP >>> >>> -Reinhard Meyer >>> +Reinhard Meyer >>> >>>TOP860 MPC860T >>>TOP5200 MPC5200 >>> @@ -919,6 +919,10 @@ Julien May >>> >>>HAMMERHEAD AT32AP7000 >>> >>> +Reinhard Meyer >>> + >>> + TOP7000 AT32AP7000 >>> + >>> Haavard Skinnemoen >>> >>>ATSTK1000 AT32AP7xxx >>> diff --git a/MAKEALL b/MAKEALL >>> index 2527352..3a80041 100755 >>> --- a/MAKEALL >>> +++ b/MAKEALL >>> @@ -873,7 +873,8 @@ LIST_avr32="\ >>>atngw100\ >>>favr-32-ezkit \ >>>hammerhead \ >>> - mimc200 \ >>> + mimc200 \ >>> + top7000 \ >>> " >>> >>> # >>> diff --git a/Makefile b/Makefile >>> index c26e491..e57a4ca 100644 >>> --- a/Makefile >>> +++ b/Makefile >>> @@ -3549,6 +3549,9 @@ hammerhead_config : unconfig >>> mimc200_config : unconfig >>>@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x >>> >>> +top7000_config : unconfig >>> + @$(MKCONFIG) $(@:_config=) avr32 at32ap top7000 emk at32ap700x >>> + >>> # >>> # SH3 (SuperH) >>> # >>> diff --git a/arch/avr32/include/asm/unaligned.h >>> b/arch/avr32/include/asm/unaligned.h >>> new file mode 100644 >>> index 000..6cecbbb >>> --- /dev/null >>> +++ b/arch/avr32/include/asm/unaligned.h >>> @@ -0,0 +1 @@ >>> +#include >>> diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c >>> index 917ed6c..6be5ab0 >>> --- a/arch/avr32/lib/board.c >>> +++ b/arch/avr32/lib/board.c >>> @@ -337,6 +337,11 @@ void board_init_r(gd_t *new_gd, ulong dest_addr) >>>jumptable_init(); >>>console_init_r(); >>> >>> +#if defined(CONFIG_MISC_INIT_R) >>> + /* miscellaneous platform dependent initialisations */ >>> + misc_init_r(); >>> +#endif >>> + >>>s = getenv("loadaddr"); >>>if (s) >>>load_addr = simple_strtoul(s, NULL, 16); >>> diff --git a/board/emk/common/vpd.c b/board/emk/common/vpd.c >>> index c2af219..a6c456b >>> --- a/board/emk/common/vpd.c >>> +++ b/board/emk/common/vpd.c >>> @@ -1,6 +1,6 @@ >>> /* >>> - * (C) Copyright 2003 >>> - * Reinhard Meyer, EMK Elektronik GmbH, r.me...@emk-elektronik.de >>> + * (C) Copyright 2003-2010 >>> + * EMK Elektronik GmbH & Co. KG, reinhard.me...@emk-elektronik.de >>> * >>> * See file CREDITS for list of people who contributed to this >>> * project. >>> @@ -22,7 +22,8 @@ >>> */ >>> >>> #include >>> - >>> +#include >>> + >>> >>> >>> /* >>> * read "factory" part of EEPROM and set some environment variables >>> >>> >>> */ >>> @@ -70,6 +71,10 @@ void read_factory_r (void)
Re: [U-Boot] [PATCH v4 09/19] SPEAr : macb driver support added for spear310 and spear320
On Sat, Jun 5, 2010 at 8:13 PM, Ben Warren wrote: > On Thu, Jun 3, 2010 at 4:50 AM, Vipin KUMAR wrote: > >> From: Vipin KUMAR >> >> SPEAr310 and SPEAr320 SoCs have an extra ethernet controller. The >> driver for this device is already supported by u-boot, so configuring >> board configuration file and defining base addresses etc to make use >> of the common driver >> >> Signed-off-by: Vipin Kumar >> > Acked-by: Ben Warren > Thanks Ben >> --- >> arch/arm/include/asm/arch-spear/clk.h | 27 >> +++ >> arch/arm/include/asm/arch-spear/hardware.h | 7 +++ >> board/spear/spear310/spear310.c | 17 + >> board/spear/spear320/spear320.c | 5 + >> include/configs/spear3xx.h | 13 + >> 5 files changed, 69 insertions(+), 0 deletions(-) >> create mode 100644 arch/arm/include/asm/arch-spear/clk.h >> >> diff --git a/arch/arm/include/asm/arch-spear/clk.h >> b/arch/arm/include/asm/arch-spear/clk.h >> new file mode 100644 >> index 000..a45ec18 >> --- /dev/null >> +++ b/arch/arm/include/asm/arch-spear/clk.h >> @@ -0,0 +1,27 @@ >> +/* >> + * (C) Copyright 2010 >> + * Vipin Kumar, STMicroelectronics, >> + * >> + * 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 >> + */ >> + >> +static inline unsigned long get_macb_pclk_rate(unsigned int dev_id) >> +{ >> + return 8300; >> +} >> diff --git a/arch/arm/include/asm/arch-spear/hardware.h >> b/arch/arm/include/asm/arch-spear/hardware.h >> index 39d64b6..9f1e154 100644 >> --- a/arch/arm/include/asm/arch-spear/hardware.h >> +++ b/arch/arm/include/asm/arch-spear/hardware.h >> @@ -56,6 +56,11 @@ >> #define CONFIG_SPEAR_EMIBASE (0x4F00) >> #define CONFIG_SPEAR_RASBASE (0xB400) >> >> +#define CONFIG_SYS_MACB0_BASE (0xB000) >> +#define CONFIG_SYS_MACB1_BASE (0xB080) >> +#define CONFIG_SYS_MACB2_BASE (0xB100) >> +#define CONFIG_SYS_MACB3_BASE (0xB180) >> + >> #elif defined(CONFIG_SPEAR320) >> #define CONFIG_SYS_I2C_BASE (0xD018) >> #define CONFIG_SPEAR_FSMCBASE (0x4C00) >> @@ -63,5 +68,7 @@ >> #define CONFIG_SPEAR_EMIBASE (0x4000) >> #define CONFIG_SPEAR_RASBASE (0xB300) >> >> +#define CONFIG_SYS_MACB0_BASE (0xAA00) >> + >> #endif >> #endif /* _ASM_ARCH_HARDWARE_H */ >> diff --git a/board/spear/spear310/spear310.c >> b/board/spear/spear310/spear310.c >> index 666ed48..193fa0c 100644 >> --- a/board/spear/spear310/spear310.c >> +++ b/board/spear/spear310/spear310.c >> @@ -66,5 +66,22 @@ int board_eth_init(bd_t *bis) >> if (designware_initialize(0, CONFIG_SPEAR_ETHBASE, CONFIG_DW0_PHY) >> >= 0) >> ret++; >> #endif >> +#if defined(CONFIG_MACB) >> + if (macb_eth_initialize(0, (void *)CONFIG_SYS_MACB0_BASE, >> + CONFIG_MACB0_PHY) >= 0) >> + ret++; >> + >> + if (macb_eth_initialize(1, (void *)CONFIG_SYS_MACB1_BASE, >> + CONFIG_MACB1_PHY) >= 0) >> + ret++; >> + >> + if (macb_eth_initialize(2, (void *)CONFIG_SYS_MACB2_BASE, >> + CONFIG_MACB2_PHY) >= 0) >> + ret++; >> + >> + if (macb_eth_initialize(3, (void *)CONFIG_SYS_MACB3_BASE, >> + CONFIG_MACB3_PHY) >= 0) >> + ret++; >> +#endif >> return ret; >> } >> diff --git a/board/spear/spear320/spear320.c >> b/board/spear/spear320/spear320.c >> index 89b074a..0d9eed4 100644 >> --- a/board/spear/spear320/spear320.c >> +++ b/board/spear/spear320/spear320.c >> @@ -66,5 +66,10 @@ int board_eth_init(bd_t *bis) >> if (designware_initialize(0, CONFIG_SPEAR_ETHBASE, CONFIG_DW0_PHY) >> >= 0) >> ret++; >> #endif >> +#if defined(CONFIG_MACB) >> + if (macb_eth_initialize(0, (void *)CONFIG_SYS_MACB0_BASE, >> + CONFIG_MACB0_PHY) >= 0) >> + ret++; >> +#endif >> return ret; >> } >> diff --git a/include/