public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/7] omap-common: Common omap_die_id definition
@ 2015-08-27 17:37 Paul Kocialkowski
  2015-08-27 17:37 ` [U-Boot] [PATCH 2/7] omap3: omap_die_id support Paul Kocialkowski
                   ` (8 more replies)
  0 siblings, 9 replies; 25+ messages in thread
From: Paul Kocialkowski @ 2015-08-27 17:37 UTC (permalink / raw)
  To: u-boot

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>
---
 arch/arm/cpu/armv7/omap-common/utils.c | 5 +++++
 arch/arm/include/asm/omap_common.h     | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/arch/arm/cpu/armv7/omap-common/utils.c b/arch/arm/cpu/armv7/omap-common/utils.c
index df5f817..acff16b 100644
--- a/arch/arm/cpu/armv7/omap-common/utils.c
+++ b/arch/arm/cpu/armv7/omap-common/utils.c
@@ -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];
diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h
index b67d4b6..b46e467 100644
--- a/arch/arm/include/asm/omap_common.h
+++ b/arch/arm/include/asm/omap_common.h
@@ -605,6 +605,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
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2015-10-22 21:19 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 17:37 [U-Boot] [PATCH 1/7] omap-common: Common omap_die_id definition Paul Kocialkowski
2015-08-27 17:37 ` [U-Boot] [PATCH 2/7] omap3: omap_die_id support Paul Kocialkowski
2015-09-04 18:14   ` Tom Rini
2015-10-22 21:18   ` [U-Boot] [U-Boot,2/7] " Tom Rini
2015-08-27 17:37 ` [U-Boot] [PATCH 3/7] omap4: " Paul Kocialkowski
2015-09-04 18:14   ` Tom Rini
2015-10-22 21:18   ` [U-Boot] [U-Boot,3/7] " Tom Rini
2015-08-27 17:37 ` [U-Boot] [PATCH 4/7] omap5: " Paul Kocialkowski
2015-09-04 18:14   ` Tom Rini
2015-10-22 21:18   ` [U-Boot] [U-Boot,4/7] " Tom Rini
2015-08-27 17:37 ` [U-Boot] [PATCH 5/7] omap-common: Common serial and usbethaddr functions based on die id Paul Kocialkowski
2015-09-04 18:14   ` Tom Rini
2015-10-22 21:19   ` [U-Boot] [U-Boot, " Tom Rini
2015-08-27 17:37 ` [U-Boot] [PATCH 6/7] omap-common: Common function to display die id, replacing omap3-specific version Paul Kocialkowski
2015-09-04 18:14   ` Tom Rini
2015-10-22 21:19   ` [U-Boot] [U-Boot, " Tom Rini
2015-08-27 17:37 ` [U-Boot] [PATCH 7/7] omap-common: Common get_board_serial function to pass serial through ATAG Paul Kocialkowski
2015-09-04 18:14   ` Tom Rini
2015-10-22 21:19   ` [U-Boot] [U-Boot, " Tom Rini
2015-09-03 13:41 ` [U-Boot] [PATCH 1/7] omap-common: Common omap_die_id definition Paul Kocialkowski
2015-09-04 18:14 ` Tom Rini
2015-09-20 10:42   ` Paul Kocialkowski
2015-09-22 13:06     ` Tom Rini
2015-09-22 17:11       ` Paul Kocialkowski
2015-10-22 21:18 ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox