Peter Korsgaard | 5d3f682 | 2012-10-18 01:21:11 +0000 | [diff] [blame] | 1 | /* |
| 2 | * mux.c |
| 3 | * |
Nishanth Menon | eaa39c6 | 2023-11-01 15:56:03 -0500 | [diff] [blame] | 4 | * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ |
Peter Korsgaard | 5d3f682 | 2012-10-18 01:21:11 +0000 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation version 2. |
| 9 | * |
| 10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any |
| 11 | * kind, whether express or implied; without even the implied warranty |
| 12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
Peter Korsgaard | 5d3f682 | 2012-10-18 01:21:11 +0000 | [diff] [blame] | 16 | #include <asm/arch/mux.h> |
| 17 | #include <asm/arch/hardware.h> |
| 18 | #include <asm/io.h> |
| 19 | |
| 20 | /* |
| 21 | * Configure the pin mux for the module |
| 22 | */ |
| 23 | void configure_module_pin_mux(struct module_pin_mux *mod_pin_mux) |
| 24 | { |
| 25 | int i; |
| 26 | |
| 27 | if (!mod_pin_mux) |
| 28 | return; |
| 29 | |
| 30 | for (i = 0; mod_pin_mux[i].reg_offset != -1; i++) |
| 31 | MUX_CFG(mod_pin_mux[i].val, mod_pin_mux[i].reg_offset); |
| 32 | } |
Felix Brack | 91262e5 | 2017-09-14 14:37:08 +0200 | [diff] [blame] | 33 | |
| 34 | /* |
| 35 | * provide a default over-writable definition |
| 36 | */ |
| 37 | void __weak set_uart_mux_conf(void) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | /* |
| 42 | * provide a default over-writable definition |
| 43 | */ |
| 44 | void __weak set_mux_conf_regs(void) |
| 45 | { |
| 46 | } |