diff options
author | Juergen Beisert <juergen@kreuzholzen.de> | 2009-10-27 19:57:35 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-28 09:44:41 +0100 |
commit | afae995ef9acd5ef6caa6ee2ba39540cf213f90c (patch) | |
tree | acf66d798440a934ffd262c3bc7a9880dbe87218 /include | |
parent | 16fe431ce75c91ec5cb6c2ed53801582c8672e2a (diff) | |
download | barebox-afae995ef9acd5ef6caa6ee2ba39540cf213f90c.tar.gz barebox-afae995ef9acd5ef6caa6ee2ba39540cf213f90c.tar.xz |
S3C24xx: Provide a generic way to detect memory size
This patch adds code to determine the current available SDRAM size. It relies
on other routines setting up the SDRAM controller, because it only read back
their settings.
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-s3c24xx/s3c24xx-generic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-arm/arch-s3c24xx/s3c24xx-generic.h b/include/asm-arm/arch-s3c24xx/s3c24xx-generic.h index 1691138279..b8abcf1d9c 100644 --- a/include/asm-arm/arch-s3c24xx/s3c24xx-generic.h +++ b/include/asm-arm/arch-s3c24xx/s3c24xx-generic.h @@ -30,3 +30,4 @@ uint32_t s3c24xx_get_fclk(void); uint32_t s3c24xx_get_hclk(void); uint32_t s3c24xx_get_pclk(void); uint32_t s3c24xx_get_uclk(void); +uint32_t s3c24x0_get_memory_size(void); |