summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sansa-fuzeplus/power-fuzeplus.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-03-15 14:59:20 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-03-15 15:01:11 +0100
commit9caffa8bf7a2f1fc06b70eb0015c4f089a1173af (patch)
treeca143d5b23770d923c407fadaf489e671832ff26 /firmware/target/arm/imx233/sansa-fuzeplus/power-fuzeplus.c
parenta4fd5bf7cb3d8d071c5fb9d45255c8f85e517b7a (diff)
downloadrockbox-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/sansa-fuzeplus/power-fuzeplus.c')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/power-fuzeplus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/power-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/power-fuzeplus.c
index 63ca90d47f..71c45b0676 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/power-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/power-fuzeplus.c
@@ -32,8 +32,8 @@ bool tuner_power(bool enable)
32{ 32{
33 if(enable != tuner_enable) 33 if(enable != tuner_enable)
34 { 34 {
35 fmradio_i2c_enable(enable);
36 /* CE is B029 (active high) */ 35 /* CE is B029 (active high) */
36 imx233_set_pin_function(0, 29, PINCTRL_FUNCTION_GPIO);
37 imx233_set_pin_drive_strength(0, 29, PINCTRL_DRIVE_4mA); 37 imx233_set_pin_drive_strength(0, 29, PINCTRL_DRIVE_4mA);
38 imx233_enable_gpio_output(0, 29, enable); 38 imx233_enable_gpio_output(0, 29, enable);
39 imx233_set_gpio_output(0, 29, enable); 39 imx233_set_gpio_output(0, 29, enable);