tny-a9263: add spi + bootstrap support
Subsystems (4)
cover tny-a9263: add spi + bootstrap support
HI,
depends on console none
The following changes since commit e75f727c6e048c9978cb47cb8af92488a8251569:
introduce console none support (2013-01-19 11:51:53 +0800)
are available in the git repository at:
git://git.jcrosoft.org/barebox.git delivery/tny_a9263
for you to fetch changes up to 5b41b075420e3547a9dfa7ef1bc0ba015af9db98:
tny_a9263: add bootstrop support (2013-01-19 14:41:24 +0800)
----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
tny-a9263: add dataflash support
tny_a9263: add bootstrop support
arch/arm/boards/tny-a926x/Makefile | 9 +++++++++ arch/arm/boards/tny-a926x/init.c | 43 ++++++++++++++++++++++++++++++------------- arch/arm/boards/tny-a926x/tny_a9263_bootstrap.c | 16 ++++++++++++++++ arch/arm/boards/tny-a926x/tny_a9263_lowlevel_init.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/configs/tny_a9263_bootstrap_defconfig | 26 ++++++++++++++++++++++++++ arch/arm/configs/tny_a9263_defconfig | 1 + arch/arm/mach-at91/Kconfig | 1 + 7 files changed, 190 insertions(+), 13 deletions(-) create mode 100644 arch/arm/boards/tny-a926x/tny_a9263_bootstrap.c create mode 100644 arch/arm/boards/tny-a926x/tny_a9263_lowlevel_init.c create mode 100644 arch/arm/configs/tny_a9263_bootstrap_defconfig
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/2 tny-a9263: add dataflash support
--- arch/arm/boards/tny-a926x/init.c | 43 ++++++++++++++++++++++++---------- arch/arm/configs/tny_a9263_defconfig | 1 + 2 files changed, 31 insertions(+), 13 deletions(-)
arch/arm/boards/tny-a926x/init.c +30 -13
@@ -160,16 +160,31 @@ static struct spi_board_info tny_a9g20_lpw_spi_devices[] = { }, }; -static int spi0_standard_cs[] = {AT91_PIN_PC11 }; -struct at91_spi_platform_data spi0_pdata = { - .chipselect = spi0_standard_cs, - .num_chipselect =ARRAY_SIZE (spi0_standard_cs), +static struct spi_board_info tny_a9263_spi_devices[] = { + { + .name ="mtd_dataflash" , + .max_speed_hz =15 *1000 *1000 , + .bus_num =0 , + .chip_select =0 , + }, }; -static int spi1_standard_cs[] = {AT91_PIN_PC3 }; -struct at91_spi_platform_data spi1_pdata = { - .chipselect = spi1_standard_cs, - .num_chipselect =ARRAY_SIZE (spi1_standard_cs), +static int tny_a9263_spi0_standard_cs[] = {AT91_PIN_PA5 }; +struct at91_spi_platform_data tny_a9263_spi0_pdata = { + .chipselect = tny_a9263_spi0_standard_cs, + .num_chipselect =ARRAY_SIZE (tny_a9263_spi0_standard_cs), +}; + +static int tny_a9g20_spi0_standard_cs[] = {AT91_PIN_PC11 }; +struct at91_spi_platform_data tny_a9g20_spi0_pdata = { + .chipselect = tny_a9g20_spi0_standard_cs, + .num_chipselect =ARRAY_SIZE (tny_a9g20_spi0_standard_cs), +}; + +static int tny_a9g20_spi1_standard_cs[] = {AT91_PIN_PC3 }; +struct at91_spi_platform_data tny_a9g20_spi1_pdata = { + .chipselect = tny_a9g20_spi1_standard_cs, + .num_chipselect =ARRAY_SIZE (tny_a9g20_spi1_standard_cs), };static void __init ek_add_device_udc (void )
@@ -182,17 +197,19 @@ static void __init ek_add_device_udc(void)static void __init ek_add_device_spi (void ) { -if (machine_is_tny_a9263 ()) -return ; +if (machine_is_tny_a9263 ()) { +spi_register_board_info (tny_a9263_spi_devices, +ARRAY_SIZE (tny_a9263_spi_devices)); +at91_add_device_spi (0 , &tny_a9263_spi0_pdata); -if (machine_is_tny_a9g20 () &&at91_is_low_power_sdram ()) { + }else if (machine_is_tny_a9g20 () &&at91_is_low_power_sdram ()) {spi_register_board_info (tny_a9g20_lpw_spi_devices,ARRAY_SIZE (tny_a9g20_lpw_spi_devices)); -at91_add_device_spi (1 , &spi1_pdata); +at91_add_device_spi (1 , &tny_a9g20_spi1_pdata); }else {spi_register_board_info (tny_a9g20_spi_devices,ARRAY_SIZE (tny_a9g20_spi_devices)); -at91_add_device_spi (0 , &spi0_pdata); +at91_add_device_spi (0 , &tny_a9g20_spi0_pdata); } }
arch/arm/configs/tny_a9263_defconfig +1 -0
@@ -62,6 +62,7 @@ CONFIG_DRIVER_NET_MACB=y CONFIG_DRIVER_SPI_ATMEL=y CONFIG_MTD=y # CONFIG_MTD_OOB_DEVICE is not set +CONFIG_MTD_DATAFLASH=y CONFIG_NAND=y # CONFIG_NAND_ECC_HW is not set # CONFIG_NAND_ECC_HW_SYNDROME is not set
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/2 tny_a9263: add bootstrap support
the lowlevel init is the same as the usb-a9263 except that can not have the 128MiB option
--- arch/arm/boards/tny-a926x/Makefile | 9 ++ arch/arm/boards/tny-a926x/tny_a9263_bootstrap.c | 16 +++ .../arm/boards/tny-a926x/tny_a9263_lowlevel_init.c | 107 ++++++++++++++++++++ arch/arm/configs/tny_a9263_bootstrap_defconfig | 26 +++++ arch/arm/mach-at91/Kconfig | 1 + 5 files changed, 159 insertions(+) create mode 100644 arch/arm/boards/tny-a926x/tny_a9263_bootstrap.c create mode 100644 arch/arm/boards/tny-a926x/tny_a9263_lowlevel_init.c create mode 100644 arch/arm/configs/tny_a9263_bootstrap_defconfig
arch/arm/boards/tny-a926x/Makefile +9 -0
@@ -1 +1,10 @@ obj-y += init.o + +bootstrap-$(CONFIG_MACH_TNY_A9263) = tny_a9263_bootstrap.o +obj-$(CONFIG_AT91_BOOTSTRAP) += $(bootstrap-y) + +lowlevel_init-$(CONFIG_MACH_TNY_A9263) = tny_a9263_lowlevel_init.o + +obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += $(lowlevel_init-y) + +pbl-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += $(lowlevel_init-y)
arch/arm/boards/tny-a926x/tny_a9263_bootstrap.c new file +16 -0
@@ -0,0 +1,16 @@ +/* +* Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <[email protected]> +* +* Under GPLv2 +*/ + +#include <common.h> +#include <bootstrap.h> +#include <mach/bootstrap.h> + +#ifdef CONFIG_MTD_DATAFLASH +void *bootstrap_board_read_dataflash (void ) +{ +return bootstrap_read_devfs ("dataflash0" , false,0xffc0 ,204864 ,204864 ); +} +#endif
arch/arm/boards/tny-a926x/tny_a9263_lowlevel_init.c new file +107 -0
107 lines not on this page · raw message
arch/arm/configs/tny_a9263_bootstrap_defconfig new file +26 -0
@@ -0,0 +1,26 @@ +CONFIG_ARCH_AT91SAM9263=y +CONFIG_MACH_TNY_A9263=y +CONFIG_AT91_BOOTSTRAP=y +CONFIG_BAREBOX_MAX_IMAGE_SIZE=0x12000 +CONFIG_AEABI=y +# CONFIG_CMD_ARM_CPUINFO is not set +CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y +CONFIG_ENVIRONMENT_VARIABLES=y +CONFIG_PBL_IMAGE=y +CONFIG_MMU=y +CONFIG_MALLOC_DUMMY=y +CONFIG_PROMPT="USB-9263:" +CONFIG_SHELL_NONE=y +CONFIG_CONSOLE_SIMPLE=y +# CONFIG_DEFAULT_ENVIRONMENT is not set +# CONFIG_SPI is not set +CONFIG_MTD=y +# CONFIG_MTD_WRITE is not set +# CONFIG_MTD_OOB_DEVICE is not set +CONFIG_NAND=y +# CONFIG_NAND_ECC_HW is not set +# CONFIG_NAND_ECC_HW_SYNDROME is not set +# CONFIG_NAND_ECC_HW_NONE is not set +CONFIG_NAND_ATMEL=y +# CONFIG_FS_RAMFS is not set +CONFIG_BOOTSTRAP_DEVFS=y
arch/arm/mach-at91/Kconfig +1 -0
@@ -351,6 +351,7 @@ config MACH_PM9263 config MACH_TNY_A9263 bool "CALAO TNY-A9263" select SUPPORT_CALAO_MOB_TNY_MD2 + select MACH_HAS_LOWLEVEL_INIT help Select this if you are using a Calao Systems TNY-A9263. <http://www.calao-systems.com>
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 11 lines · Jean-Christophe PLAGNIOL-VILLARD
HI,
depends on console none
The following changes since commit
e75f727c6e048c9978cb47cb8af92488a8251569:introduce console none support (2013-01-19 11:51:53 +0800)
are available in the git repository at:
git://git.jcrosoft.org/barebox.gitdelivery/tny_a9263
Applied, thanks
Sascha
Quoted 30 lines
for you to fetch changes up to
5b41b075420e3547a9dfa7ef1bc0ba015af9db98:
tny_a9263: add bootstrop support (2013-01-19 14:41:24 +0800)----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
tny-a9263: add dataflash support
tny_a9263: add bootstrop supportarch/arm/boards/tny-a926x/Makefile | 9 +++++++++ arch/arm/boards/tny-a926x/init.c | 43 ++++++++++++++++++++++++++++++------------- arch/arm/boards/tny-a926x/tny_a9263_bootstrap.c | 16 ++++++++++++++++ arch/arm/boards/tny-a926x/tny_a9263_lowlevel_init.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/arm/configs/tny_a9263_bootstrap_defconfig | 26 ++++++++++++++++++++++++++ arch/arm/configs/tny_a9263_defconfig | 1 + arch/arm/mach-at91/Kconfig | 1 + 7 files changed, 190 insertions(+), 13 deletions(-) create mode 100644 arch/arm/boards/tny-a926x/tny_a9263_bootstrap.c create mode 100644 arch/arm/boards/tny-a926x/tny_a9263_lowlevel_init.c create mode 100644 arch/arm/configs/tny_a9263_bootstrap_defconfigBest 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