arm, omap3: Add support for TechNexion modules
PATCH 1/5 arm, omap3: Add support for TechNexion modules
From: Tapani Utriainen <[email protected]>
Add support for TechNexion TAO3530 SoM
This patch has been posted quite a long time ago. I ported it to the latest mainline U-Boot version. With some additional cleanup and enhancements.
--- arch/arm/include/asm/mach-types.h | 1 + board/technexion/tao3530/Makefile | 5 + board/technexion/tao3530/tao3530.c | 170 +++++++++++++++++ board/technexion/tao3530/tao3530.h | 364 +++++++++++++++++++++++++++++++++++++ boards.cfg | 1 + include/configs/tao3530.h | 310 +++++++++++++++++++++++++++++++ 6 files changed, 851 insertions(+) create mode 100644 board/technexion/tao3530/Makefile create mode 100644 board/technexion/tao3530/tao3530.c create mode 100644 board/technexion/tao3530/tao3530.h create mode 100644 include/configs/tao3530.h
arch/arm/include/asm/mach-types.h +1 -0
@@ -470,6 +470,7 @@ extern unsigned int __machine_arch_type;#define MACH_TYPE_EUKREA_CPUIMX35SD 2821#define MACH_TYPE_EUKREA_CPUIMX51SD 2822#define MACH_TYPE_EUKREA_CPUIMX51 2823 +#define MACH_TYPE_OMAP3_TAO3530 2836#define MACH_TYPE_SMDKC210 2838#define MACH_TYPE_OMAP3_BRAILLO 2839#define MACH_TYPE_SPYPLUG 2840
board/technexion/tao3530/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := tao3530.o
board/technexion/tao3530/tao3530.c new file +170 -0
170 lines not on this page · raw message
board/technexion/tao3530/tao3530.h new file +364 -0
364 lines not on this page · raw message
boards.cfg +1 -0
@@ -325,6 +325,7 @@ Active arm armv7 omap3 logicpd zoom1 Active arm armv7 omap3 logicpd zoom2 omap3_zoom2 - Tom Rix <[email protected]> Active arm armv7 omap3 matrix_vision mvblx omap3_mvblx - Michael Jones <[email protected]> Active arm armv7 omap3 nokia rx51 nokia_rx51 - Pali Roh?r <[email protected]> +Active arm armv7 omap3 technexion tao3530 tao3530 - Tapani Utriainen <[email protected]> Active arm armv7 omap3 technexion twister twister - Stefano Babic <[email protected]> Active arm armv7 omap3 teejet mt_ventoux mt_ventoux - Stefano Babic <[email protected]> Active arm armv7 omap3 ti am3517crane am3517_crane - Nagendra T S <[email protected]>
include/configs/tao3530.h new file +310 -0
310 lines not on this page · raw message
Signature · 1 line
1.8.4.3
PATCH 2/5 arm: omap3: Add SPL support to tao3530
Add SPL support for the Technexion TAO3530 SOM to replace x-loader. Tested with the Thunder baseboard. Currently this is only tested with the TAO3530 SOM revision (Ax/Bx).
Tested by booting via MMC and NAND.
--- board/technexion/tao3530/tao3530.c | 27 +++++++++++++++- include/configs/tao3530.h | 64 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-)
board/technexion/tao3530/tao3530.c +26 -1
@@ -67,6 +67,31 @@ out:return ret; } +#ifdef CONFIG_SPL_BUILD +/* +* Routine: get_board_mem_timings +* Description: If we use SPL then there is no x-loader nor config header +* so we have to setup the DDR timings ourself on both banks. +*/ +void get_board_mem_timings (struct board_sdrc_timings *timings) +{ +if (tao3530_revision () <3 ) { +/* 256MB / Bank */ + timings->mcfg =MCFG (256 <<20 ,14 );/* RAS-width 14 */ + timings->ctrla =HYNIX_V_ACTIMA_165 ; + timings->ctrlb =HYNIX_V_ACTIMB_165 ; + }else { +/* 128MB / Bank */ + timings->mcfg =MCFG (128 <<20 ,13 );/* RAS-width 13 */ + timings->ctrla =MICRON_V_ACTIMA_165 ; + timings->ctrlb =MICRON_V_ACTIMB_165 ; + } + + timings->mr =MICRON_V_MR_165 ; + timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; +} +#endif +/* * Routine: board_init * Description: Early hardware init.
@@ -134,7 +159,7 @@ void set_muxconf_regs(void)MUX_TAO3530 (); } -#ifdef CONFIG_GENERIC_MMC +#if defined(CONFIG_GENERIC_MMC ) && !defined(CONFIG_SPL_BUILD )int board_mmc_init (bd_t *bis) {omap_mmc_init (0 ,0 ,0 ,-1 ,-1 );
include/configs/tao3530.h +64 -0
74 lines not on this page · raw message
Signature · 1 line
1.8.4.3
PATCH 2/5 arm: omap3: Add SPL support to tao3530
SPL works also on TAO-3530 rev Cx (using mmc and Tsunami baseboard).
Quoted 140 lines · On Tue, 12 Nov 2013 13:15:00 +0100 Stefan Roese <[email protected]> wrote:
Add SPL support for the Technexion TAO3530 SOM to replace x-loader. Tested with the Thunder baseboard. Currently this is only tested with the TAO3530 SOM revision (Ax/Bx).
Tested by booting via MMC and NAND.
Signed-off-by Stefan Roese <[email protected]>Cc Tapani Utriainen <[email protected]>Cc Thorsten Eisbein <[email protected]>Cc Tom Rini <[email protected]>--- board/technexion/tao3530/tao3530.c | 27 +++++++++++++++- include/configs/tao3530.h | 64 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-)board/technexion/tao3530/tao3530.c +26
-1@@ -67,6 +67,31 @@ out:return ret; } +#ifdef CONFIG_SPL_BUILD +/* +* Routine: get_board_mem_timings +* Description: If we use SPL then there is no x-loader nor config header +* so we have to setup the DDR timings ourself on both banks. +*/ +void get_board_mem_timings (struct board_sdrc_timings *timings) +{ +if (tao3530_revision () <3 ) { +/* 256MB / Bank */ + timings->mcfg =MCFG (256 <<20 ,14 );/* RAS-width 14 */ + timings->ctrla =HYNIX_V_ACTIMA_165 ; + timings->ctrlb =HYNIX_V_ACTIMB_165 ; + }else { +/* 128MB / Bank */ + timings->mcfg =MCFG (128 <<20 ,13 );/* RAS-width 13 */ + timings->ctrla =MICRON_V_ACTIMA_165 ; + timings->ctrlb =MICRON_V_ACTIMB_165 ; + } + + timings->mr =MICRON_V_MR_165 ; + timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; +} +#endif +/* * Routine: board_init * Description: Early hardware init. @@ -134,7 +159,7 @@ void set_muxconf_regs(void)MUX_TAO3530 (); } -#ifdef CONFIG_GENERIC_MMC +#if defined(CONFIG_GENERIC_MMC ) && !defined(CONFIG_SPL_BUILD )int board_mmc_init (bd_t *bis) {omap_mmc_init (0 ,0 ,0 ,-1 ,-1 );include/configs/tao3530.h +64
-0@@ -5,6 +5,8 @@* Edward Lin <[email protected]> * Tapani Utriainen <[email protected]> * +* Copyright (C) 2013 Stefan Roese <[email protected]> +* * SPDX-License-Identifier: GPL-2.0+ */ @@ -307,4 +309,66 @@#define CONFIG_USB_STORAGE #define CONGIG_CMD_STORAGE +/* Defines for SPL */ +#define CONFIG_SPL +#define CONFIG_SPL_FRAMEWORK +#define CONFIG_SPL_NAND_SIMPLE + +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300/* address 0x60000 */ +#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200/* 256 KB */ +#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1 +#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" + +#define CONFIG_SPL_BOARD_INIT +#define CONFIG_SPL_LIBCOMMON_SUPPORT +#define CONFIG_SPL_LIBDISK_SUPPORT +#define CONFIG_SPL_I2C_SUPPORT +#define CONFIG_SPL_LIBGENERIC_SUPPORT +#define CONFIG_SPL_MMC_SUPPORT +#define CONFIG_SPL_FAT_SUPPORT +#define CONFIG_SPL_SERIAL_SUPPORT +#define CONFIG_SPL_NAND_SUPPORT +#define CONFIG_SPL_NAND_BASE +#define CONFIG_SPL_NAND_DRIVERS +#define CONFIG_SPL_NAND_ECC +#define CONFIG_SPL_GPIO_SUPPORT +#define CONFIG_SPL_POWER_SUPPORT +#define CONFIG_SPL_OMAP3_ID_NAND +#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" + +/* NAND boot config */ +#define CONFIG_SYS_NAND_5_ADDR_CYCLE +#define CONFIG_SYS_NAND_PAGE_COUNT 64 +#define CONFIG_SYS_NAND_PAGE_SIZE 2048 +#define CONFIG_SYS_NAND_OOBSIZE 64 +#define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) +#define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS +/* +* Use the ECC/OOB layout from omap_gpmc.h that matches your chip: +* SP vs LP, 8bit vs 16bit: GPMC_NAND_HW_ECC_LAYOUT +*/ +#define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \ + 10, 11, 12, 13 } +#define CONFIG_SYS_NAND_ECCSIZE 512 +#define CONFIG_SYS_NAND_ECCBYTES 3 + +#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE +#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 + +#define CONFIG_SPL_TEXT_BASE 0x40200800 +#define CONFIG_SPL_MAX_SIZE (54 * 1024)/* 8 KB for stack */ +#define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK + +/* +* Use 0x80008000 as TEXT_BASE here for compatibility reasons with the +* older x-loader implementations. And move the BSS area so that it +* doesn't overlap with TEXT_BASE. +*/ +#define CONFIG_SYS_TEXT_BASE 0x80008000 +#define CONFIG_SPL_BSS_START_ADDR 0x80100000 +#define CONFIG_SPL_BSS_MAX_SIZE 0x80000/* 512 KB */ + +#define CONFIG_SYS_SPL_MALLOC_START 0x80208000 +#define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 +#endif /* __CONFIG_H */
PATCH 2/5 arm: omap3: Add SPL support to tao3530
In reply to Stefan RoeseQuoted 10 lines · Stefan Roese
Add SPL support for the Technexion TAO3530 SOM to replace x-loader. Tested with the Thunder baseboard. Currently this is only tested with the TAO3530 SOM revision (Ax/Bx).
Tested by booting via MMC and NAND.
Signed-off-by Stefan Roese <[email protected]>Cc Tapani Utriainen <[email protected]>Cc Thorsten Eisbein <[email protected]>Cc Tom Rini <[email protected]>
Do we no longer have stack issues that this exposed?
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131114/87dd9160/attachment.pgp>
PATCH 2/5 arm: omap3: Add SPL support to tao3530
Hi Tom,
Quoted 6 lines · Tom Rini
Quoted 4 lines · Stefan Roese
Add SPL support for the Technexion TAO3530 SOM to replace x-loader. Tested with the Thunder baseboard. Currently this is only tested with the TAO3530 SOM revision (Ax/Bx).
Quoted 8 lines
Quoted 6 lines
Tested by booting via MMC and NAND.
Signed-off-by Stefan Roese <[email protected]>Cc Tapani Utriainen <[email protected]>Cc Thorsten Eisbein <[email protected]>Cc Tom Rini <[email protected]>Do we no longer have stack issues that this exposed?
No. Work fine without any further patches applied. I have to admit, that I have no idea why this problem with the re-assignment of r8 seems to be solved. Some for CM_T35 btw.
Thanks,
Stefan
PATCH 2/5 arm: omap3: Add SPL support to tao3530
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 16 lines · Stefan Roese
Hi Tom,
Quoted 13 lines · Tom Rini
Quoted 10 lines · Stefan Roese
Add SPL support for the Technexion TAO3530 SOM to replace x-loader. Tested with the Thunder baseboard. Currently this is only tested with the TAO3530 SOM revision (Ax/Bx).
Tested by booting via MMC and NAND.
Signed-off-by Stefan Roese <[email protected]> Cc: Tapani Utriainen<[email protected]> Cc: Thorsten Eisbein
<[email protected]> Cc: Tom Rini
<[email protected]>
Quoted 5 lines
Quoted 1 line
Do we no longer have stack issues that this exposed?
No. Work fine without any further patches applied. I have to admit, that I have no idea why this problem with the re-assignment of r8 seems to be solved. Some for
CM_T35btw.
OK, can you please repost any other older patches from then that need to be applied still? I think I see them all, but I suspect they need Makefile changes anyhow.
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIbBAEBAgAGBQJShROZAAoJENk4IS6UOR1Ww+QP9AtCXJcZSVT/7FUzb1RWt+9O 6HfMg7Nu+QPG7xsqh8+Isc7JX+yO0iOtkm273978p6XTUwxq8mGqsaaRioN1xJZ1 xewvTo0B0I2u4nR2DqH1ZQI5CaTrVKWc4Xf/WP7rGOEsGnJCDldkK4aTzCTGA+/y LjZe23D6m0RxJKWuYY+0jC8h21PkpYFD9k+khanNMJ1DlXk4ALh+ExZAkj9iay0H XWJ4RBEL8FOvaAkP8K+zj6en/+dpSHvqOLtvaRS09jQSIeKPQyy1mKOrFHUs4GDN 8IDIxfAq07g/jc52CVEEcFAnCwrmgCKjj9eeVLZRXCCGIo6C3cg0CanahFCiVOAI eXnCi0IY1YQK7I2kNTBxU5crunywL0t59rGNgF5d5OC9qgqnndE4YFUGUYoyMS7a FNxIMIKzv2GQM5vdoVRS5GcQI8KLfIlygPl4M1Xmx3gSKiUU3suxn5MU4MQ7iFZp 2H532WTtZD+rfWZX7Idyb+S/7zpODWsuQBQ4cY8wpmllHntedotohoFTfgQYYu6x Ex1ca9fqusX1Lmmw7a+jEH5ekuGIiKqIeKmy45EKNEdwftf1jz/Mnf98olJ6tU27 VCRO1ICD5IWzEWCZPJ9TdW7DbCPPtmpnN8wr6UlDUl8LxRRfFLKlgH43zix2y6f5 kgp2Spqhm7ILK3MYVFI=
=/cZe
-----END PGP SIGNATURE-----
PATCH 2/5 arm: omap3: Add SPL support to tao3530
Quoted 13 lines · Tom Rini
Quoted 13 lines
Quoted 12 lines
Quoted 10 lines
Add SPL support for the Technexion TAO3530 SOM to replace x-loader. Tested with the Thunder baseboard. Currently this is only tested with the TAO3530 SOM revision (Ax/Bx).
Tested by booting via MMC and NAND.
Signed-off-by Stefan Roese <[email protected]> Cc: Tapani Utriainen<[email protected]> Cc: Thorsten Eisbein
<[email protected]> Cc: Tom Rini
<[email protected]>Do we no longer have stack issues that this exposed?
Quoted 7 lines
Quoted 3 lines
No. Work fine without any further patches applied. I have to admit, that I have no idea why this problem with the re-assignment of r8 seems to be solved. Some for
CM_T35btw.OK, can you please repost any other older patches from then that need to be applied still? I think I see them all, but I suspect they need
Makefilechanges anyhow.
Yes, they definitely need some massaging. I'll repost the CM_T35 related patches tomorrow as well.
Thanks,
Stefan
PATCH 3/5 arm: omap3: Remove bootargs mem_size handling
In reply to Stefan RoeseThe memory size is autodetected and is passed to the Linux kernel either via ATAGs or device-tree (dtb). So there is no need to pass it via the bootargs.
--- board/technexion/tao3530/tao3530.c | 12 ------------ include/configs/tao3530.h | 3 --- 2 files changed, 15 deletions(-)
board/technexion/tao3530/tao3530.c +0 -12
@@ -133,18 +133,6 @@ int misc_init_r(void)dieid_num_r (); -/* Set memory size environment variable, depending on revision */ -switch (tao3530_revision ()) { -case 0x2 :/* Rev C1 -- 256MB */ -setenv ("mem_size" ,"mem=256M" ); -break ; -case 0x3 :/* Rev A2/B2 -- 128MB */ -setenv ("mem_size" ,"mem=128M" ); -break ; -default : -printf ("Warning: Unknown TAO3530 rev, setting mem=128M\n" ); - } -return 0 ; }
include/configs/tao3530.h +0 -3
@@ -150,21 +150,18 @@"video_mode=omapdss.def_disp=lcd vram=6M omapfb.vram=0:2M,1:2M,2:2M\0" \"lcd_mode=omapfb.mode=lcd:800x480 at 60 \0" \"extra_options= \0" \ -"mem_size=mem=128M \0" \"mmcdev=0\0" \"mmcroot=/dev/mmcblk0p2 rw\0" \"mmcrootfstype=ext3 rootwait\0" \"nandroot=ubi0:rootfs ubi.mtd=4\0" \"nandrootfstype=ubifs\0" \"mmcargs=setenv bootargs console=${console} " \ -"${mem_size} " \"mpurate=${mpurate} " \"${video_mode} " \"root=${mmcroot} " \"rootfstype=${mmcrootfstype} " \"${extra_options}\0" \"nandargs=setenv bootargs console=${console} " \ -"${mem_size} " \"mpurate=${mpurate} " \"${video_mode} " \"${network_setting} " \
Signature · 1 line
1.8.4.3
PATCH 4/5 arm: omap3: Add board revision output to tao3530
In reply to Stefan Roese--- board/technexion/tao3530/tao3530.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
board/technexion/tao3530/tao3530.c +17 -0
@@ -131,6 +131,23 @@ int misc_init_r(void)writel (GPIO31 |GPIO30 |GPIO29 |GPIO28 |GPIO22 |GPIO21 |GPIO15 |GPIO14 |GPIO13 |GPIO12 , &gpio5_base->setdataout); +switch (tao3530_revision ()) { +case 0 : +printf ("TAO-3530 REV Reserve 1\n" ); +break ; +case 1 : +printf ("TAO-3530 REV Reserve 2\n" ); +break ; +case 2 : +printf ("TAO-3530 REV Cx\n" ); +break ; +case 3 : +printf ("TAO-3530 REV Ax/Bx\n" ); +break ; +default : +printf ("Unknown board revision\n" ); + } +dieid_num_r ();return 0 ;
Signature · 1 line
1.8.4.3
PATCH 5/5 arm: omap3: Add HEAD acoustics (HA) board variant omap3_ha to tao3530
In reply to Stefan RoeseThe Head acoustics (HA) baseboard used the Technexion TAO3530 SOM and has only some minor differences to the Technexion Thunder baseboard. This patch adds support for this HA baseboard / TAO3530 as the "omap3_ha" build target.
--- board/technexion/tao3530/tao3530.c | 15 +++++++++++++++ board/technexion/tao3530/tao3530.h | 7 +++++++ boards.cfg | 1 + 3 files changed, 23 insertions(+)
board/technexion/tao3530/tao3530.c +15 -0
@@ -75,6 +75,18 @@ out:*/ void get_board_mem_timings (struct board_sdrc_timings *timings) { +#if defined(CONFIG_SYS_BOARD_OMAP3_HA ) +/* +* Switch baseboard LED to red upon power-on +*/ +MUX_OMAP3_HA (); + +/* Request a gpio before using it */ +gpio_request (111 ,"" ); +/* Sets the gpio as output and its value to 1, switch LED to red */ +gpio_direction_output (111 ,1 ); +#endif +if (tao3530_revision () <3 ) {/* 256MB / Bank */ timings->mcfg =MCFG (256 <<20 ,14 );/* RAS-width 14 */
@@ -162,6 +174,9 @@ int misc_init_r(void)void set_muxconf_regs (void ) {MUX_TAO3530 (); +#if defined(CONFIG_SYS_BOARD_OMAP3_HA ) +MUX_OMAP3_HA (); +#endif }#if defined(CONFIG_GENERIC_MMC ) && !defined(CONFIG_SPL_BUILD )
board/technexion/tao3530/tao3530.h +7 -0
@@ -9,7 +9,11 @@const omap3_sysinfo sysinfo = {DDR_STACKED , +#if defined(CONFIG_SYS_BOARD_OMAP3_HA) +"HEAD acoustics OMAP3-HA\n" , +#else"OMAP3 TAO-3530 board" , +#endif"NAND" , };
@@ -361,4 +365,7 @@ const omap3_sysinfo sysinfo = { MUX_VAL(CP(SDRC_CKE0), (IDIS | PTU | EN | M0)) \ MUX_VAL(CP(SDRC_CKE1), (IDIS | PTU | EN | M0)) +#define MUX_OMAP3_HA () \ + MUX_VAL(CP(CAM_XCLKB), (IDIS | PTD | DIS | M4))/* GPIO_111 */ +#endif
boards.cfg +1 -0
@@ -325,6 +325,7 @@ Active arm armv7 omap3 logicpd zoom1 Active arm armv7 omap3 logicpd zoom2 omap3_zoom2 - Tom Rix <[email protected]> Active arm armv7 omap3 matrix_vision mvblx omap3_mvblx - Michael Jones <[email protected]> Active arm armv7 omap3 nokia rx51 nokia_rx51 - Pali Roh?r <[email protected]> +Active arm armv7 omap3 technexion tao3530 omap3_ha tao3530:SYS_BOARD_OMAP3_HA Stefan Roese <[email protected]> Active arm armv7 omap3 technexion tao3530 tao3530 - Tapani Utriainen <[email protected]> Active arm armv7 omap3 technexion twister twister - Stefano Babic <[email protected]> Active arm armv7 omap3 teejet mt_ventoux mt_ventoux - Stefano Babic <[email protected]>
Signature · 1 line
1.8.4.3
PATCH 1/5 arm, omap3: Add support for TechNexion modules
In reply to Stefan RoeseQuoted 8 lines · Stefan Roese
From: Tapani Utriainen <[email protected]>
Add support for TechNexion TAO3530 SoM
This patch has been posted quite a long time ago. I ported it to the latest mainline U-Boot version. With some additional cleanup and enhancements.
Quoted 5 lines
Signed-off-by Tapani Utriainen <[email protected]>CC Sandeep Paulraj <[email protected]>Signed-off-by Stefan Roese <[email protected]>Cc Thorsten Eisbein <[email protected]>Cc Tom Rini <[email protected]>
Sorry for taking so long to get back to this, and I was going to just fixup a few things, until I got farther into the series:
arch/arm/include/asm/mach-types.h extern unsigned int __machine_arch_type; · line 476
Quoted 12 lines
arch/arm/include/asm/mach-types.h +1
-0@@ -470,6 +470,7 @@ extern unsigned int __machine_arch_type;#define MACH_TYPE_EUKREA_CPUIMX35SD 2821#define MACH_TYPE_EUKREA_CPUIMX51SD 2822#define MACH_TYPE_EUKREA_CPUIMX51 2823 +#define MACH_TYPE_OMAP3_TAO3530 2836#define MACH_TYPE_SMDKC210 2838#define MACH_TYPE_OMAP3_BRAILLO 2839#define MACH_TYPE_SPYPLUG 2840
Put this into the config file until we re-sync mach-types.h, IF you need to suppot non-DT booting kernels.
board/technexion/tao3530/Makefile
Quoted 5 lines
board/technexion/tao3530/Makefile new file +0
-0
This needs to be re-written now.
board/technexion/tao3530/Makefile
Quoted 1 line
board/technexion/tao3530/Makefile new file +1
-0+ printf("Error? GPIO 65 not available\n");
Here and elsewhere, printf without formatting chars should be puts.
board/technexion/tao3530/Makefile
Quoted 11 lines
board/technexion/tao3530/Makefile new file +11
-0+ /* Set memory size environment variable, depending on revision */ + switch (tao3530_revision()) { + case 0x2: /* Rev C1 -- 256MB */ + setenv("mem_size", "mem=256M"); + break; + case 0x3: /* Rev A2/B2 -- 128MB */ + setenv("mem_size", "mem=128M"); + break; + default: + printf("Warning: Unknown TAO3530 rev, setting mem=128M\n"); + }
This hunk gets dropped in a later patch, just fixup/squash it in. The other patches that do similar things too.
board/technexion/tao3530/Makefile
Quoted 4 lines
board/technexion/tao3530/Makefile new file +4
-0+#define CONFIG_ARMV7 /* This is an ARM V7 CPU core */ +#define CONFIG_OMAP34XX /* which is a 34XX */ +#define CONFIG_OMAP3430 /* which is in a 3430 */ +#define CONFIG_OMAP3_TAO3530 /* working with TAO-3530 */
Unused.
Quoted 1 line
+#undef
CONFIG_USE_IRQ/* no support for IRQs */
... so don't #undef it please, it's never being set.
board/technexion/tao3530/Makefile
Quoted 2 lines
board/technexion/tao3530/Makefile new file +2
-0+#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\ + 115200}
Please use the default table then.
Quoted 1 line
+#define
CONFIG_SYS_PROMPT_HUSH_PS2"> "
No need to set this.
board/technexion/tao3530/Makefile
Quoted 2 lines
board/technexion/tao3530/Makefile new file +2
-0+#define CONFIG_AUTO_COMPLETE +#define CONFIG_AUTOCOMPLETE
One of these is needed, not both.
board/technexion/tao3530/Makefile
Quoted 4 lines
board/technexion/tao3530/Makefile new file +4
-0+#define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0) /* memtest */ + /* works on */ +#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \ + 0x01F00000) /* 31MB */
Please see doc/README.memory-test
And please compare with omap3_beagle.h and similar, I think there's a few other style things that have changed since when this file was first done. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131203/3f90e7be/attachment.pgp>