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) create_thread(rmi_thread, rmi_stack, sizeof(rmi_stack), 0, rmi_thread_name IF_PRIO(, PRIORITY_USER_INTERFACE) IF_COP(, CPU)); /* enable interrupt */ + imx233_set_pin_function(0, 27, PINCTRL_FUNCTION_GPIO); + imx233_enable_gpio_output(0, 27, false); imx233_setup_pin_irq(0, 27, true, true, false, &rmi_attn_cb); + /* Volume down */ + imx233_set_pin_function(1, 30, PINCTRL_FUNCTION_GPIO); + imx233_enable_gpio_output(1, 30, false); } #else void button_init_device(void) { - } 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) imx233_set_gpio_output(0, 8, !on); /* disable pull ups when not needed to save power */ imx233_ssp_setup_ssp1_sd_mmc_pins(on, 4, PINCTRL_DRIVE_4mA, false); - /* It also setups pin B1P30, unknown purpose */ - imx233_set_pin_function(1, 30, PINCTRL_FUNCTION_GPIO); - imx233_enable_gpio_output(1, 30, false); #endif }