forked from len0rd/rockbox
fuze+: pin B1P30 is volume down key and has no relation with SD
Change-Id: Iee93e90d3054442ae873c55c05c030ed690ccbd6
This commit is contained in:
parent
289440605a
commit
b1702a569a
2 changed files with 5 additions and 4 deletions
|
@ -324,14 +324,18 @@ void button_init_device(void)
|
||||||
create_thread(rmi_thread, rmi_stack, sizeof(rmi_stack), 0,
|
create_thread(rmi_thread, rmi_stack, sizeof(rmi_stack), 0,
|
||||||
rmi_thread_name IF_PRIO(, PRIORITY_USER_INTERFACE) IF_COP(, CPU));
|
rmi_thread_name IF_PRIO(, PRIORITY_USER_INTERFACE) IF_COP(, CPU));
|
||||||
/* enable interrupt */
|
/* 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);
|
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
|
#else
|
||||||
|
|
||||||
void button_init_device(void)
|
void button_init_device(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int touchpad_read_device(void)
|
int touchpad_read_device(void)
|
||||||
|
|
|
@ -69,9 +69,6 @@ void sd_power(bool on)
|
||||||
imx233_set_gpio_output(0, 8, !on);
|
imx233_set_gpio_output(0, 8, !on);
|
||||||
/* disable pull ups when not needed to save power */
|
/* disable pull ups when not needed to save power */
|
||||||
imx233_ssp_setup_ssp1_sd_mmc_pins(on, 4, PINCTRL_DRIVE_4mA, false);
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue