]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
da850evm: pass board revision info to kernel
authorManjunath Hadli <manjunath.hadli@ti.com>
Mon, 10 Oct 2011 21:06:38 +0000 (21:06 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 6 Dec 2011 22:59:40 +0000 (23:59 +0100)
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>
board/davinci/da8xxevm/da850evm.c
include/configs/da850_am18xxevm.h

index e8272565c40dabe5252c119f9b2e2b192de45936..9c0eadea900c0150aa9d2d49a6f1efe3eee42c0e 100644 (file)
@@ -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;
 }
 
index 2885ecea4eee8d30716bb8797e1fa3a30e7a7ead..9b7bf1e792d034c96ae8c83069461fcdf5892cc3 100644 (file)
@@ -44,7 +44,7 @@
 #define CONFIG_SYS_HZ                  1000
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #define CONFIG_SYS_TEXT_BASE           0xc1080000
-
+#define CONFIG_DA850_AM18X_EVM
 /*
  * Memory Info
  */