2012-10-18 01:21:11 +00:00
|
|
|
/*
|
|
|
|
* mux.h
|
|
|
|
*
|
2013-03-15 10:07:05 +00:00
|
|
|
* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
|
2012-10-18 01:21:11 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MUX_H_
|
|
|
|
#define _MUX_H_
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
|
2013-03-15 10:07:05 +00:00
|
|
|
#ifdef CONFIG_AM33XX
|
|
|
|
#include <asm/arch/mux_am33xx.h>
|
|
|
|
#elif defined(CONFIG_TI814X)
|
|
|
|
#include <asm/arch/mux_ti814x.h>
|
2013-07-02 10:05:59 +00:00
|
|
|
#elif defined(CONFIG_TI816X)
|
|
|
|
#include <asm/arch/mux_ti816x.h>
|
2013-07-30 06:06:28 +00:00
|
|
|
#elif defined(CONFIG_AM43XX)
|
|
|
|
#include <asm/arch/mux_am43xx.h>
|
2013-03-15 10:07:05 +00:00
|
|
|
#endif
|
2012-10-18 01:21:11 +00:00
|
|
|
|
|
|
|
struct module_pin_mux {
|
|
|
|
short reg_offset;
|
2013-03-15 10:07:05 +00:00
|
|
|
unsigned int val;
|
2012-10-18 01:21:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Pad control register offset */
|
|
|
|
#define PAD_CTRL_BASE 0x800
|
|
|
|
#define OFFSET(x) (unsigned int) (&((struct pad_signals *) \
|
|
|
|
(PAD_CTRL_BASE))->x)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Configure the pin mux for the module
|
|
|
|
*/
|
|
|
|
void configure_module_pin_mux(struct module_pin_mux *mod_pin_mux);
|
|
|
|
|
2013-03-15 10:07:05 +00:00
|
|
|
#endif /* endif _MUX_H */
|