From: Mark Jackson Date: Tue, 5 Mar 2013 10:13:40 +0000 (+0000) Subject: ARM: OMAP: Clear GPMC bits when applying new setting. X-Git-Tag: omap-for-v3.10/gpmc-signed^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9fb80942444e57c75fb26c27fd77961f9ba2570;p=pandora-kernel.git ARM: OMAP: Clear GPMC bits when applying new setting. When setting the GPMC device type, make sure any previous bits are cleared down, before applying the new setting. For OMAP4+ devices MUXADDDATA is a 2-bit field (bits 9:8) where as for OMAP2/3 devices it was only a one bit field (bit 9). For OMAP2/3 devices bit 8 is reserved and the OMAP documentation says to write a 0 to this bit. So clearing bit 8 on OMAP2/3 devices should not be a problem. Hence update the code to handle both bits 8 and 9 for all devices. Signed-off-by: Mark Jackson [jon-hunter@ti.com: updated changelog] Signed-off-by: Jon Hunter --- Reading git-diff-tree failed