blob: aad3ec8556978b1660439abcb8ebff244accc344 [file] [log] [blame]
Peter Korsgaard7f26a5a2012-10-18 01:21:11 +00001/*
2 * mux.c
3 *
4 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
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
16#include <common.h>
17#include <asm/arch/mux.h>
18#include <asm/arch/hardware.h>
19#include <asm/io.h>
20
21/*
22 * Configure the pin mux for the module
23 */
24void configure_module_pin_mux(struct module_pin_mux *mod_pin_mux)
25{
26 int i;
27
28 if (!mod_pin_mux)
29 return;
30
31 for (i = 0; mod_pin_mux[i].reg_offset != -1; i++)
32 MUX_CFG(mod_pin_mux[i].val, mod_pin_mux[i].reg_offset);
33}
Felix Brack7cc238f2017-09-14 14:37:08 +020034
35/*
36 * provide a default over-writable definition
37*/
38void __weak set_uart_mux_conf(void)
39{
40}
41
42/*
43* provide a default over-writable definition
44*/
45void __weak set_mux_conf_regs(void)
46{
47}