diff options
author | Manjunath Hadli <manjunath.hadli@ti.com> | 2011-11-08 08:59:57 -0500 |
---|---|---|
committer | Sandeep Paulraj <s-paulraj@ti.com> | 2011-11-08 08:59:57 -0500 |
commit | b79df8f8f8f373b6b6aadfd11ffded4f698a760e (patch) | |
tree | 4a7bcff9579b194f6afcf5f70f21a9d6b436a9b5 /board/davinci | |
parent | 2d575e46859dd9127a9cec731ace77523e6ea2ab (diff) | |
download | u-boot-imx-b79df8f8f8f373b6b6aadfd11ffded4f698a760e.zip u-boot-imx-b79df8f8f8f373b6b6aadfd11ffded4f698a760e.tar.gz u-boot-imx-b79df8f8f8f373b6b6aadfd11ffded4f698a760e.tar.bz2 |
dm646x: pass board revision info to kernel
add a function in board file to pass board revision
info to kernel. Revision number 0 and 1 are passed in
case of DM6467 and DM6467T respectively.
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/davinci')
-rw-r--r-- | board/davinci/dm6467evm/dm6467evm.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/davinci/dm6467evm/dm6467evm.c b/board/davinci/dm6467evm/dm6467evm.c index 1a01c3c..ac82d5c 100644 --- a/board/davinci/dm6467evm/dm6467evm.c +++ b/board/davinci/dm6467evm/dm6467evm.c @@ -24,6 +24,26 @@ DECLARE_GLOBAL_DATA_PTR; +#define REV_DM6467EVM 0 +#define REV_DM6467TEVM 1 +/* + * get_board_rev() - setup to pass kernel board revision information + * Returns: + * bit[0-3] System clock frequency + * 0000b - 27 MHz + * 0001b - 33 MHz + */ +u32 get_board_rev(void) +{ + +#ifdef DAVINCI_DM6467TEVM + return REV_DM6467TEVM; +#else + return REV_DM6467EVM; +#endif + +} + int board_init(void) { gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM; |