1*983e3700STom Rini /* 2*983e3700STom Rini * mux.c 3*983e3700STom Rini * 4*983e3700STom Rini * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 5*983e3700STom Rini * 6*983e3700STom Rini * This program is free software; you can redistribute it and/or 7*983e3700STom Rini * modify it under the terms of the GNU General Public License as 8*983e3700STom Rini * published by the Free Software Foundation version 2. 9*983e3700STom Rini * 10*983e3700STom Rini * This program is distributed "as is" WITHOUT ANY WARRANTY of any 11*983e3700STom Rini * kind, whether express or implied; without even the implied warranty 12*983e3700STom Rini * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*983e3700STom Rini * GNU General Public License for more details. 14*983e3700STom Rini */ 15*983e3700STom Rini 16*983e3700STom Rini #include <common.h> 17*983e3700STom Rini #include <asm/arch/mux.h> 18*983e3700STom Rini #include <asm/arch/hardware.h> 19*983e3700STom Rini #include <asm/io.h> 20*983e3700STom Rini 21*983e3700STom Rini /* 22*983e3700STom Rini * Configure the pin mux for the module 23*983e3700STom Rini */ 24*983e3700STom Rini void configure_module_pin_mux(struct module_pin_mux *mod_pin_mux) 25*983e3700STom Rini { 26*983e3700STom Rini int i; 27*983e3700STom Rini 28*983e3700STom Rini if (!mod_pin_mux) 29*983e3700STom Rini return; 30*983e3700STom Rini 31*983e3700STom Rini for (i = 0; mod_pin_mux[i].reg_offset != -1; i++) 32*983e3700STom Rini MUX_CFG(mod_pin_mux[i].val, mod_pin_mux[i].reg_offset); 33*983e3700STom Rini } 34