mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-24 03:53:31 +00:00
7cc238f2ee
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 <fb@ltec.ch> Reviewed-by: Tom Rini <trini@konsulko.com>
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/*
|
|
* mux.c
|
|
*
|
|
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation version 2.
|
|
*
|
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
* kind, whether express or implied; without even the implied warranty
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/mux.h>
|
|
#include <asm/arch/hardware.h>
|
|
#include <asm/io.h>
|
|
|
|
/*
|
|
* Configure the pin mux for the module
|
|
*/
|
|
void configure_module_pin_mux(struct module_pin_mux *mod_pin_mux)
|
|
{
|
|
int i;
|
|
|
|
if (!mod_pin_mux)
|
|
return;
|
|
|
|
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)
|
|
{
|
|
}
|