|
@@ -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;
|
|
|
|