summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/emi-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-11-18 20:07:02 +0000
committerAmaury Pouly <amaury.pouly@gmail.com>2013-11-18 21:44:06 +0000
commit977a6c3ce7a2ab960590e9d997388cca2e4c29ee (patch)
tree092ef21d5f2123fee784de7d1ee719270c30c6de /firmware/target/arm/imx233/emi-imx233.c
parenta8b816ae9cc00fe216e43d9bd9276b5d8cf12b25 (diff)
downloadrockbox-977a6c3ce7a2ab960590e9d997388cca2e4c29ee.tar.gz
rockbox-977a6c3ce7a2ab960590e9d997388cca2e4c29ee.tar.bz2
rockbox-977a6c3ce7a2ab960590e9d997388cca2e4c29ee.zip
Initial commit for the Creative ZEN V
Change-Id: I3408cfdf742ea5995d5c87bf76653f436e1ec2b0
Diffstat (limited to 'firmware/target/arm/imx233/emi-imx233.c')
-rw-r--r--firmware/target/arm/imx233/emi-imx233.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/emi-imx233.c b/firmware/target/arm/imx233/emi-imx233.c
index 1ae6e22f48..259ada0e94 100644
--- a/firmware/target/arm/imx233/emi-imx233.c
+++ b/firmware/target/arm/imx233/emi-imx233.c
@@ -196,11 +196,13 @@ struct imx233_emi_info_t imx233_emi_get_info(void)
{
struct imx233_emi_info_t info;
memset(&info, 0, sizeof(info));
+#if IMX233_SUBTARGET >= 3700
info.rows = 13 - BF_RD(DRAM_CTL10, ADDR_PINS);
info.columns = 12 - BF_RD(DRAM_CTL11, COLUMN_SIZE);
info.cas = BF_RD(DRAM_CTL13, CASLAT_LIN);
info.banks = 4;
info.chips = __builtin_popcount(BF_RD(DRAM_CTL14, CS_MAP));
info.size = 2 * (1 << (info.rows + info.columns)) * info.chips * info.banks;
+#endif
return info;
} \ No newline at end of file