cm-t54: misc board fixes, convert to generic board
cover cm-t54: misc board fixes, convert to generic board
Fix MAC address data read (from EEPROM) issue and boot mode check. Convert to generic board.
Dmitry Lifshitz (3):
cm-t54: fix EEPROM read return value check
cm-t54: fix eMMC boot mode check
cm-t54: convert to generic board
board/compulab/cm_t54/cm_t54.c | 6 +++--- include/configs/cm_t54.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/3 cm-t54: fix EEPROM read return value check
Fix cl_eeprom_read_mac_addr() return value check. Fix long line codding style issue in board_init().
--- board/compulab/cm_t54/cm_t54.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
board/compulab/cm_t54/cm_t54.c +2 -2
@@ -43,7 +43,7 @@ const struct omap_sysinfo sysinfo = {*/ int board_init (void ) { - gd->bd->bi_boot_params = (CONFIG_SYS_SDRAM_BASE +0x100 );/* boot param addr */ + gd->bd->bi_boot_params = (CONFIG_SYS_SDRAM_BASE +0x100 );return 0 ; }
@@ -169,7 +169,7 @@ static int handle_mac_address(void)return 0 ; ret =cl_eeprom_read_mac_addr (enetaddr); -if (!ret || !is_valid_ether_addr (enetaddr)) +if (ret || !is_valid_ether_addr (enetaddr))generate_mac_addr (enetaddr);if (!is_valid_ether_addr (enetaddr))
Signature · 1 line
1.7.5.4
PATCH 1/3 cm-t54: fix EEPROM read return value check
Quoted 4 lines · Dmitry Lifshitz
Fix
cl_eeprom_read_mac_addr()return value check. Fix long line codding style issue inboard_init().Signed-off-by Dmitry Lifshitz <[email protected]>
Applied to u-boot-ti/master, 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/20140825/88fa1b99/attachment-0001.pgp>
PATCH 2/3 cm-t54: fix eMMC boot mode check
In reply to Dmitry LifshitzBoot from eMMC boot partition corresponds to BOOT_DEVICE_MMC2 omap_bootmode, while BOOT_DEVICE_MMC2_2 corresponds to the user data partition boot.
Fix mmc_get_env_part() boot mode check to use a correct value.
--- board/compulab/cm_t54/cm_t54.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
board/compulab/cm_t54/cm_t54.c +1 -1
@@ -89,7 +89,7 @@ uint mmc_get_env_part(struct mmc *mmc)* If booted from eMMC boot partition then force eMMC * FIRST boot partition to be env storage */ -if (bootmode ==BOOT_DEVICE_MMC2_2 ) +if (bootmode ==BOOT_DEVICE_MMC2 ) bootpart =1 ;return bootpart;
Signature · 1 line
1.7.5.4
PATCH 2/3 cm-t54: fix eMMC boot mode check
Quoted 7 lines · Dmitry Lifshitz
Boot from eMMC boot partition corresponds to
BOOT_DEVICE_MMC2omap_bootmode, whileBOOT_DEVICE_MMC2_2corresponds to the user data partition boot.Fix
mmc_get_env_part()boot mode check to use a correct value.Signed-off-by Dmitry Lifshitz <[email protected]>
Applied to u-boot-ti/master, 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/20140825/6514d10f/attachment.pgp>
PATCH 3/3 cm-t54: convert to generic board
In reply to Dmitry LifshitzUse generic board setup functions by definingCONFIG_SYS_GENERIC_BOARD.
--- include/configs/cm_t54.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
include/configs/cm_t54.h +3 -0
@@ -19,6 +19,9 @@#undef CONFIG_MISC_INIT_R#undef CONFIG_SPL_OS_BOOT +/* Enable Generic board */ +#define CONFIG_SYS_GENERIC_BOARD +/* Device Tree defines */ #define CONFIG_OF_LIBFDT #define CONFIG_OF_BOARD_SETUP
Signature · 1 line
1.7.5.4
PATCH 3/3 cm-t54: convert to generic board
Quoted 4 lines · Dmitry Lifshitz
Use generic board setup functions by defining
CONFIG_SYS_GENERIC_BOARD.Signed-off-by Dmitry Lifshitz <[email protected]>
Applied to u-boot-ti/master, 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/20140825/1f2d399b/attachment.pgp>
cover cm-t54: misc board fixes, convert to generic board
In reply to Dmitry LifshitzGentle ping...
Quoted 12 lines · Dmitry Lifshitz
Fix MAC address data read (from EEPROM) issue and boot mode check. Convert to generic board.
Dmitry Lifshitz (3):
cm-t54: fix EEPROM read return value check
cm-t54: fix eMMC boot mode check
cm-t54: convert to generic boardboard/compulab/cm_t54/cm_t54.c | 6 +++--- include/configs/cm_t54.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-)
Signature · 2 lines
Regards, Igor.