mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 11:00:43 +09:00
arm: am33xx: Make pin multiplexing functions optional
This patch provides default implementations of the two functions set_uart_mux_conf and set_mux_conf_regs. Hence boards not using them do not need to provide their distinct empty definitions. Signed-off-by: Felix Brack <fb@ltec.ch> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
246771b184
commit
7cc238f2ee
@ -31,3 +31,17 @@ void configure_module_pin_mux(struct module_pin_mux *mod_pin_mux)
|
|||||||
for (i = 0; mod_pin_mux[i].reg_offset != -1; i++)
|
for (i = 0; mod_pin_mux[i].reg_offset != -1; i++)
|
||||||
MUX_CFG(mod_pin_mux[i].val, mod_pin_mux[i].reg_offset);
|
MUX_CFG(mod_pin_mux[i].val, mod_pin_mux[i].reg_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* provide a default over-writable definition
|
||||||
|
*/
|
||||||
|
void __weak set_uart_mux_conf(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* provide a default over-writable definition
|
||||||
|
*/
|
||||||
|
void __weak set_mux_conf_regs(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user