diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-02-27 17:40:41 +0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-02-27 17:40:49 +0400 |
commit | 96a3eab338c01e172745b1686c51c1be96ce9ead (patch) | |
tree | 5a53947a192549d9edf63550258e1bddf6f1d794 /arch/arm/mach-omap2/gpmc.c | |
parent | b01ee53dda8bd81855b7cda0dfb7f27d1524d87f (diff) | |
parent | a5a928c51f807262a13e6e3412e0e1324f6b7aeb (diff) | |
download | linux-96a3eab338c01e172745b1686c51c1be96ce9ead.tar.xz |
Merge branch 'imx-cleanup' of git://git.pengutronix.de/git/imx/linux-2.6 into next/cleanup
* 'imx-cleanup' of git://git.pengutronix.de/git/imx/linux-2.6: (247 commits)
ARM: Remove redundant ';' from avic_irq_set_priority()
ARM: mx3: Let mx31 and mx35 share the same CCM header file
ARM: plat-mxc: audmux-v1: Remove unneeded ifdef's
Update to v3.3-rc3
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc.c')
-rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 130034bf01d5..dfffbbf4c009 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -528,7 +528,13 @@ int gpmc_cs_configure(int cs, int cmd, int wval) case GPMC_CONFIG_DEV_SIZE: regval = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); + + /* clear 2 target bits */ + regval &= ~GPMC_CONFIG1_DEVICESIZE(3); + + /* set the proper value */ regval |= GPMC_CONFIG1_DEVICESIZE(wval); + gpmc_cs_write_reg(cs, GPMC_CS_CONFIG1, regval); break; |