summaryrefslogtreecommitdiff
path: root/board/davinci
diff options
context:
space:
mode:
authorManjunath Hadli <manjunath.hadli@ti.com>2011-10-10 21:06:38 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-12-06 23:59:40 +0100
commit754f8cb68978efd31ddea73fa731e4e511bdd873 (patch)
treec554fa5fedd7064a78d988c5556b963be3031eb2 /board/davinci
parente8f473548a6a0a7321fb4e05bcc77337d5eca710 (diff)
downloadu-boot-imx-754f8cb68978efd31ddea73fa731e4e511bdd873.zip
u-boot-imx-754f8cb68978efd31ddea73fa731e4e511bdd873.tar.gz
u-boot-imx-754f8cb68978efd31ddea73fa731e4e511bdd873.tar.bz2
da850evm: pass board revision info to kernel
there are two boards based on da850 SOC - OMAP-L138 and AM18x. In order to differentiate between these two boards, revision id is passed to kernel via second byte of ATAG_REVISION. Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com> Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Diffstat (limited to 'board/davinci')
-rw-r--r--board/davinci/da8xxevm/da850evm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
index e827256..9c0eade 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -147,6 +147,8 @@ static const struct lpsc_resource lpsc[] = {
#define CONFIG_DA850_EVM_MAX_CPU_CLK 300000000
#endif
+#define REV_AM18X_EVM 0x100
+
/*
* get_board_rev() - setup to pass kernel board revision information
* Returns:
@@ -172,7 +174,9 @@ u32 get_board_rev(void)
rev = 2;
else if (maxcpuclk >= 372000000)
rev = 1;
-
+#ifdef CONFIG_DA850_AM18X_EVM
+ rev |= REV_AM18X_EVM;
+#endif
return rev;
}