From 899b013b6bde94d13533b2df1e986a40eb4eb038 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 3 Apr 2013 08:33:28 +0200 Subject: [PATCH 03/14] beaglebone: HACK: always return 1 for is_bone_lt This is to make the eMMC flasher work, the EEPROM hasn't been populated yet Signed-off-by: Koen Kooi --- board/ti/am335x/board.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index fdbe26c..f9e7803 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -57,7 +57,8 @@ static inline int board_is_bone(void) static inline int board_is_bone_lt(void) { - return !strncmp(header.name, "A335BNLT", HDR_NAME_LEN); + //return !strncmp(header.name, "A335BNLT", HDR_NAME_LEN); + return 1; } static inline int board_is_evm_sk(void) @@ -359,7 +360,7 @@ void s_init(void) if (board_is_evm_sk()) config_ddr(303, MT41J128MJT125_IOCTRL_VALUE, &ddr3_data, &ddr3_cmd_ctrl_data, &ddr3_emif_reg_data, 0); - else if (board_is_bone_lt()) + else if (board_is_bone_lt() && !board_is_bone()) config_ddr(400, MT41K256M16HA125E_IOCTRL_VALUE, &ddr3_beagleblack_data, &ddr3_beagleblack_cmd_ctrl_data, -- 1.8.3.1