ARM: DRA7: Add support for virtual mode configuration
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 4 Jun 2015 11:12:35 +0000 (16:42 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2015 17:02:05 +0000 (13:02 -0400)
commit61d383d0f761a8db2286e563a151fc9083543def
treec2ce591a1941ccc8417dd1663ba58dde9ba197d0
parent6ae4c3efbd6270e612cd78b9c934cc627339441b
ARM: DRA7: Add support for virtual mode configuration

In addition to the regular mux configuration, certain pins of DRA7
require to have "virtual mode" also programmed.
This allows for predefined delay characteristics to be used by the SoC
to meet timing characterstics needed for the interface.

Provide easy to use macro to do the same.

For configuring virtual mode, along with normal pad configuration add
the following two steps:
- Select MODESELECT field of each assocaited PAD.
  CTRL_CORE_PAD_XXX[8]:MODESELECT = 1
- DELAYMODE filed should be configured with value given in DATA Manual.
  CTRL_CORE_PAD_XXX[7:4]:DELAYMODE =[0-15] (as given in DATA manual).

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm/include/asm/arch-omap5/mux_dra7xx.h