mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 15:03:33 +08:00
omap_gpmc: Reindent misindented switch statements
Whitespace-only change fixing indentation. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7c470ff1eb
commit
9ed3e1b183
@ -196,22 +196,22 @@ static uint64_t omap_gpmc_read(void *opaque, target_phys_addr_t addr,
|
||||
addr -= cs * 0x30;
|
||||
f = s->cs_file + cs;
|
||||
switch (addr) {
|
||||
case 0x60: /* GPMC_CONFIG1 */
|
||||
return f->config[0];
|
||||
case 0x64: /* GPMC_CONFIG2 */
|
||||
return f->config[1];
|
||||
case 0x68: /* GPMC_CONFIG3 */
|
||||
return f->config[2];
|
||||
case 0x6c: /* GPMC_CONFIG4 */
|
||||
return f->config[3];
|
||||
case 0x70: /* GPMC_CONFIG5 */
|
||||
return f->config[4];
|
||||
case 0x74: /* GPMC_CONFIG6 */
|
||||
return f->config[5];
|
||||
case 0x78: /* GPMC_CONFIG7 */
|
||||
return f->config[6];
|
||||
case 0x84: /* GPMC_NAND_DATA */
|
||||
return 0;
|
||||
case 0x60: /* GPMC_CONFIG1 */
|
||||
return f->config[0];
|
||||
case 0x64: /* GPMC_CONFIG2 */
|
||||
return f->config[1];
|
||||
case 0x68: /* GPMC_CONFIG3 */
|
||||
return f->config[2];
|
||||
case 0x6c: /* GPMC_CONFIG4 */
|
||||
return f->config[3];
|
||||
case 0x70: /* GPMC_CONFIG5 */
|
||||
return f->config[4];
|
||||
case 0x74: /* GPMC_CONFIG6 */
|
||||
return f->config[5];
|
||||
case 0x78: /* GPMC_CONFIG7 */
|
||||
return f->config[6];
|
||||
case 0x84: /* GPMC_NAND_DATA */
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
||||
@ -311,38 +311,38 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
|
||||
addr -= cs * 0x30;
|
||||
f = s->cs_file + cs;
|
||||
switch (addr) {
|
||||
case 0x60: /* GPMC_CONFIG1 */
|
||||
f->config[0] = value & 0xffef3e13;
|
||||
break;
|
||||
case 0x64: /* GPMC_CONFIG2 */
|
||||
f->config[1] = value & 0x001f1f8f;
|
||||
break;
|
||||
case 0x68: /* GPMC_CONFIG3 */
|
||||
f->config[2] = value & 0x001f1f8f;
|
||||
break;
|
||||
case 0x6c: /* GPMC_CONFIG4 */
|
||||
f->config[3] = value & 0x1f8f1f8f;
|
||||
break;
|
||||
case 0x70: /* GPMC_CONFIG5 */
|
||||
f->config[4] = value & 0x0f1f1f1f;
|
||||
break;
|
||||
case 0x74: /* GPMC_CONFIG6 */
|
||||
f->config[5] = value & 0x00000fcf;
|
||||
break;
|
||||
case 0x78: /* GPMC_CONFIG7 */
|
||||
if ((f->config[6] ^ value) & 0xf7f) {
|
||||
omap_gpmc_cs_unmap(s, cs);
|
||||
f->config[6] = value & 0x00000f7f;
|
||||
omap_gpmc_cs_map(s, cs);
|
||||
}
|
||||
break;
|
||||
case 0x7c: /* GPMC_NAND_COMMAND */
|
||||
case 0x80: /* GPMC_NAND_ADDRESS */
|
||||
case 0x84: /* GPMC_NAND_DATA */
|
||||
break;
|
||||
case 0x60: /* GPMC_CONFIG1 */
|
||||
f->config[0] = value & 0xffef3e13;
|
||||
break;
|
||||
case 0x64: /* GPMC_CONFIG2 */
|
||||
f->config[1] = value & 0x001f1f8f;
|
||||
break;
|
||||
case 0x68: /* GPMC_CONFIG3 */
|
||||
f->config[2] = value & 0x001f1f8f;
|
||||
break;
|
||||
case 0x6c: /* GPMC_CONFIG4 */
|
||||
f->config[3] = value & 0x1f8f1f8f;
|
||||
break;
|
||||
case 0x70: /* GPMC_CONFIG5 */
|
||||
f->config[4] = value & 0x0f1f1f1f;
|
||||
break;
|
||||
case 0x74: /* GPMC_CONFIG6 */
|
||||
f->config[5] = value & 0x00000fcf;
|
||||
break;
|
||||
case 0x78: /* GPMC_CONFIG7 */
|
||||
if ((f->config[6] ^ value) & 0xf7f) {
|
||||
omap_gpmc_cs_unmap(s, cs);
|
||||
f->config[6] = value & 0x00000f7f;
|
||||
omap_gpmc_cs_map(s, cs);
|
||||
}
|
||||
break;
|
||||
case 0x7c: /* GPMC_NAND_COMMAND */
|
||||
case 0x80: /* GPMC_NAND_ADDRESS */
|
||||
case 0x84: /* GPMC_NAND_DATA */
|
||||
break;
|
||||
|
||||
default:
|
||||
goto bad_reg;
|
||||
default:
|
||||
goto bad_reg;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user