summaryrefslogtreecommitdiff
path: root/board/freescale/mx51evk/mx51evk.c
diff options
context:
space:
mode:
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-29 11:12:34 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-29 11:12:34 +0200
commit8f0732ac3dc3bdbbcada313dc4b4b38d5d2c376a (patch)
treeb20bde0a30aa7902bdfc43a2097acc6f2f58cf5d /board/freescale/mx51evk/mx51evk.c
parentfa651cce4f89f6d33f1ea301a6f1f781758c7dfd (diff)
parent7577a4b3c27af9ad21a4aedf732754ae96225448 (diff)
downloadu-boot-imx-8f0732ac3dc3bdbbcada313dc4b4b38d5d2c376a.zip
u-boot-imx-8f0732ac3dc3bdbbcada313dc4b4b38d5d2c376a.tar.gz
u-boot-imx-8f0732ac3dc3bdbbcada313dc4b4b38d5d2c376a.tar.bz2
Merge remote-tracking branch 'u-boot-imx/master'
Diffstat (limited to 'board/freescale/mx51evk/mx51evk.c')
-rw-r--r--board/freescale/mx51evk/mx51evk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index 7a0682a..a94701c 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -60,6 +60,14 @@ int dram_init(void)
return 0;
}
+u32 get_board_rev(void)
+{
+ u32 rev = get_cpu_rev();
+ if (!gpio_get_value(IMX_GPIO_NR(1, 22)))
+ rev |= BOARD_REV_2_0 << BOARD_VER_OFFSET;
+ return rev;
+}
+
static void setup_iomux_uart(void)
{
unsigned int pad = PAD_CTL_HYS_ENABLE | PAD_CTL_PKE_ENABLE |