From: Felix Brack Date: Thu, 14 Sep 2017 14:37:08 +0200 Subject: [U-Boot] [PATCH v2] arm: am33xx: Make pin multiplexing functions optional Message-ID: <1505392628-2471-1-git-send-email-fb@ltec.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: - removed weak attribute from function declarations - added weak function definitions arch/arm/mach-omap2/am33xx/mux.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/mach-omap2/am33xx/mux.c b/arch/arm/mach-omap2/am33xx/mux.c index 2ded472..aad3ec8 100644 --- a/arch/arm/mach-omap2/am33xx/mux.c +++ b/arch/arm/mach-omap2/am33xx/mux.c @@ -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++) 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) +{ +} -- 2.7.4