mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-05 12:45:42 +00:00
b5ff205cdb
Fix the following checkpatch issues: CHECK: No space is necessary after a cast \#39: FILE: arch/arm/include/asm/arch-am33xx/mux.h:39: +#define PAD_CTRL_BASE 0x800 +#define OFFSET(x) (unsigned int) (&((struct pad_signals *) \ CHECK: Avoid CamelCase: <CONTROL_PADCONF_JTAG_nTRST> \#284: FILE: arch/arm/include/asm/arch-omap3/mux.h:284: +#define CONTROL_PADCONF_JTAG_nTRST 0x0A1C ERROR: space required after that ',' (ctx:VxV) \#446: FILE: arch/arm/include/asm/arch-omap3/mux.h:446: +#define MUX_VAL(OFFSET,VALUE)\ ^ Cc: Raphael Assenat <raph@8d.com> Cc: Ilya Yanok <yanok@emcraft.com> Cc: Vaibhav Hiremath <hvaibhav@ti.com> Cc: Peter Barada <peter.barada@logicpd.com> Cc: Grazvydas Ignotas <notasas@gmail.com> Cc: Stefan Roese <sr@denx.de> Cc: Stefano Babic <sbabic@denx.de> Cc: Nagendra T S <nagendra@mistralsolutions.com> Cc: Nishanth Menon <nm@ti.com> Cc: Tom Rini <trini@ti.com> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Acked-by: Stefan Roese <sr@denx.de>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/*
|
|
* mux.h
|
|
*
|
|
* Copyright (C) 2013 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.
|
|
*/
|
|
|
|
#ifndef _MUX_H_
|
|
#define _MUX_H_
|
|
|
|
#include <common.h>
|
|
#include <asm/io.h>
|
|
|
|
#ifdef CONFIG_AM33XX
|
|
#include <asm/arch/mux_am33xx.h>
|
|
#elif defined(CONFIG_TI814X)
|
|
#include <asm/arch/mux_ti814x.h>
|
|
#elif defined(CONFIG_TI816X)
|
|
#include <asm/arch/mux_ti816x.h>
|
|
#elif defined(CONFIG_AM43XX)
|
|
#include <asm/arch/mux_am43xx.h>
|
|
#endif
|
|
|
|
struct module_pin_mux {
|
|
short reg_offset;
|
|
unsigned int val;
|
|
};
|
|
|
|
/* 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);
|
|
|
|
#endif /* endif _MUX_H */
|