From: Peng Fan <b51431@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 02/15] imx: mx6ul: Add pins IOMUX head file
Date: Sun, 12 Jul 2015 19:53:05 +0800 [thread overview]
Message-ID: <20150712115302.GA17161@shlinux2> (raw)
In-Reply-To: <201507121339.58559.marex@denx.de>
Hi Marek,
On Sun, Jul 12, 2015 at 01:39:58PM +0200, Marek Vasut wrote:
>On Sunday, July 12, 2015 at 12:27:42 PM, Peng Fan wrote:
>> Hi Marek,
>>
>> On Sun, Jul 12, 2015 at 12:10:29AM +0200, Marek Vasut wrote:
>> >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 <Peng.Fan@freescale.com>
>> >> Signed-off-by: Ye.Li <B37916@freescale.com>
>> >> ---
>> >>
>> >> 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 <asm/imx-common/iomux-v3.h>
>> >> +
>> >> +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 ?
>>
>> Just keep same with other mx6[x]_pins.h.
>
>arch/arm/include/asm/arch-mx6/mx6q_pins.h doesn't contain the enum to my
>knowledge :)
I am not sure whether it really make a difference or not if changed to define.
In arch/arm/include/asm/arch-mx6/mx6-pins.h
#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),
#include "mx6q_pins.h"
#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),
#include "mx6dl_pins.h"
};
.....
#elif defined(CONFIG_MX6SL)
#include "mx6sl_pins.h"
#elif defined(CONFIG_MX6SX)
#include "mx6sx_pins.h"
.....
In mx6-pins.h, it is also enum. mx6ul-pins.h use same way with mx6sx/sl-pins.h.
>
>Best regards,
>Marek Vasut
Regards,
Peng
--
next prev parent reply other threads:[~2015-07-12 11:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-11 8:07 [U-Boot] [PATCH V2 00/15] imx: Add i.MX6UL and basic board support Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 01/15] imx: mx6ul: Add i.MX6UL CPU type Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 02/15] imx: mx6ul: Add pins IOMUX head file Peng Fan
2015-07-11 22:10 ` Marek Vasut
2015-07-12 10:27 ` Peng Fan
2015-07-12 11:39 ` Marek Vasut
2015-07-12 11:53 ` Peng Fan [this message]
2015-07-12 14:16 ` Marek Vasut
2015-07-11 8:07 ` [U-Boot] [PATCH V2 03/15] imx: mx6ul: Update imx registers " Peng Fan
2015-07-11 22:11 ` Marek Vasut
2015-07-12 10:32 ` Peng Fan
2015-07-12 11:50 ` Marek Vasut
2015-07-12 11:55 ` Peng Fan
2015-07-12 14:14 ` Marek Vasut
2015-07-11 8:07 ` [U-Boot] [PATCH V2 04/15] imx: mx6ul Add CONFIG_SYS_CACHELINE_SIZE for i.MX6UL Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 05/15] imx-common: timer: add i.MX6UL support Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 06/15] imx: mx6ul remove errata for i.MX6UL Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 07/15] imx:mx6ul add clock support Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 08/15] imx: mx6ul select SYS_L2CACHE_OFF Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 09/15] imx: mx6ul update soc related settings Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 10/15] imx: mx6 add PAD_CTL_SPEED_LOW for i.MX6SX/UL Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 11/15] mxc: gpio add i.MX6UL support Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 12/15] mx6_common: Fix LOADADDR and SYS_TEXT_BASE for i.MX6UL Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 13/15] imx:mx6ul add dram spl configuration and header file Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 14/15] imx: imx6_spl add mx6ul support Peng Fan
2015-07-11 8:07 ` [U-Boot] [PATCH V2 15/15] imx: mx6ul_14x14_evk add basic board support Peng Fan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150712115302.GA17161@shlinux2 \
--to=b51431@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox