diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | 6 | ||||
-rw-r--r-- | firmware/target/arm/imx233/sd-imx233.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c index b61ce68df0..26e5a0a102 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | |||
@@ -324,14 +324,18 @@ void button_init_device(void) | |||
324 | create_thread(rmi_thread, rmi_stack, sizeof(rmi_stack), 0, | 324 | create_thread(rmi_thread, rmi_stack, sizeof(rmi_stack), 0, |
325 | rmi_thread_name IF_PRIO(, PRIORITY_USER_INTERFACE) IF_COP(, CPU)); | 325 | rmi_thread_name IF_PRIO(, PRIORITY_USER_INTERFACE) IF_COP(, CPU)); |
326 | /* enable interrupt */ | 326 | /* enable interrupt */ |
327 | imx233_set_pin_function(0, 27, PINCTRL_FUNCTION_GPIO); | ||
328 | imx233_enable_gpio_output(0, 27, false); | ||
327 | imx233_setup_pin_irq(0, 27, true, true, false, &rmi_attn_cb); | 329 | imx233_setup_pin_irq(0, 27, true, true, false, &rmi_attn_cb); |
330 | /* Volume down */ | ||
331 | imx233_set_pin_function(1, 30, PINCTRL_FUNCTION_GPIO); | ||
332 | imx233_enable_gpio_output(1, 30, false); | ||
328 | } | 333 | } |
329 | 334 | ||
330 | #else | 335 | #else |
331 | 336 | ||
332 | void button_init_device(void) | 337 | void button_init_device(void) |
333 | { | 338 | { |
334 | |||
335 | } | 339 | } |
336 | 340 | ||
337 | int touchpad_read_device(void) | 341 | int touchpad_read_device(void) |
diff --git a/firmware/target/arm/imx233/sd-imx233.c b/firmware/target/arm/imx233/sd-imx233.c index b42d92dcef..b68950b9e8 100644 --- a/firmware/target/arm/imx233/sd-imx233.c +++ b/firmware/target/arm/imx233/sd-imx233.c | |||
@@ -69,9 +69,6 @@ void sd_power(bool on) | |||
69 | imx233_set_gpio_output(0, 8, !on); | 69 | imx233_set_gpio_output(0, 8, !on); |
70 | /* disable pull ups when not needed to save power */ | 70 | /* disable pull ups when not needed to save power */ |
71 | imx233_ssp_setup_ssp1_sd_mmc_pins(on, 4, PINCTRL_DRIVE_4mA, false); | 71 | imx233_ssp_setup_ssp1_sd_mmc_pins(on, 4, PINCTRL_DRIVE_4mA, false); |
72 | /* It also setups pin B1P30, unknown purpose */ | ||
73 | imx233_set_pin_function(1, 30, PINCTRL_FUNCTION_GPIO); | ||
74 | imx233_enable_gpio_output(1, 30, false); | ||
75 | #endif | 72 | #endif |
76 | } | 73 | } |
77 | 74 | ||