at91: at91sam9n12 support
cover at91: at91sam9n12 support
Hi,
this patch serie add the support of the at91sam9n12 with it's reference board the n12ek
we do not switch to the defaultenv-2 as I need nfs boot with symlink and this is not support yet in it
I'll switch all my platform when we will have it
This patch serie depends on the at91_fixes send just before
wing changes since commit 02d37b5d4598cd3ffea4730aa027c8c04ab1f58d:
Revert "mtd: atmel_nand: optimize read/write buffer functions" (2012-11-22 02:21:14 +0800)
are available in the git repository at:
git://git.jcrosoft.org/barebox.git delivery/at91sam9n12
for you to fetch changes up to 96a5ef4e557a816e50e66d9f708934e68b49ea76:
at91: add at91sam9n12ek board support (2012-11-22 02:24:59 +0800)
----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
arm: at91: add at91sam9n12 support
at91: add at91sam9n12ek board support
arch/arm/Makefile | 1 + arch/arm/boards/at91sam9n12ek/Makefile | 1 + arch/arm/boards/at91sam9n12ek/config.h | 6 ++ arch/arm/boards/at91sam9n12ek/env/bin/init_board | 50 +++++++++++++ arch/arm/boards/at91sam9n12ek/env/config | 41 +++++++++++ arch/arm/boards/at91sam9n12ek/init.c | 270 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/configs/at91sam9n12ek_defconfig | 87 +++++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 23 ++++++ arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91sam9n12.c | 233 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-at91/at91sam9n12_devices.c | 374 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-at91/clock.c | 15 ++-- arch/arm/mach-at91/gpio.c | 2 +- arch/arm/mach-at91/include/mach/at91sam9n12.h | 166 ++++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-at91/include/mach/at91sam9n12_matrix.h | 98 ++++++++++++++++++++++++++ arch/arm/mach-at91/include/mach/board.h | 1 + arch/arm/mach-at91/include/mach/cpu.h | 7 ++ arch/arm/mach-at91/include/mach/hardware.h | 2 + 18 files changed, 1372 insertions(+), 6 deletions(-) create mode 100644 arch/arm/boards/at91sam9n12ek/Makefile create mode 100644 arch/arm/boards/at91sam9n12ek/config.h create mode 100644 arch/arm/boards/at91sam9n12ek/env/bin/init_board create mode 100644 arch/arm/boards/at91sam9n12ek/env/config create mode 100644 arch/arm/boards/at91sam9n12ek/init.c create mode 100644 arch/arm/configs/at91sam9n12ek_defconfig create mode 100644 arch/arm/mach-at91/at91sam9n12.c create mode 100644 arch/arm/mach-at91/at91sam9n12_devices.c create mode 100644 arch/arm/mach-at91/include/mach/at91sam9n12.h create mode 100644 arch/arm/mach-at91/include/mach/at91sam9n12_matrix.h
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/2 arm: at91: add at91sam9n12 support
--- arch/arm/mach-at91/Kconfig | 6 + arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91sam9n12.c | 233 ++++++++++++ arch/arm/mach-at91/at91sam9n12_devices.c | 374 ++++++++++++++++++++ arch/arm/mach-at91/clock.c | 15 +- arch/arm/mach-at91/gpio.c | 2 +- arch/arm/mach-at91/include/mach/at91sam9n12.h | 166 +++++++++ .../mach-at91/include/mach/at91sam9n12_matrix.h | 98 +++++ arch/arm/mach-at91/include/mach/board.h | 1 + arch/arm/mach-at91/include/mach/cpu.h | 7 + arch/arm/mach-at91/include/mach/hardware.h | 2 + 11 files changed, 899 insertions(+), 6 deletions(-) create mode 100644 arch/arm/mach-at91/at91sam9n12.c create mode 100644 arch/arm/mach-at91/at91sam9n12_devices.c create mode 100644 arch/arm/mach-at91/include/mach/at91sam9n12.h create mode 100644 arch/arm/mach-at91/include/mach/at91sam9n12_matrix.h
arch/arm/mach-at91/Kconfig +6 -0
@@ -92,6 +92,11 @@ config ARCH_AT91SAM9X5 select HAS_MACB select AT91SAM9G45_RESET +config ARCH_AT91SAM9N12 + bool "AT91SAM9N12" + select CPU_ARM926T + select AT91SAM9G45_RESET + endchoice config ARCH_BAREBOX_MAX_BARE_INIT_SIZE
@@ -103,6 +108,7 @@ config ARCH_BAREBOX_MAX_BARE_INIT_SIZE default 0x3000 if ARCH_AT91SAM9G10 default 0xF000 if ARCH_AT91SAM9G45 default 0x6000 if ARCH_AT91SAM9X5 + default 0x6000 if ARCH_AT91SAM9N12 default 0xffffffff config SUPPORT_CALAO_DAB_MMX
arch/arm/mach-at91/Makefile +1 -0
@@ -18,3 +18,4 @@ obj-$(CONFIG_ARCH_AT91SAM9G10) += at91sam9261.o at91sam926x_time.o at91sam9261_d obj-$(CONFIG_ARCH_AT91SAM9G20) += at91sam9260.o at91sam926x_time.o at91sam9260_devices.o sam9_smc.o obj-$(CONFIG_ARCH_AT91SAM9G45) += at91sam9g45.o at91sam926x_time.o at91sam9g45_devices.o sam9_smc.o obj-$(CONFIG_ARCH_AT91SAM9X5) += at91sam9x5.o at91sam926x_time.o at91sam9x5_devices.o sam9_smc.o +obj-$(CONFIG_ARCH_AT91SAM9N12) += at91sam9n12.o at91sam926x_time.o at91sam9n12_devices.o sam9_smc.o
arch/arm/mach-at91/at91sam9n12.c new file +233 -0
233 lines not on this page · raw message
arch/arm/mach-at91/at91sam9n12_devices.c new file +374 -0
374 lines not on this page · raw message
arch/arm/mach-at91/clock.c +10 -5
@@ -46,7 +46,8 @@#define cpu_has_800M_plla () ( cpu_is_at91sam9g20() \ || cpu_is_at91sam9g45() \ - || cpu_is_at91sam9x5()) + || cpu_is_at91sam9x5() \ + || cpu_is_at91sam9n12())#define cpu_has_300M_plla () (cpu_is_at91sam9g10())
@@ -58,7 +59,8 @@#define cpu_has_pllb () (!(cpu_is_at91sam9rl() \ || cpu_is_at91sam9g45() \ - || cpu_is_at91sam9x5())) + || cpu_is_at91sam9x5() \ + || cpu_is_at91sam9n12()))#define cpu_has_upll () (cpu_is_at91sam9g45() \ || cpu_is_at91sam9x5())
@@ -72,12 +74,15 @@ || cpu_is_at91sam9x5()))#define cpu_has_plladiv2 () (cpu_is_at91sam9g45() \ - || cpu_is_at91sam9x5()) + || cpu_is_at91sam9x5() \ + || cpu_is_at91sam9n12())#define cpu_has_mdiv3 () (cpu_is_at91sam9g45() \ - || cpu_is_at91sam9x5()) + || cpu_is_at91sam9x5() \ + || cpu_is_at91sam9n12()) -#define cpu_has_alt_prescaler () (cpu_is_at91sam9x5()) +#define cpu_has_alt_prescaler () (cpu_is_at91sam9x5() \ + || cpu_is_at91sam9n12())static LIST_HEAD (clocks);
arch/arm/mach-at91/gpio.c +1 -1
@@ -364,7 +364,7 @@ int at91_gpio_init(struct at91_gpio_bank *data, int nr_banks)clk_enable (data->clock); } - cpu_has_pio3 =cpu_is_at91sam9x5 (); + cpu_has_pio3 =cpu_is_at91sam9x5 () ||cpu_is_at91sam9n12 ();return 0 ; }
arch/arm/mach-at91/include/mach/at91sam9n12.h new file +166 -0
166 lines not on this page · raw message
arch/arm/mach-at91/include/mach/at91sam9n12_matrix.h new file +98 -0
98 lines not on this page · raw message
arch/arm/mach-at91/include/mach/board.h +1 -0
@@ -54,6 +54,7 @@ struct atmel_nand_data {u8 bus_width_16;/* buswidth is 16 bit */ u8 ecc_mode;/* NAND_ECC_* */ u8 on_flash_bbt;/* Use flash based bbt */ +u8 bus_on_d0;u8 pmecc_corr_cap;u16 pmecc_sector_size;
arch/arm/mach-at91/include/mach/cpu.h +7 -0
@@ -28,6 +28,7 @@#define ARCH_ID_AT91SAM9G45MRL 0x819b05a2/* aka 9G45-ES2 & non ES lots */ #define ARCH_ID_AT91SAM9G45ES 0x819b05a1/* 9G45-ES (Engineering Sample) */ #define ARCH_ID_AT91SAM9X5 0x819a05a0 +#define ARCH_ID_AT91SAM9N12 0x819a07a0#define ARCH_ID_AT91CAP9 0x039A03A0#define ARCH_ID_AT91SAM9XE128 0x329973a0
@@ -171,6 +172,12 @@ static inline unsigned long at91cap9_rev_identify(void)#define cpu_is_at91sam9x25 () (0)#endif +#ifdef CONFIG_ARCH_AT91SAM9N12 +#define cpu_is_at91sam9n12 () (at91_cpu_identify() == ARCH_ID_AT91SAM9N12) +#else +#define cpu_is_at91sam9n12 () (0) +#endif +#ifdef CONFIG_ARCH_AT91CAP9 #define cpu_is_at91cap9 () (at91_cpu_identify() == ARCH_ID_AT91CAP9)#define cpu_is_at91cap9_revB () (at91cap9_rev_identify() == ARCH_REVISION_CAP9_B)
arch/arm/mach-at91/include/mach/hardware.h +2 -0
@@ -26,6 +26,8 @@#include <mach/at91sam9rl.h> #elif defined(CONFIG_ARCH_AT91SAM9G45 )#include <mach/at91sam9g45.h> +#elif defined(CONFIG_ARCH_AT91SAM9N12 ) +#include <mach/at91sam9n12.h> #elif defined(CONFIG_ARCH_AT91SAM9X5 )#include <mach/at91sam9x5.h> #elif defined(CONFIG_ARCH_AT91CAP9 )
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/2 at91: add at91sam9n12ek board support
--- arch/arm/Makefile | 1 + arch/arm/boards/at91sam9n12ek/Makefile | 1 + arch/arm/boards/at91sam9n12ek/config.h | 6 + arch/arm/boards/at91sam9n12ek/env/bin/init_board | 50 ++++ arch/arm/boards/at91sam9n12ek/env/config | 41 ++++ arch/arm/boards/at91sam9n12ek/init.c | 270 ++++++++++++++++++++++ arch/arm/configs/at91sam9n12ek_defconfig | 87 +++++++ arch/arm/mach-at91/Kconfig | 17 ++ 8 files changed, 473 insertions(+) create mode 100644 arch/arm/boards/at91sam9n12ek/Makefile create mode 100644 arch/arm/boards/at91sam9n12ek/config.h create mode 100644 arch/arm/boards/at91sam9n12ek/env/bin/init_board create mode 100644 arch/arm/boards/at91sam9n12ek/env/config create mode 100644 arch/arm/boards/at91sam9n12ek/init.c create mode 100644 arch/arm/configs/at91sam9n12ek_defconfig
arch/arm/Makefile +1 -0
@@ -75,6 +75,7 @@ board-$(CONFIG_MACH_AT91SAM9261EK) := at91sam9261ek board-$(CONFIG_MACH_AT91SAM9263EK) := at91sam9263ek board-$(CONFIG_MACH_AT91SAM9G10EK) := at91sam9261ek board-$(CONFIG_MACH_AT91SAM9G20EK) := at91sam9260ek +board-$(CONFIG_MACH_AT91SAM9N12EK) := at91sam9n12ek board-$(CONFIG_MACH_AT91SAM9X5EK) := at91sam9x5ek board-$(CONFIG_MACH_AT91SAM9M10G45EK) := at91sam9m10g45ek board-$(CONFIG_MACH_CLEP7212) := clep7212
arch/arm/boards/at91sam9n12ek/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-y += init.o
arch/arm/boards/at91sam9n12ek/config.h new file +6 -0
@@ -0,0 +1,6 @@ +#ifndef __CONFIG_H +#define __CONFIG_H + +#define AT91_MAIN_CLOCK 16000000/* 16 MHz crystal */ + +#endif /* __CONFIG_H */
arch/arm/boards/at91sam9n12ek/env/bin/init_board new file +50 -0
50 lines not on this page · raw message
arch/arm/boards/at91sam9n12ek/env/config new file +41 -0
41 lines not on this page · raw message
arch/arm/boards/at91sam9n12ek/init.c new file +270 -0
270 lines not on this page · raw message
arch/arm/configs/at91sam9n12ek_defconfig new file +87 -0
87 lines not on this page · raw message
arch/arm/mach-at91/Kconfig +17 -0
@@ -14,6 +14,7 @@ config BOARDINFO default "Atmel at91sam9g10-ek" if MACH_AT91SAM9G10EK default "Atmel at91sam9g20-ek" if MACH_AT91SAM9G20EK default "Atmel at91sam9m10g45-ek" if MACH_AT91SAM9M10G45EK + default "Atmel at91sam9n12-ek" if MACH_AT91SAM9N12EK default "Atmel at91sam9x5-ek" if MACH_AT91SAM9X5EK default "Bucyrus MMC-CPU" if MACH_MMCCPU default "Calao USB-A9260" if MACH_USB_A9260
@@ -342,6 +343,22 @@ endif # ---------------------------------------------------------- +if ARCH_AT91SAM9N12 + +choice + prompt "AT91SAM9N12 Board Type" + +config MACH_AT91SAM9N12EK + bool "Atmel AT91SAM9N12 Evaluation Kit" + help + Select this if you are using Atmel's AT91SAM9N12-EK Evaluation Kit. + +endchoice + +endif + +# ---------------------------------------------------------- + comment "AT91 Board Options" config MTD_AT91_DATAFLASH_CARD
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 13 lines · Jean-Christophe PLAGNIOL-VILLARD
Hi,
this patch serie add the support of the at91sam9n12 with it's reference board the n12ek
we do not switch to the defaultenv-2 as I need nfs boot with symlink and this is not support yet in it
I'll switch all my platform when we will have it
This patch serie depends on the
at91_fixessend just before
Quoted 7 lines
wing changes since commit
02d37b5d4598cd3ffea4730aa027c8c04ab1f58d:Revert "mtd:
atmel_nand: optimize read/write buffer functions" (2012-11-22 02:21:14 +0800)are available in the git repository at:
git://git.jcrosoft.org/barebox.gitdelivery/at91sam9n12
Applied, thanks
Sascha
Quoted 48 lines
for you to fetch changes up to
96a5ef4e557a816e50e66d9f708934e68b49ea76:at91: add at91sam9n12ek board support (2012-11-22 02:24:59 +0800)
----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
arm: at91: add at91sam9n12 support
at91: add at91sam9n12ek board supportarch/arm/Makefile | 1 + arch/arm/boards/at91sam9n12ek/Makefile | 1 + arch/arm/boards/at91sam9n12ek/config.h | 6 ++ arch/arm/boards/at91sam9n12ek/env/bin/init_board | 50 +++++++++++++ arch/arm/boards/at91sam9n12ek/env/config | 41 +++++++++++ arch/arm/boards/at91sam9n12ek/init.c | 270 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/configs/at91sam9n12ek_defconfig | 87 +++++++++++++++++++++++ arch/arm/mach-at91/Kconfig | 23 ++++++ arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/at91sam9n12.c | 233 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-at91/at91sam9n12_devices.c | 374 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-at91/clock.c | 15 ++-- arch/arm/mach-at91/gpio.c | 2 +- arch/arm/mach-at91/include/mach/at91sam9n12.h | 166 ++++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-at91/include/mach/at91sam9n12_matrix.h | 98 ++++++++++++++++++++++++++ arch/arm/mach-at91/include/mach/board.h | 1 + arch/arm/mach-at91/include/mach/cpu.h | 7 ++ arch/arm/mach-at91/include/mach/hardware.h | 2 + 18 files changed, 1372 insertions(+), 6 deletions(-) create mode 100644 arch/arm/boards/at91sam9n12ek/Makefile create mode 100644 arch/arm/boards/at91sam9n12ek/config.h create mode 100644 arch/arm/boards/at91sam9n12ek/env/bin/init_board create mode 100644 arch/arm/boards/at91sam9n12ek/env/config create mode 100644 arch/arm/boards/at91sam9n12ek/init.c create mode 100644 arch/arm/configs/at91sam9n12ek_defconfig create mode 100644 arch/arm/mach-at91/at91sam9n12.c create mode 100644 arch/arm/mach-at91/at91sam9n12_devices.c create mode 100644 arch/arm/mach-at91/include/mach/at91sam9n12.h create mode 100644 arch/arm/mach-at91/include/mach/at91sam9n12_matrix.hBest Regards,
J._______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
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