OMAP2+: mux: Fixed gpio mux mode analysis
authorOleg Matcovschi <oleg.matcovschi@ti.com>
Tue, 27 Nov 2012 01:02:03 +0000 (17:02 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 14 Dec 2012 19:11:34 +0000 (11:11 -0800)
commit421e84509980206fb3b3bc039bc05bae1dd41c7b
treea15c269e3db4db310ba0b1a0610b2a095d18c76e
parentca2e16faa7378878c1522a7c1b6c38211de3331d
OMAP2+: mux: Fixed gpio mux mode analysis

OMAP_MODE_GPIO() macro verified only OMAP_MUX_MODE4.
It is not correct for following platforms:
    2430 - gpio mux mode 3
    44xx - gpio mux mode 3
    54xx - gpio mux mode 6

Patch reserves first 3 bits in partition flags for storing gpio mux
mode in same format as stored in control pad register.
Modified OMAP_MODE_GPIO() macro to handle all possible cases of gpio mux mode.
Modified omap_mux_init() flags of omap34xx to include OMAP_MUX_GPIO_IN_MODE4.

Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mux.c
arch/arm/mach-omap2/mux.h
arch/arm/mach-omap2/mux34xx.c
This page took 0.037887 seconds and 5 git commands to generate.