From patchwork Thu Sep 14 12:37:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Brack X-Patchwork-Id: 813811 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xtJ2s4bcMz9sP1 for ; Thu, 14 Sep 2017 22:37:40 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A091CC21EF1; Thu, 14 Sep 2017 12:37:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 507FFC21D74; Thu, 14 Sep 2017 12:37:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 458F6C21D74; Thu, 14 Sep 2017 12:37:29 +0000 (UTC) Received: from mail.ltec.ch (mail.ltec.ch [95.143.48.181]) by lists.denx.de (Postfix) with ESMTPS id D513FC21D5F for ; Thu, 14 Sep 2017 12:37:28 +0000 (UTC) Received: from nebula.ltec ([172.27.11.2] helo=vm64.ltec) by mail.ltec.ch with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dsTPM-0001GT-5j; Thu, 14 Sep 2017 14:38:16 +0200 From: Felix Brack To: u-boot@lists.denx.de Date: Thu, 14 Sep 2017 14:37:08 +0200 Message-Id: <1505392628-2471-1-git-send-email-fb@ltec.ch> X-Mailer: git-send-email 2.7.4 Cc: trini@konsulko.com, Albert Aribaud Subject: [U-Boot] [PATCH v2] arm: am33xx: Make pin multiplexing functions optional X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 Reviewed-by: Tom Rini --- 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) +{ +}