2013-02-19 10:07:01 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Boundary Devices Inc.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2013-02-19 10:07:01 +00:00
|
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_MX6_PINS_H__
|
|
|
|
#define __ASM_ARCH_MX6_PINS_H__
|
|
|
|
|
2017-06-29 08:16:06 +00:00
|
|
|
#include <asm/mach-imx/iomux-v3.h>
|
2013-11-13 23:36:19 +00:00
|
|
|
|
|
|
|
#define MX6_PAD_DECLARE(prefix, name, pco, mc, mm, sio, si, pc) \
|
|
|
|
prefix##name = IOMUX_PAD(pco, mc, mm, sio, si, pc)
|
|
|
|
|
|
|
|
#ifdef CONFIG_MX6QDL
|
|
|
|
enum {
|
|
|
|
#define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
|
|
|
|
MX6_PAD_DECLARE(MX6Q_PAD_,name, pco, mc, mm, sio, si, pc),
|
2013-02-19 10:07:01 +00:00
|
|
|
#include "mx6q_pins.h"
|
2013-11-13 23:36:19 +00:00
|
|
|
#undef MX6_PAD_DECL
|
|
|
|
#define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
|
|
|
|
MX6_PAD_DECLARE(MX6DL_PAD_,name, pco, mc, mm, sio, si, pc),
|
2013-02-19 10:07:01 +00:00
|
|
|
#include "mx6dl_pins.h"
|
2013-11-13 23:36:19 +00:00
|
|
|
};
|
|
|
|
#elif defined(CONFIG_MX6Q)
|
|
|
|
enum {
|
|
|
|
#define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
|
|
|
|
MX6_PAD_DECLARE(MX6_PAD_,name, pco, mc, mm, sio, si, pc),
|
|
|
|
#include "mx6q_pins.h"
|
|
|
|
};
|
|
|
|
#elif defined(CONFIG_MX6DL) || defined(CONFIG_MX6S)
|
|
|
|
enum {
|
|
|
|
#define MX6_PAD_DECL(name, pco, mc, mm, sio, si, pc) \
|
|
|
|
MX6_PAD_DECLARE(MX6_PAD_,name, pco, mc, mm, sio, si, pc),
|
|
|
|
#include "mx6dl_pins.h"
|
|
|
|
};
|
2016-12-11 11:24:21 +00:00
|
|
|
#elif defined(CONFIG_MX6SLL)
|
|
|
|
#include "mx6sll_pins.h"
|
2013-11-13 23:36:19 +00:00
|
|
|
#elif defined(CONFIG_MX6SL)
|
2013-04-10 09:32:57 +00:00
|
|
|
#include "mx6sl_pins.h"
|
2014-06-24 20:40:59 +00:00
|
|
|
#elif defined(CONFIG_MX6SX)
|
|
|
|
#include "mx6sx_pins.h"
|
2016-08-11 06:02:37 +00:00
|
|
|
#elif defined(CONFIG_MX6ULL)
|
|
|
|
#include "mx6ull_pins.h"
|
2015-07-20 11:28:22 +00:00
|
|
|
#elif defined(CONFIG_MX6UL)
|
|
|
|
#include "mx6ul_pins.h"
|
2013-04-10 09:32:57 +00:00
|
|
|
#else
|
2013-02-19 10:07:01 +00:00
|
|
|
#error "Please select cpu"
|
|
|
|
#endif /* CONFIG_MX6Q */
|
|
|
|
|
|
|
|
#endif /*__ASM_ARCH_MX6_PINS_H__ */
|