]> git.sur5r.net Git - u-boot/commitdiff
omap-common: Common omap_die_id definition
authorPaul Kocialkowski <contact@paulk.fr>
Thu, 27 Aug 2015 17:37:08 +0000 (19:37 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:17:17 +0000 (14:17 -0400)
This introduces a common definition for omap_die_id, that aims at providing a
common interface for accessing omap platform's die id bits.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv7/omap-common/utils.c
arch/arm/include/asm/omap_common.h

index df5f817baaaf7cb98d6371ced679b58082039f50..acff16bd3a028ab9d9b0b805175bd1e8045660f9 100644 (file)
@@ -41,6 +41,11 @@ void cancel_out(u32 *num, u32 *den, u32 den_limit)
        }
 }
 
+__weak void omap_die_id(unsigned int *die_id)
+{
+       die_id[0] = die_id[1] = die_id[2] = die_id[3] = 0;
+}
+
 void __weak usb_fake_mac_from_die_id(u32 *id)
 {
        uint8_t device_mac[6];
index 81f1616ec0669e1fbf222f13362bba91ffcfacca..6e0b8d75d7b8d9fe0928d2b5ad9f9d1cfd99a012 100644 (file)
@@ -612,6 +612,8 @@ void omap_smc1(u32 service, u32 val);
 void enable_edma3_clocks(void);
 void disable_edma3_clocks(void);
 
+void omap_die_id(unsigned int *die_id);
+
 /* ABB */
 #define OMAP_ABB_NOMINAL_OPP           0
 #define OMAP_ABB_FAST_OPP              1