omap-common: Common omap_die_id definition

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>
This commit is contained in:
Paul Kocialkowski 2015-08-27 19:37:08 +02:00 committed by Tom Rini
parent eda1dfafb3
commit 72931b15e7
2 changed files with 7 additions and 0 deletions

View 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];

View 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