AT91 fies and new soc & board
cover AT91 fies and new soc & board
Hi,
the following patches add the support of the at91sam9261 with the ek ref board and the pm9261 from Ronetix
this also prepare the re-adding of the RM9200 in the mach-at91
mmccpu: fix typo in AT91_MAIN_CLOCK (2010-08-18 23:21:16 +0800)
are available in the git repository at:
git://git.jcrosoft.org/barebox.git at91
Jean-Christophe PLAGNIOL-VILLARD (6):
dm9000: allow to specify that no srom is present
at91: Introduction of at91sam9261 SOC.
at91: add Ronetix pm9261 board support
at91: rename clocksource.c -> at91sam926x_time.c
macb: introduce HAS_MACB configuration
at91: remove non used and obsolete at91rm9200 code
arch/arm/Kconfig | 5 -
arch/arm/Makefile | 3 +-
arch/arm/boards/at91sam9261ek/Makefile | 1 +
arch/arm/boards/at91sam9261ek/config.h | 110 +++
arch/arm/boards/at91sam9261ek/env/bin/_update | 36 +
arch/arm/boards/at91sam9261ek/env/bin/boot | 47 ++
arch/arm/boards/at91sam9261ek/env/bin/hush_hack | 1 +
arch/arm/boards/at91sam9261ek/env/bin/init | 38 +
.../at91sam9261ek/env/bin/update_barebox_xmodem | 26 +
.../arm/boards/at91sam9261ek/env/bin/update_kernel | 15 +
arch/arm/boards/at91sam9261ek/env/bin/update_root | 16 +
arch/arm/boards/at91sam9261ek/env/config | 28 +
arch/arm/boards/at91sam9261ek/init.c | 170 +++++
arch/arm/boards/pm9261/Makefile | 1 +
arch/arm/boards/pm9261/config.h | 110 +++
arch/arm/boards/pm9261/env/bin/_update | 36 +
arch/arm/boards/pm9261/env/bin/boot | 47 ++
arch/arm/boards/pm9261/env/bin/hush_hack | 1 +
arch/arm/boards/pm9261/env/bin/init | 38 +
.../boards/pm9261/env/bin/update_barebox_xmodem | 26 +
arch/arm/boards/pm9261/env/bin/update_kernel | 15 +
arch/arm/boards/pm9261/env/bin/update_root | 16 +
arch/arm/boards/pm9261/env/config | 28 +
arch/arm/boards/pm9261/init.c | 169 +++++
arch/arm/boards/scb9328/scb9328.c | 1 +
arch/arm/configs/at91sam9261ek_defconfig | 242 +++++++
arch/arm/configs/pm9261_defconfig | 250 +++++++
arch/arm/mach-at91/Kconfig | 33 +
arch/arm/mach-at91/Makefile | 7 +-
arch/arm/mach-at91/at91sam9261.c | 230 ++++++
arch/arm/mach-at91/at91sam9261_devices.c | 169 +++++
.../{clocksource.c => at91sam926x_time.c} | 0
arch/arm/mach-at91/include/mach/at91sam9261.h | 109 +++
.../mach-at91/include/mach/at91sam9261_matrix.h | 64 ++
arch/arm/mach-at91rm9200/Kconfig | 16 -
arch/arm/mach-at91rm9200/include/mach/AT91RM9200.h | 762 --------------------
arch/arm/mach-at91rm9200/include/mach/hardware.h | 78 --
drivers/net/Kconfig | 5 +-
drivers/net/dm9000.c | 6 +-
include/dm9000.h | 1 +
40 files changed, 2088 insertions(+), 868 deletions(-)
create mode 100644 arch/arm/boards/at91sam9261ek/Makefile
create mode 100644 arch/arm/boards/at91sam9261ek/config.h
create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/_update
create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/boot
create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/hush_hack
create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/init
create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/update_barebox_xmodem
create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/update_kernel
create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/update_root
create mode 100644 arch/arm/boards/at91sam9261ek/env/config
create mode 100644 arch/arm/boards/at91sam9261ek/init.c
create mode 100644 arch/arm/boards/pm9261/Makefile
create mode 100644 arch/arm/boards/pm9261/config.h
create mode 100644 arch/arm/boards/pm9261/env/bin/_update
create mode 100644 arch/arm/boards/pm9261/env/bin/boot
create mode 100644 arch/arm/boards/pm9261/env/bin/hush_hack
create mode 100644 arch/arm/boards/pm9261/env/bin/init
create mode 100644 arch/arm/boards/pm9261/env/bin/update_barebox_xmodem
create mode 100644 arch/arm/boards/pm9261/env/bin/update_kernel
create mode 100644 arch/arm/boards/pm9261/env/bin/update_root
create mode 100644 arch/arm/boards/pm9261/env/config
create mode 100644 arch/arm/boards/pm9261/init.c
create mode 100644 arch/arm/configs/at91sam9261ek_defconfig
create mode 100644 arch/arm/configs/pm9261_defconfig
create mode 100644 arch/arm/mach-at91/at91sam9261.c
create mode 100644 arch/arm/mach-at91/at91sam9261_devices.c
rename arch/arm/mach-at91/{clocksource.c => at91sam926x_time.c} (100%)
create mode 100644 arch/arm/mach-at91/include/mach/at91sam9261.h
create mode 100644 arch/arm/mach-at91/include/mach/at91sam9261_matrix.h
delete mode 100644 arch/arm/mach-at91rm9200/Kconfig
delete mode 100644 arch/arm/mach-at91rm9200/include/mach/AT91RM9200.h
delete mode 100644 arch/arm/mach-at91rm9200/include/mach/hardware.hBest Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/6 dm9000: allow to specify that no srom is present
--- arch/arm/boards/scb9328/scb9328.c | 1 + drivers/net/dm9000.c | 6 ++++-- include/dm9000.h | 1 + 3 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/boards/scb9328/scb9328.c +1 -0
@@ -55,6 +55,7 @@ static struct dm9000_platform_data dm9000_data = { .iobase = 0x16000000, .iodata = 0x16000004, .buswidth =DM9000_WIDTH_16 , + .srom = 1; };static struct device_d dm9000_dev = {
drivers/net/dm9000.c +4 -2
@@ -498,8 +498,10 @@ static int dm9000_probe(struct device_d *dev) edev->send = dm9000_eth_send; edev->recv = dm9000_eth_rx; edev->halt = dm9000_eth_halt; - edev->get_ethaddr = dm9000_get_ethaddr; - edev->set_ethaddr = dm9000_set_ethaddr; +if (pdata->srom) { + edev->get_ethaddr = dm9000_get_ethaddr; + edev->set_ethaddr = dm9000_set_ethaddr; + }/* RESET device */ dm9000_reset (priv);
include/dm9000.h +1 -0
@@ -10,6 +10,7 @@ struct dm9000_platform_data {unsigned long iobase;unsigned long iodata;int buswidth; + int srom; };#endif /* __DM9000_H__ */
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 1/6] dm9000: allow to specify that no srom is present
Hi Jean-Christophe,
Quoted 24 lines · Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>--- arch/arm/boards/scb9328/scb9328.c | 1 + drivers/net/dm9000.c | 6 ++++-- include/dm9000.h | 1 + 3 files changed, 6 insertions(+), 2 deletions(-)arch/arm/boards/scb9328/scb9328.c +1
-0@@ -55,6 +55,7 @@ static struct dm9000_platform_data dm9000_data = { .iobase = 0x16000000, .iodata = 0x16000004, .buswidth =DM9000_WIDTH_16 , + .srom = 1; };static struct device_d dm9000_dev = {drivers/net/dm9000.c +0
-0
drivers/net/dm9000.c static int dm9000_probe(struct device_d *dev) · line 504
Quoted 9 lines
drivers/net/dm9000.c +4
-2@@ -498,8 +498,10 @@ static int dm9000_probe(struct device_d *dev) edev->send = dm9000_eth_send; edev->recv = dm9000_eth_rx; edev->halt = dm9000_eth_halt; - edev->get_ethaddr = dm9000_get_ethaddr; - edev->set_ethaddr = dm9000_set_ethaddr; +if (pdata->srom) { + edev->get_ethaddr = dm9000_get_ethaddr; + edev->set_ethaddr = dm9000_set_ethaddr; + }
edev->set_ethaddr is not an optional call. Without it the driver won't work.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 1/6 dm9000: allow to specify that no srom is present
In reply to Jean-Christophe PLAGNIOL-VILLARD---
v2:
keep set_ethaddr
Best Regards,
J.
arch/arm/boards/scb9328/scb9328.c | 1 + drivers/net/dm9000.c | 3 ++- include/dm9000.h | 1 + 3 files changed, 4 insertions(+), 1 deletions(-)
arch/arm/boards/scb9328/scb9328.c +1 -0
@@ -55,6 +55,7 @@ static struct dm9000_platform_data dm9000_data = { .iobase = 0x16000000, .iodata = 0x16000004, .buswidth =DM9000_WIDTH_16 , + .srom = 1; };static struct device_d dm9000_dev = {
drivers/net/dm9000.c +2 -1
@@ -498,8 +498,9 @@ static int dm9000_probe(struct device_d *dev) edev->send = dm9000_eth_send; edev->recv = dm9000_eth_rx; edev->halt = dm9000_eth_halt; - edev->get_ethaddr = dm9000_get_ethaddr; edev->set_ethaddr = dm9000_set_ethaddr; +if (pdata->srom) + edev->get_ethaddr = dm9000_get_ethaddr;/* RESET device */ dm9000_reset (priv);
include/dm9000.h +1 -0
@@ -10,6 +10,7 @@ struct dm9000_platform_data {unsigned long iobase;unsigned long iodata;int buswidth; + int srom; };#endif /* __DM9000_H__ */
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 1/6 v2] dm9000: allow to specify that no srom is present
Quoted 5 lines · Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>---
v2:keep
set_ethaddr
git://git.jcrosoft.org branch at91 updated
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/6 at91: Introduction of at91sam9261 SOC.
In reply to Jean-Christophe PLAGNIOL-VILLARDAT91sam9261 series is an ARM 926ej-s SOC family clocked at 190/100MHz.
The first board that embeds at91sam9261 chip is the AT91SAM9261-EK.
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820
--- arch/arm/Makefile | 1 + arch/arm/boards/at91sam9261ek/Makefile | 1 + arch/arm/boards/at91sam9261ek/config.h | 110 +++++++++ arch/arm/boards/at91sam9261ek/env/bin/_update | 36 +++ arch/arm/boards/at91sam9261ek/env/bin/boot | 47 ++++ arch/arm/boards/at91sam9261ek/env/bin/hush_hack | 1 + arch/arm/boards/at91sam9261ek/env/bin/init | 38 +++ .../at91sam9261ek/env/bin/update_barebox_xmodem | 26 ++ .../arm/boards/at91sam9261ek/env/bin/update_kernel | 15 ++ arch/arm/boards/at91sam9261ek/env/bin/update_root | 16 ++ arch/arm/boards/at91sam9261ek/env/config | 28 +++ arch/arm/boards/at91sam9261ek/init.c | 170 ++++++++++++++ arch/arm/configs/at91sam9261ek_defconfig | 242 ++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 23 ++ arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91sam9261.c | 230 +++++++++++++++++++ arch/arm/mach-at91/at91sam9261_devices.c | 169 ++++++++++++++ arch/arm/mach-at91/include/mach/at91sam9261.h | 109 +++++++++ .../mach-at91/include/mach/at91sam9261_matrix.h | 64 +++++ 19 files changed, 1327 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boards/at91sam9261ek/Makefile create mode 100644 arch/arm/boards/at91sam9261ek/config.h create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/_update create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/boot create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/hush_hack create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/init create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/update_barebox_xmodem create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/update_kernel create mode 100644 arch/arm/boards/at91sam9261ek/env/bin/update_root create mode 100644 arch/arm/boards/at91sam9261ek/env/config create mode 100644 arch/arm/boards/at91sam9261ek/init.c create mode 100644 arch/arm/configs/at91sam9261ek_defconfig create mode 100644 arch/arm/mach-at91/at91sam9261.c create mode 100644 arch/arm/mach-at91/at91sam9261_devices.c create mode 100644 arch/arm/mach-at91/include/mach/at91sam9261.h create mode 100644 arch/arm/mach-at91/include/mach/at91sam9261_matrix.h
arch/arm/Makefile +1 -0
@@ -52,6 +52,7 @@ machine-$(CONFIG_ARCH_S3C24xx) := s3c24xx board-$(CONFIG_MACH_A9M2410) := a9m2410 board-$(CONFIG_MACH_A9M2440) := a9m2440 board-$(CONFIG_MACH_AT91SAM9260EK) := at91sam9260ek +board-$(CONFIG_MACH_AT91SAM9261EK) := at91sam9261ek board-$(CONFIG_MACH_AT91SAM9263EK) := at91sam9263ek board-$(CONFIG_MACH_EDB9301) := edb93xx board-$(CONFIG_MACH_EDB9302) := edb93xx
arch/arm/boards/at91sam9261ek/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-y += init.o
arch/arm/boards/at91sam9261ek/config.h new file +110 -0
110 lines not on this page · raw message
arch/arm/boards/at91sam9261ek/env/bin/_update new file +36 -0
@@ -0,0 +1,36 @@ +#!/bin/sh + +if [ -z "$part" -o -z "$image" ]; then + echo "define \$part and \$image" + exit 1 +fi + +if [ ! -e "$part" ]; then + echo "Partition $part does not exist" + exit 1 +fi + +if [ $# = 1 ]; then + image=$1 +fi + +if [ x$ip = xdhcp ]; then + dhcp +fi + +ping $eth0.serverip +if [ $? -ne 0 ] ; then + echo "update aborted" + exit 1 +fi + +unprotect $part + +echo +echo "erasing partition $part" +erase $part + +echo +echo "flashing $image to $part" +echo +tftp $image $part
arch/arm/boards/at91sam9261ek/env/bin/boot new file +47 -0
47 lines not on this page · raw message
arch/arm/boards/at91sam9261ek/env/bin/hush_hack new file +1 -0
@@ -0,0 +1 @@ +nand -a /dev/nand0.*
arch/arm/boards/at91sam9261ek/env/bin/init new file +38 -0
@@ -0,0 +1,38 @@ +#!/bin/sh + +PATH=/env/bin +export PATH + +. /env/config +if [ -e /dev/nor0 ]; then + addpart /dev/nor0 $nor_parts +fi + +if [ -e /dev/nand0 ]; then + addpart /dev/nand0 $nand_parts + + # Uh, oh, hush first expands wildcards and then starts executing + # commands. What a bug! + source /env/bin/hush_hack +fi + +if [ -z $eth0.ethaddr ]; then + while [ -z $eth0.ethaddr ]; do + readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr + done + echo -a /env/config "eth0.ethaddr=$eth0.ethaddr" +fi + +echo +echo -n "Hit any key to stop autoboot: " +timeout -a $autoboot_timeout +if [ $? != 0 ]; then + echo + echo "type update_kernel nor [<imagename>] to update kernel into flash" + echo "type update_root nor [<imagename>] to update rootfs into flash" + echo "type update_barebox_xmodem nor to update barebox into flash" + echo + exit +fi + +boot
arch/arm/boards/at91sam9261ek/env/bin/update_barebox_xmodem new file +26 -0
@@ -0,0 +1,26 @@ +#!/bin/sh + +. /env/config + +if [ x$1 = xnand ]; then + part=/dev/nand0.barebox +elif [ x$1 = xnor ]; then + part=/dev/nor0.barebox +else + echo "usage: $0 nor|nand" + exit 1 +fi + +loadb -f barebox.bin -c + +unprotect $part +echo +echo "erasing partition $part" +erase $part + +echo +echo "flashing barebox.bin to $part" +echo +cp barebox.bin $part +crc32 -f barebox.bin +crc32 -f $part
arch/arm/boards/at91sam9261ek/env/bin/update_kernel new file +15 -0
@@ -0,0 +1,15 @@ +#!/bin/sh + +. /env/config + +image=$uimage +if [ x$1 = xnand ]; then + part=/dev/nand0.kernel.bb +elif [ x$1 = xnor ]; then + part=/dev/nor0.kernel +else + echo "usage: $0 nor|nand [imagename]" + exit 1 +fi + +. /env/bin/_update $2
arch/arm/boards/at91sam9261ek/env/bin/update_root new file +16 -0
@@ -0,0 +1,16 @@ +#!/bin/sh + +. /env/config + +image=$jffs2 +if [ x$1 = xnand ]; then + part=/dev/nand0.root.bb +elif [ x$1 = xnor ]; then + part=/dev/nor0.root +else + echo "usage: $0 nor|nand [imagename]" + exit 1 +fi + +. /env/bin/_update $2 +
arch/arm/boards/at91sam9261ek/env/config new file +28 -0
@@ -0,0 +1,28 @@ +#!/bin/sh + +# can be either 'net', 'nor' or 'nand'' +kernel=net +root=net + +uimage=uImage +jffs2=root.jffs2 + +autoboot_timeout=3 + +nfsroot="" +bootargs="console=ttyS0,115200" + +nor_parts="256k(barebox)ro,64k(bareboxenv),1536k(kernel),-(root)" +rootpart_nor="/dev/mtdblock3" + +#nand_parts="256k(barebox)ro,64k(bareboxenv),1536k(kernel),-(root)" +#rootpart_nand="/dev/mtdblock7" + +# use 'dhcp' to do dhcp in barebox and in kernel +ip=dhcp + +# or set your networking parameters here +#eth0.ipaddr=a.b.c.d +#eth0.netmask=a.b.c.d +#eth0.gateway=a.b.c.d +#eth0.serverip=192.168.23.1
arch/arm/boards/at91sam9261ek/init.c new file +170 -0
170 lines not on this page · raw message
arch/arm/configs/at91sam9261ek_defconfig new file +242 -0
242 lines not on this page · raw message
arch/arm/mach-at91/Kconfig +23 -0
@@ -6,6 +6,7 @@ config ARCH_TEXT_BASE config BOARDINFO default "Atmel 91SAM9260-EK" if MACH_AT91SAM9260EK + default "Atmel at91sam9261-ek" if MACH_AT91SAM9261EK default "Atmel at91sam9263-ek" if MACH_AT91SAM9263EK default "Bucyrus MMC-CPU" if MACH_MMCCPU default "Ronetix PM9263" if MACH_PM9263
@@ -19,6 +20,10 @@ config ARCH_AT91SAM9260 bool "AT91SAM9260" select CPU_ARM926T +config ARCH_AT91SAM9261 + bool "AT91SAM9261" + select CPU_ARM926T + config ARCH_AT91SAM9263 bool "AT91SAM9263" select CPU_ARM926T
@@ -45,6 +50,24 @@ endif # ---------------------------------------------------------- +if ARCH_AT91SAM9261 + +choice + prompt "AT91SAM9261 Board Type" + +config MACH_AT91SAM9261EK + bool "Atmel AT91SAM9261-EK Evaluation Kit" + select HAS_DM9000 + help + Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit. + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820> + +endchoice + +endif + +# ---------------------------------------------------------- + if ARCH_AT91SAM9263 choice
arch/arm/mach-at91/Makefile +1 -0
@@ -4,4 +4,5 @@ obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += lowlevel_init.o # CPU-specific support obj-$(CONFIG_ARCH_AT91SAM9260) += at91sam9260.o at91sam9260_devices.o sam9_smc.o +obj-$(CONFIG_ARCH_AT91SAM9261) += at91sam9261.o at91sam9261_devices.o sam9_smc.o obj-$(CONFIG_ARCH_AT91SAM9263) += at91sam9263.o at91sam9263_devices.o sam9_smc.o
arch/arm/mach-at91/at91sam9261.c new file +230 -0
230 lines not on this page · raw message
arch/arm/mach-at91/at91sam9261_devices.c new file +169 -0
169 lines not on this page · raw message
arch/arm/mach-at91/include/mach/at91sam9261.h new file +109 -0
109 lines not on this page · raw message
arch/arm/mach-at91/include/mach/at91sam9261_matrix.h new file +64 -0
64 lines not on this page · raw message
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/6] at91: Introduction of at91sam9261 SOC.
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
AT91sam9261 series is an ARM 926ej-s SOC family clocked at 190/100MHz.
The first board that embeds at91sam9261 chip is the AT91SAM9261-EK.
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Quoted 12 lines
--- arch/arm/Makefile | 1 + arch/arm/boards/at91sam9261ek/Makefile | 1 + arch/arm/boards/at91sam9261ek/config.h | 110 +++++++++ arch/arm/boards/at91sam9261ek/env/bin/_update | 36 +++ arch/arm/boards/at91sam9261ek/env/bin/boot | 47 ++++ arch/arm/boards/at91sam9261ek/env/bin/hush_hack | 1 + arch/arm/boards/at91sam9261ek/env/bin/init | 38 +++ .../at91sam9261ek/env/bin/update_barebox_xmodem | 26 ++ .../arm/boards/at91sam9261ek/env/bin/update_kernel | 15 ++ arch/arm/boards/at91sam9261ek/env/bin/update_root | 16 ++ arch/arm/boards/at91sam9261ek/env/config | 28 +++
Care to use the generic environment? What's missing in it for you to use it?
Quoted 7 lines
arch/arm/boards/at91sam9261ek/init.c | 170 ++++++++++++++ arch/arm/configs/at91sam9261ek_defconfig | 242 ++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 23 ++ arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91sam9261.c | 230 +++++++++++++++++++ arch/arm/mach-at91/at91sam9261_devices.c | 169 ++++++++++++++ arch/arm/mach-at91/include/mach/at91sam9261.h | 109 +++++++++
Can you please make two patches out of this? One for the architecture support and another one for the board support.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/6] at91: Introduction of at91sam9261 SOC.
Quoted 20 lines · Sascha Hauer
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
AT91sam9261 series is an ARM 926ej-s SOC family clocked at 190/100MHz.
The first board that embeds at91sam9261 chip is the AT91SAM9261-EK.
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>Quoted 12 lines
--- arch/arm/Makefile | 1 + arch/arm/boards/at91sam9261ek/Makefile | 1 + arch/arm/boards/at91sam9261ek/config.h | 110 +++++++++ arch/arm/boards/at91sam9261ek/env/bin/_update | 36 +++ arch/arm/boards/at91sam9261ek/env/bin/boot | 47 ++++ arch/arm/boards/at91sam9261ek/env/bin/hush_hack | 1 + arch/arm/boards/at91sam9261ek/env/bin/init | 38 +++ .../at91sam9261ek/env/bin/update_barebox_xmodem | 26 ++ .../arm/boards/at91sam9261ek/env/bin/update_kernel | 15 ++ arch/arm/boards/at91sam9261ek/env/bin/update_root | 16 ++ arch/arm/boards/at91sam9261ek/env/config | 28 +++
Quoted 2 lines
Care to use the generic environment? What's missing in it for you to use it?
miss it in the code
Quoted 11 lines
Quoted 8 lines
arch/arm/boards/at91sam9261ek/init.c | 170 ++++++++++++++ arch/arm/configs/at91sam9261ek_defconfig | 242 ++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 23 ++ arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91sam9261.c | 230 +++++++++++++++++++ arch/arm/mach-at91/at91sam9261_devices.c | 169 ++++++++++++++ arch/arm/mach-at91/include/mach/at91sam9261.h | 109 +++++++++Can you please make two patches out of this? One for the architecture support and another one for the board support.
Personnaly I prefer to add the first board at the same as e do for the kernel otherwise ok
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/6 at91: add Ronetix pm9261 board support
In reply to Jean-Christophe PLAGNIOL-VILLARD--- arch/arm/Makefile | 1 + arch/arm/boards/pm9261/Makefile | 1 + arch/arm/boards/pm9261/config.h | 110 +++++++++ arch/arm/boards/pm9261/env/bin/_update | 36 +++ arch/arm/boards/pm9261/env/bin/boot | 47 ++++ arch/arm/boards/pm9261/env/bin/hush_hack | 1 + arch/arm/boards/pm9261/env/bin/init | 38 +++ .../boards/pm9261/env/bin/update_barebox_xmodem | 26 ++ arch/arm/boards/pm9261/env/bin/update_kernel | 15 ++ arch/arm/boards/pm9261/env/bin/update_root | 16 ++ arch/arm/boards/pm9261/env/config | 28 +++ arch/arm/boards/pm9261/init.c | 169 +++++++++++++ arch/arm/configs/pm9261_defconfig | 250 ++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 8 + 14 files changed, 746 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boards/pm9261/Makefile create mode 100644 arch/arm/boards/pm9261/config.h create mode 100644 arch/arm/boards/pm9261/env/bin/_update create mode 100644 arch/arm/boards/pm9261/env/bin/boot create mode 100644 arch/arm/boards/pm9261/env/bin/hush_hack create mode 100644 arch/arm/boards/pm9261/env/bin/init create mode 100644 arch/arm/boards/pm9261/env/bin/update_barebox_xmodem create mode 100644 arch/arm/boards/pm9261/env/bin/update_kernel create mode 100644 arch/arm/boards/pm9261/env/bin/update_root create mode 100644 arch/arm/boards/pm9261/env/config create mode 100644 arch/arm/boards/pm9261/init.c create mode 100644 arch/arm/configs/pm9261_defconfig
arch/arm/Makefile +1 -0
@@ -78,6 +78,7 @@ board-$(CONFIG_MACH_PCA100) := phycard-i.MX27 board-$(CONFIG_MACH_PCM037) := pcm037 board-$(CONFIG_MACH_PCM038) := pcm038 board-$(CONFIG_MACH_PCM043) := pcm043 +board-$(CONFIG_MACH_PM9261) := pm9261 board-$(CONFIG_MACH_PM9263) := pm9263 board-$(CONFIG_MACH_SCB9328) := scb9328 board-$(CONFIG_MACH_NESO) := guf-neso
arch/arm/boards/pm9261/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-y += init.o
arch/arm/boards/pm9261/config.h new file +110 -0
110 lines not on this page · raw message
arch/arm/boards/pm9261/env/bin/_update new file +36 -0
@@ -0,0 +1,36 @@ +#!/bin/sh + +if [ -z "$part" -o -z "$image" ]; then + echo "define \$part and \$image" + exit 1 +fi + +if [ ! -e "$part" ]; then + echo "Partition $part does not exist" + exit 1 +fi + +if [ $# = 1 ]; then + image=$1 +fi + +if [ x$ip = xdhcp ]; then + dhcp +fi + +ping $eth0.serverip +if [ $? -ne 0 ] ; then + echo "update aborted" + exit 1 +fi + +unprotect $part + +echo +echo "erasing partition $part" +erase $part + +echo +echo "flashing $image to $part" +echo +tftp $image $part
arch/arm/boards/pm9261/env/bin/boot new file +47 -0
47 lines not on this page · raw message
arch/arm/boards/pm9261/env/bin/hush_hack new file +1 -0
@@ -0,0 +1 @@ +nand -a /dev/nand0.*
arch/arm/boards/pm9261/env/bin/init new file +38 -0
@@ -0,0 +1,38 @@ +#!/bin/sh + +PATH=/env/bin +export PATH + +. /env/config +if [ -e /dev/nor0 ]; then + addpart /dev/nor0 $nor_parts +fi + +if [ -e /dev/nand0 ]; then + addpart /dev/nand0 $nand_parts + + # Uh, oh, hush first expands wildcards and then starts executing + # commands. What a bug! + source /env/bin/hush_hack +fi + +if [ -z $eth0.ethaddr ]; then + while [ -z $eth0.ethaddr ]; do + readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr + done + echo -a /env/config "eth0.ethaddr=$eth0.ethaddr" +fi + +echo +echo -n "Hit any key to stop autoboot: " +timeout -a $autoboot_timeout +if [ $? != 0 ]; then + echo + echo "type update_kernel nor [<imagename>] to update kernel into flash" + echo "type update_root nor [<imagename>] to update rootfs into flash" + echo "type update_barebox_xmodem nor to update barebox into flash" + echo + exit +fi + +boot
arch/arm/boards/pm9261/env/bin/update_barebox_xmodem new file +26 -0
@@ -0,0 +1,26 @@ +#!/bin/sh + +. /env/config + +if [ x$1 = xnand ]; then + part=/dev/nand0.barebox +elif [ x$1 = xnor ]; then + part=/dev/nor0.barebox +else + echo "usage: $0 nor|nand" + exit 1 +fi + +loadb -f barebox.bin -c + +unprotect $part +echo +echo "erasing partition $part" +erase $part + +echo +echo "flashing barebox.bin to $part" +echo +cp barebox.bin $part +crc32 -f barebox.bin +crc32 -f $part
arch/arm/boards/pm9261/env/bin/update_kernel new file +15 -0
@@ -0,0 +1,15 @@ +#!/bin/sh + +. /env/config + +image=$uimage +if [ x$1 = xnand ]; then + part=/dev/nand0.kernel.bb +elif [ x$1 = xnor ]; then + part=/dev/nor0.kernel +else + echo "usage: $0 nor|nand [imagename]" + exit 1 +fi + +. /env/bin/_update $2
arch/arm/boards/pm9261/env/bin/update_root new file +16 -0
@@ -0,0 +1,16 @@ +#!/bin/sh + +. /env/config + +image=$jffs2 +if [ x$1 = xnand ]; then + part=/dev/nand0.root.bb +elif [ x$1 = xnor ]; then + part=/dev/nor0.root +else + echo "usage: $0 nor|nand [imagename]" + exit 1 +fi + +. /env/bin/_update $2 +
arch/arm/boards/pm9261/env/config new file +28 -0
@@ -0,0 +1,28 @@ +#!/bin/sh + +# can be either 'net', 'nor' or 'nand'' +kernel=net +root=net + +uimage=uImage +jffs2=root.jffs2 + +autoboot_timeout=3 + +nfsroot="" +bootargs="console=ttyS0,115200" + +nor_parts="256k(barebox)ro,64k(bareboxenv),1536k(kernel),-(root)" +rootpart_nor="/dev/mtdblock3" + +#nand_parts="256k(barebox)ro,64k(bareboxenv),1536k(kernel),-(root)" +#rootpart_nand="/dev/mtdblock7" + +# use 'dhcp' to do dhcp in barebox and in kernel +ip=dhcp + +# or set your networking parameters here +#eth0.ipaddr=a.b.c.d +#eth0.netmask=a.b.c.d +#eth0.gateway=a.b.c.d +#eth0.serverip=192.168.23.1
arch/arm/boards/pm9261/init.c new file +169 -0
169 lines not on this page · raw message
arch/arm/configs/pm9261_defconfig new file +250 -0
250 lines not on this page · raw message
arch/arm/mach-at91/Kconfig +8 -0
@@ -9,6 +9,7 @@ config BOARDINFO default "Atmel at91sam9261-ek" if MACH_AT91SAM9261EK default "Atmel at91sam9263-ek" if MACH_AT91SAM9263EK default "Bucyrus MMC-CPU" if MACH_MMCCPU + default "Ronetix PM9261" if MACH_PM9261 default "Ronetix PM9263" if MACH_PM9263 comment "Atmel AT91 System-on-Chip"
@@ -23,6 +24,7 @@ config ARCH_AT91SAM9260 config ARCH_AT91SAM9261 bool "AT91SAM9261" select CPU_ARM926T + select MACH_HAS_LOWLEVEL_INIT config ARCH_AT91SAM9263 bool "AT91SAM9263"
@@ -62,6 +64,12 @@ config MACH_AT91SAM9261EK Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit. <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820> +config MACH_PM9261 + bool "Ronetix PM9261" + select HAS_DM9000 + help + Say y here if you are using the Ronetix PM9261 Board + endchoice endif
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/6 at91: rename clocksource.c -> at91sam926x_time.c
In reply to Jean-Christophe PLAGNIOL-VILLARDpreparation to move the rm9200 to the same api as other at91
--- arch/arm/mach-at91/Makefile | 8 ++-- arch/arm/mach-at91/at91sam926x_time.c | 85 +++++++++++++++++++++++++++++++++ arch/arm/mach-at91/clocksource.c | 85 --------------------------------- 3 files changed, 89 insertions(+), 89 deletions(-) create mode 100644 arch/arm/mach-at91/at91sam926x_time.c delete mode 100644 arch/arm/mach-at91/clocksource.c
arch/arm/mach-at91/Makefile +4 -4
@@ -1,8 +1,8 @@ -obj-y += clock.o clocksource.o gpio.o +obj-y += clock.o gpio.o obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += lowlevel_init.o # CPU-specific support -obj-$(CONFIG_ARCH_AT91SAM9260) += at91sam9260.o at91sam9260_devices.o sam9_smc.o -obj-$(CONFIG_ARCH_AT91SAM9261) += at91sam9261.o at91sam9261_devices.o sam9_smc.o -obj-$(CONFIG_ARCH_AT91SAM9263) += at91sam9263.o at91sam9263_devices.o sam9_smc.o +obj-$(CONFIG_ARCH_AT91SAM9260) += at91sam9260.o at91sam926x_time.o at91sam9260_devices.o sam9_smc.o +obj-$(CONFIG_ARCH_AT91SAM9261) += at91sam9261.o at91sam926x_time.o at91sam9261_devices.o sam9_smc.o +obj-$(CONFIG_ARCH_AT91SAM9263) += at91sam9263.o at91sam926x_time.o at91sam9263_devices.o sam9_smc.o
arch/arm/mach-at91/at91sam926x_time.c new file +85 -0
85 lines not on this page · raw message
arch/arm/mach-at91/clocksource.c deleted +0 -85
85 lines not on this page · raw message
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 5/6 macb: introduce HAS_MACB configuration
In reply to Jean-Christophe PLAGNIOL-VILLARD--- arch/arm/mach-at91/Kconfig | 2 ++ drivers/net/Kconfig | 5 ++++- 2 files changed, 6 insertions(+), 1 deletions(-)
arch/arm/mach-at91/Kconfig +2 -0
@@ -20,6 +20,7 @@ choice config ARCH_AT91SAM9260 bool "AT91SAM9260" select CPU_ARM926T + select HAS_MACB config ARCH_AT91SAM9261 bool "AT91SAM9261"
@@ -30,6 +31,7 @@ config ARCH_AT91SAM9263 bool "AT91SAM9263" select CPU_ARM926T select MACH_HAS_LOWLEVEL_INIT + select HAS_MACB endchoice
drivers/net/Kconfig +4 -1
@@ -4,6 +4,9 @@ config HAS_CS8900 config HAS_DM9000 bool +config HAS_MACB + bool + config HAS_AT91_ETHER bool
@@ -71,7 +74,7 @@ config DRIVER_NET_EP93XX config DRIVER_NET_MACB bool "macb Ethernet driver" - depends on ARCH_AT91 + depends on HAS_MACB select MIIPHY config DRIVER_NET_TAP
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 6/6 at91: remove non used and obsolete at91rm9200 code
In reply to Jean-Christophe PLAGNIOL-VILLARDthis will be re-add as mach-at91
for now on keep the net driver which will be updated to new API
--- arch/arm/Kconfig | 5 - arch/arm/Makefile | 1 - arch/arm/mach-at91rm9200/Kconfig | 16 - arch/arm/mach-at91rm9200/include/mach/AT91RM9200.h | 762 -------------------- arch/arm/mach-at91rm9200/include/mach/hardware.h | 78 -- 5 files changed, 0 insertions(+), 862 deletions(-) delete mode 100644 arch/arm/mach-at91rm9200/Kconfig delete mode 100644 arch/arm/mach-at91rm9200/include/mach/AT91RM9200.h delete mode 100644 arch/arm/mach-at91rm9200/include/mach/hardware.h
arch/arm/Kconfig +0 -5
@@ -30,10 +30,6 @@ config ARCH_AT91 bool "Atmel AT91" select GENERIC_GPIO -config ARCH_AT91RM9200 - bool "Atmel AT91RM9200" - select CPU_ARM920T - config ARCH_EP93XX bool "Cirrus Logic EP93xx" select CPU_ARM920T
@@ -65,7 +61,6 @@ endchoice source arch/arm/common/Kconfig source arch/arm/cpu/Kconfig source arch/arm/mach-at91/Kconfig -source arch/arm/mach-at91rm9200/Kconfig source arch/arm/mach-ep93xx/Kconfig source arch/arm/mach-imx/Kconfig source arch/arm/mach-netx/Kconfig
arch/arm/Makefile +0 -1
@@ -39,7 +39,6 @@ CPPFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y) # Machine directory name. This list is sorted alphanumerically # by CONFIG_* macro name. machine-$(CONFIG_ARCH_AT91) := at91 -machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200 machine-$(CONFIG_ARCH_EP93XX) := ep93xx machine-$(CONFIG_ARCH_IMX) := imx machine-$(CONFIG_ARCH_NOMADIK) := nomadik
arch/arm/mach-at91rm9200/Kconfig deleted +0 -16
@@ -1,16 +0,0 @@ -if ARCH_AT91RM9200 - -config ARCH_TEXT_BASE - hex - -config BOARDINFO - -comment "Atmel AT91RM9200 System-on-Chip" - -choice - - prompt "AT91RM9200 Board Type" - -endchoice - -endif
arch/arm/mach-at91rm9200/include/mach/AT91RM9200.h deleted +0 -762
762 lines not on this page · raw message
arch/arm/mach-at91rm9200/include/mach/hardware.h deleted +0 -78
78 lines not on this page · raw message
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox