diff options
author | Eric Sun <jian.sun@freescale.com> | 2012-05-18 19:57:41 +0800 |
---|---|---|
committer | Eric Sun <jian.sun@freescale.com> | 2012-05-18 20:05:39 +0800 |
commit | 9b6dfc4b6f0d30b7284511a962e64e83c426b854 (patch) | |
tree | caede78d33459aea738d837a3ccfe9f7087a1901 /include | |
parent | 66a2afd595643732dc374ff0afccd3a64c1505bc (diff) | |
download | u-boot-imx-9b6dfc4b6f0d30b7284511a962e64e83c426b854.zip u-boot-imx-9b6dfc4b6f0d30b7284511a962e64e83c426b854.tar.gz u-boot-imx-9b6dfc4b6f0d30b7284511a962e64e83c426b854.tar.bz2 |
ENGR00210014 i.mx6 : i.mx6sl : add PAD_CTL_LVE support for pad configuration
Original pad configuration don't provide enough bitfield width to hold
all necessary information. For MX6Sololite, a "PAD_CTL_LVE" is needed
to be configed for many pins.
iomux_v3_cfg_t is re-orgnized to address this issue. PAD_CTRL is
extended by 1 bit to hold the "PAD_CTL_LVE". Which is mapped to proper
bit location when configure the PAD config register.
Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-mx6/iomux-v3.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/asm-arm/arch-mx6/iomux-v3.h b/include/asm-arm/arch-mx6/iomux-v3.h index 49487fb..50612ee 100644 --- a/include/asm-arm/arch-mx6/iomux-v3.h +++ b/include/asm-arm/arch-mx6/iomux-v3.h @@ -50,9 +50,8 @@ * PAD_CTRL_OFS: 12..23 (12) * SEL_INPUT_OFS: 24..35 (12) * MUX_MODE + SION: 36..40 (5) - * PAD_CTRL + NO_PAD_CTRL: 41..58 (18) - * SEL_INP: 59..62 (4) - * reserved: 63 (1) + * PAD_CTRL + NO_PAD_CTRL: 41..59 (19) + * SEL_INP: 60..63 (4) */ typedef u64 iomux_v3_cfg_t; @@ -69,8 +68,8 @@ typedef u64 iomux_v3_cfg_t; #define MUX_MODE_SHIFT 36 #define MUX_MODE_MASK ((iomux_v3_cfg_t)0x1f << MUX_MODE_SHIFT) #define MUX_PAD_CTRL_SHIFT 41 -#define MUX_PAD_CTRL_MASK ((iomux_v3_cfg_t)0x3ffff << MUX_PAD_CTRL_SHIFT) -#define MUX_SEL_INPUT_SHIFT 59 +#define MUX_PAD_CTRL_MASK ((iomux_v3_cfg_t)0x7ffff << MUX_PAD_CTRL_SHIFT) +#define MUX_SEL_INPUT_SHIFT 60 #define MUX_SEL_INPUT_MASK ((iomux_v3_cfg_t)0xf << MUX_SEL_INPUT_SHIFT) #define MUX_PAD_CTRL(x) ((iomux_v3_cfg_t)(x) << MUX_PAD_CTRL_SHIFT) @@ -88,6 +87,8 @@ typedef u64 iomux_v3_cfg_t; /* * Use to set PAD control */ +#define PAD_CTL_LVE_OFFSET (1 << 22) +#define PAD_CTL_LVE (1 << 18) #define NO_PAD_CTRL (1 << 17) #define PAD_CTL_HYS (1 << 16) |