From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 12 Jul 2015 00:10:29 +0200 Subject: [U-Boot] [PATCH V2 02/15] imx: mx6ul: Add pins IOMUX head file In-Reply-To: <1436602043-9644-3-git-send-email-Peng.Fan@freescale.com> References: <1436602043-9644-1-git-send-email-Peng.Fan@freescale.com> <1436602043-9644-3-git-send-email-Peng.Fan@freescale.com> Message-ID: <201507120010.29273.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday, July 11, 2015 at 10:07:10 AM, Peng Fan wrote: > Add i.MX6UL pins IOMUX file which defines the IOMUX settings for choose. > > Signed-off-by: Peng Fan > Signed-off-by: Ye.Li > --- > > Changes v2: > none > > arch/arm/include/asm/arch-mx6/mx6-pins.h | 2 + > arch/arm/include/asm/arch-mx6/mx6ul_pins.h | 1065 > ++++++++++++++++++++++++++++ 2 files changed, 1067 insertions(+) > create mode 100644 arch/arm/include/asm/arch-mx6/mx6ul_pins.h > > diff --git a/arch/arm/include/asm/arch-mx6/mx6-pins.h > b/arch/arm/include/asm/arch-mx6/mx6-pins.h index 534f780..4b6bb18 100644 > --- a/arch/arm/include/asm/arch-mx6/mx6-pins.h > +++ b/arch/arm/include/asm/arch-mx6/mx6-pins.h > @@ -37,6 +37,8 @@ enum { > #include "mx6sl_pins.h" > #elif defined(CONFIG_MX6SX) > #include "mx6sx_pins.h" > +#elif defined(CONFIG_MX6UL) > +#include "mx6ul_pins.h" > #else > #error "Please select cpu" > #endif /* CONFIG_MX6Q */ > diff --git a/arch/arm/include/asm/arch-mx6/mx6ul_pins.h > b/arch/arm/include/asm/arch-mx6/mx6ul_pins.h new file mode 100644 > index 0000000..c92b4f0 > --- /dev/null > +++ b/arch/arm/include/asm/arch-mx6/mx6ul_pins.h > @@ -0,0 +1,1065 @@ > +/* > + * Copyright (C) 2015 Freescale Semiconductor, Inc. > + * > + * SPDX-License-Identifier: GPL-2.0+ > + */ > + > +#ifndef __ASM_ARCH_IMX6UL_PINS_H__ > +#define __ASM_ARCH_IMX6UL_PINS_H__ > + > +#include > + > +enum { > + > + MX6_PAD_BOOT_MODE0__GPIO5_IO10 = > IOMUX_PAD(0x02A0, 0x0014, 5, 0x0000, 0, 0), Hi, why do you use enum here instead of just #defining those constants ?