summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/emi-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-07-07 17:29:14 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-07-07 17:36:20 +0200
commit659febc749627a92c59f2d765da59eb9c995c50d (patch)
tree5a15f6f7641f11985b7e55cad5ee7db490b8532b /firmware/target/arm/imx233/emi-imx233.h
parentaf4e408555659f42db5b8c9a1d6a68143b2328da (diff)
downloadrockbox-659febc749627a92c59f2d765da59eb9c995c50d.tar.gz
rockbox-659febc749627a92c59f2d765da59eb9c995c50d.tar.bz2
rockbox-659febc749627a92c59f2d765da59eb9c995c50d.zip
imx233: add emi debug info
Change-Id: I33317ae26b70c825d4c5e3aaac364da5e0dc06c2
Diffstat (limited to 'firmware/target/arm/imx233/emi-imx233.h')
-rw-r--r--firmware/target/arm/imx233/emi-imx233.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/emi-imx233.h b/firmware/target/arm/imx233/emi-imx233.h
index cab2e5e8c0..71aae3e884 100644
--- a/firmware/target/arm/imx233/emi-imx233.h
+++ b/firmware/target/arm/imx233/emi-imx233.h
@@ -30,6 +30,16 @@
#define HW_DRAM_CTLxx(xx) (*(&HW_DRAM_CTL00 + (xx)))
+struct imx233_emi_info_t
+{
+ int cas; // 1/2 cycle unit
+ int rows;
+ int columns;
+ int banks;
+ int chips;
+ int size;
+};
+
/**
* Absolute maximum EMI speed: 151.58 MHz (mDDR), 130.91 MHz (DDR)
* Intermediate EMI speeds: 130.91 MHz, 120.00 MHz, 64 MHz, 24 MHz
@@ -41,5 +51,6 @@
#define IMX233_EMIFREQ_24_MHz 24000
void imx233_emi_set_frequency(unsigned long freq);
+struct imx233_emi_info_t imx233_emi_get_info(void);
#endif /* __EMI_IMX233_H__ */