summaryrefslogtreecommitdiff
path: root/board/ti/am43xx/board.h
diff options
context:
space:
mode:
authorFranklin S. Cooper Jr <fcooper@ti.com>2014-06-27 13:31:14 -0500
committerTom Rini <trini@ti.com>2014-07-07 19:42:34 -0400
commit2c95211167091e543e20f4f457d3d1f1f660a6d4 (patch)
tree90feb599d66ac2e077e5e4acf473cc30bda80388 /board/ti/am43xx/board.h
parentcfd6de9cf98ad1418edf96da970eac50f4fe6f0d (diff)
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 <fcooper@ti.com>
Diffstat (limited to 'board/ti/am43xx/board.h')
-rw-r--r--board/ti/am43xx/board.h11
1 files changed, 11 insertions, 0 deletions
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 <asm/arch/omap.h>
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);