summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-omap5/mux_dra7xx.h
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2015-06-04 16:42:37 +0530
committerTom Rini <trini@konsulko.com>2015-06-12 13:02:05 -0400
commit71bed1855ff1f0b9702ecedd1ece486ebc915779 (patch)
tree3cf6417069442248c69d0f22a39593581d249d64 /arch/arm/include/asm/arch-omap5/mux_dra7xx.h
parenteda6fbcc8c715a48c6b19541fed684efa3c49dbb (diff)
downloadtalos-obmc-uboot-71bed1855ff1f0b9702ecedd1ece486ebc915779.tar.gz
talos-obmc-uboot-71bed1855ff1f0b9702ecedd1ece486ebc915779.zip
ARM: DRA7: Add support for manual mode configuration
In addition to the regular mux configuration, certain pins of DRA7 require to have "manual mode" also programmed, when predefined delay characteristics cannot be used for the interface. struct iodelay_cfg_entry is introduced for populating manual mode IO timings. For configuring manual mode, along with the normal pad configuration do the following steps: - Select MODESELECT field of each assocaited PAD. CTRL_CORE_PAD_XXX[8]:MODESELECT = 1(Enable MANUAL_MODE macro along with mux) - Populate A_DELAY, G_DELAY values that are specified in DATA MANUAL. And pass the offset of the CFG_XXX register in iodelay_cfg_entry. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'arch/arm/include/asm/arch-omap5/mux_dra7xx.h')
-rw-r--r--arch/arm/include/asm/arch-omap5/mux_dra7xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-omap5/mux_dra7xx.h b/arch/arm/include/asm/arch-omap5/mux_dra7xx.h
index 13c288b5d3..2115abb555 100644
--- a/arch/arm/include/asm/arch-omap5/mux_dra7xx.h
+++ b/arch/arm/include/asm/arch-omap5/mux_dra7xx.h
@@ -61,6 +61,8 @@
#define MODE_SELECT (1 << 8)
#define DELAYMODE_SHIFT 4
+#define MANUAL_MODE MODE_SELECT
+
#define VIRTUAL_MODE0 (MODE_SELECT | (0x0 << DELAYMODE_SHIFT))
#define VIRTUAL_MODE1 (MODE_SELECT | (0x1 << DELAYMODE_SHIFT))
#define VIRTUAL_MODE2 (MODE_SELECT | (0x2 << DELAYMODE_SHIFT))
OpenPOWER on IntegriCloud