]> git.sur5r.net Git - u-boot/commitdiff
i.MX6: mx6q_sabrelite: add CONFIG_REVISION_TAG
authorEric Nelson <eric.nelson@boundarydevices.com>
Mon, 12 Mar 2012 15:04:12 +0000 (15:04 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 27 Mar 2012 07:41:15 +0000 (09:41 +0200)
This is needed to support Freescale-supplied userspaces.

At the moment, both the IPU and VPU libraries provided by Freescale
in the "imx-lib" package contain routines which scrape the system
revision from /proc/cpuinfo. In the VPU library, this information is
used to load the proper firmware, allowing a single binary to be used
across various i.MX processors.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx6qsabrelite/mx6qsabrelite.c
include/configs/mx6qsabrelite.h

index 7fe2dc99cb0ced1471b3c1c9b3f88b0220443a75..1d09a72552f6ba0f1d284d60fd3b7be48e0080d3 100644 (file)
@@ -215,6 +215,11 @@ int board_mmc_init(bd_t *bis)
 }
 #endif
 
+u32 get_board_rev(void)
+{
+       return 0x63000 ;
+}
+
 #ifdef CONFIG_MXC_SPI
 iomux_v3_cfg_t ecspi1_pads[] = {
        /* SS1 */
index bb3a46b2f5048cea8e8dbb202f69a45d5b6094f9..a1a2267bd4dd1b998c78feb24680763e9e3b43c5 100644 (file)
@@ -33,6 +33,7 @@
 #define CONFIG_CMDLINE_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
+#define CONFIG_REVISION_TAG
 
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 2 * 1024 * 1024)