From 2c95211167091e543e20f4f457d3d1f1f660a6d4 Mon Sep 17 00:00:00 2001 From: "Franklin S. Cooper Jr" Date: Fri, 27 Jun 2014 13:31:14 -0500 Subject: am43xx: Update EMIF DDR3 Configuration for AM43x GP * Boot failures have been discovered due to a combination of routing issues and non optimal ddr3 timings in the EMIF * Since ddr3 timings are different after significant board layout changes different timings are required for alpha, beta and production boards. Signed-off-by: Franklin S. Cooper Jr --- board/ti/am43xx/board.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'board/ti/am43xx/board.h') diff --git a/board/ti/am43xx/board.h b/board/ti/am43xx/board.h index 017047d2d0..8e121914e3 100644 --- a/board/ti/am43xx/board.h +++ b/board/ti/am43xx/board.h @@ -15,6 +15,7 @@ #include static char *const am43xx_board_name = (char *)AM4372_BOARD_NAME_START; +static char *const am43xx_board_rev = (char *)AM4372_BOARD_VERSION_START; /* * TI AM437x EVMs define a system EEPROM that defines certain sub-fields. @@ -52,6 +53,16 @@ static inline int board_is_sk(void) return !strncmp(am43xx_board_name, "AM43__SK", HDR_NAME_LEN); } +static inline int board_is_evm_14_or_later(void) +{ + return (board_is_gpevm() && strncmp("1.4", am43xx_board_rev, 3) <= 0); +} + +static inline int board_is_evm_12_or_later(void) +{ + return (board_is_gpevm() && strncmp("1.2", am43xx_board_rev, 3) <= 0); +} + void enable_uart0_pin_mux(void); void enable_board_pin_mux(void); void enable_i2c0_pin_mux(void); -- cgit