mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] at91sam9: add detection of low power sdram
@ 2012-11-13 21:13 Jean-Christophe PLAGNIOL-VILLARD
  2012-11-13 21:13 ` [PATCH 2/3] usb-a9g20: add mmc spi support Jean-Christophe PLAGNIOL-VILLARD
  2012-11-13 21:13 ` [PATCH 3/3] tny-a9g20: " Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-11-13 21:13 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 arch/arm/mach-at91/include/mach/at91sam9_sdramc.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h b/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h
index 1ab61e9..971a772 100644
--- a/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h
+++ b/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h
@@ -110,6 +110,11 @@ static inline u32 at91_get_sdram_size(void)
 
 	return size;
 }
+
+static inline bool at91_is_low_power_sdram(void)
+{
+	return at91_sys_read(AT91_SDRAMC_MDR) & AT91_SDRAMC_MD_LOW_POWER_SDRAM;
+}
 #endif
 
 #endif
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-11-13 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-13 21:13 [PATCH 1/3] at91sam9: add detection of low power sdram Jean-Christophe PLAGNIOL-VILLARD
2012-11-13 21:13 ` [PATCH 2/3] usb-a9g20: add mmc spi support Jean-Christophe PLAGNIOL-VILLARD
2012-11-13 21:13 ` [PATCH 3/3] tny-a9g20: " Jean-Christophe PLAGNIOL-VILLARD

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