diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-03-15 14:59:20 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-03-15 15:01:11 +0100 |
commit | 9caffa8bf7a2f1fc06b70eb0015c4f089a1173af (patch) | |
tree | ca143d5b23770d923c407fadaf489e671832ff26 /firmware/target/arm/imx233/system-imx233.c | |
parent | a4fd5bf7cb3d8d071c5fb9d45255c8f85e517b7a (diff) | |
download | rockbox-9caffa8bf7a2f1fc06b70eb0015c4f089a1173af.tar.gz rockbox-9caffa8bf7a2f1fc06b70eb0015c4f089a1173af.zip |
imx233/fuze+: rework i2c and fmradio_i2c init
Only enable fmradio_i2c once with _init() called from system.
Move actual i2c init to system for consistency.
Move tuner power pin setup to power instead of fmradio.
Change-Id: Idb56bfba5803f71b5d049f174c48d2afb969a6ea
Diffstat (limited to 'firmware/target/arm/imx233/system-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c index 36b67674c2..63bd91998d 100644 --- a/firmware/target/arm/imx233/system-imx233.c +++ b/firmware/target/arm/imx233/system-imx233.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "lcd.h" | 34 | #include "lcd.h" |
35 | #include "backlight-target.h" | 35 | #include "backlight-target.h" |
36 | #include "button.h" | 36 | #include "button.h" |
37 | #include "fmradio_i2c.h" | ||
37 | 38 | ||
38 | #define default_interrupt(name) \ | 39 | #define default_interrupt(name) \ |
39 | extern __attribute__((weak, alias("UIRQ"))) void name(void) | 40 | extern __attribute__((weak, alias("UIRQ"))) void name(void) |
@@ -213,6 +214,10 @@ void system_init(void) | |||
213 | imx233_dma_init(); | 214 | imx233_dma_init(); |
214 | imx233_ssp_init(); | 215 | imx233_ssp_init(); |
215 | imx233_dcp_init(); | 216 | imx233_dcp_init(); |
217 | imx233_i2c_init(); | ||
218 | #if defined(SANSA_FUZEPLUS) && !defined(BOOTLOADER) | ||
219 | fmradio_i2c_init(); | ||
220 | #endif | ||
216 | } | 221 | } |
217 | 222 | ||
218 | bool imx233_us_elapsed(uint32_t ref, unsigned us_delay) | 223 | bool imx233_us_elapsed(uint32_t ref, unsigned us_delay) |