diff options
Diffstat (limited to 'arch/sh/boards/mach-kfr2r09/setup.c')
| -rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 5d7b5d92475e..b2cd0ed8664e 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c | |||
| @@ -282,7 +282,7 @@ static int camera_power(struct device *dev, int mode) | |||
| 282 | * use 1.8 V for VccQ_VIO | 282 | * use 1.8 V for VccQ_VIO |
| 283 | * use 2.85V for VccQ_SR | 283 | * use 2.85V for VccQ_SR |
| 284 | */ | 284 | */ |
| 285 | ctrl_outw((ctrl_inw(DRVCRB) & ~0x0003) | 0x0001, DRVCRB); | 285 | __raw_writew((__raw_readw(DRVCRB) & ~0x0003) | 0x0001, DRVCRB); |
| 286 | 286 | ||
| 287 | /* reset clear */ | 287 | /* reset clear */ |
| 288 | ret = gpio_request(GPIO_PTB4, NULL); | 288 | ret = gpio_request(GPIO_PTB4, NULL); |
| @@ -351,7 +351,7 @@ static struct resource kfr2r09_sh_sdhi0_resources[] = { | |||
| 351 | .flags = IORESOURCE_MEM, | 351 | .flags = IORESOURCE_MEM, |
| 352 | }, | 352 | }, |
| 353 | [1] = { | 353 | [1] = { |
| 354 | .start = 101, | 354 | .start = 100, |
| 355 | .flags = IORESOURCE_IRQ, | 355 | .flags = IORESOURCE_IRQ, |
| 356 | }, | 356 | }, |
| 357 | }; | 357 | }; |
| @@ -492,13 +492,13 @@ static int kfr2r09_usb0_gadget_setup(void) | |||
| 492 | if (kfr2r09_usb0_gadget_i2c_setup() != 0) | 492 | if (kfr2r09_usb0_gadget_i2c_setup() != 0) |
| 493 | return -ENODEV; /* unable to configure using i2c */ | 493 | return -ENODEV; /* unable to configure using i2c */ |
| 494 | 494 | ||
| 495 | ctrl_outw((ctrl_inw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB); | 495 | __raw_writew((__raw_readw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB); |
| 496 | gpio_request(GPIO_FN_PDSTATUS, NULL); /* R-standby disables USB clock */ | 496 | gpio_request(GPIO_FN_PDSTATUS, NULL); /* R-standby disables USB clock */ |
| 497 | gpio_request(GPIO_PTV6, NULL); /* USBCLK_ON */ | 497 | gpio_request(GPIO_PTV6, NULL); /* USBCLK_ON */ |
| 498 | gpio_direction_output(GPIO_PTV6, 1); /* USBCLK_ON = H */ | 498 | gpio_direction_output(GPIO_PTV6, 1); /* USBCLK_ON = H */ |
| 499 | msleep(20); /* wait 20ms to let the clock settle */ | 499 | msleep(20); /* wait 20ms to let the clock settle */ |
| 500 | clk_enable(clk_get(NULL, "usb0")); | 500 | clk_enable(clk_get(NULL, "usb0")); |
| 501 | ctrl_outw(0x0600, 0xa40501d4); | 501 | __raw_writew(0x0600, 0xa40501d4); |
| 502 | 502 | ||
| 503 | return 0; | 503 | return 0; |
| 504 | } | 504 | } |
| @@ -526,12 +526,12 @@ static int __init kfr2r09_devices_setup(void) | |||
| 526 | gpio_direction_output(GPIO_PTG3, 1); /* HPON_ON = H */ | 526 | gpio_direction_output(GPIO_PTG3, 1); /* HPON_ON = H */ |
| 527 | 527 | ||
| 528 | /* setup NOR flash at CS0 */ | 528 | /* setup NOR flash at CS0 */ |
| 529 | ctrl_outl(0x36db0400, BSC_CS0BCR); | 529 | __raw_writel(0x36db0400, BSC_CS0BCR); |
| 530 | ctrl_outl(0x00000500, BSC_CS0WCR); | 530 | __raw_writel(0x00000500, BSC_CS0WCR); |
| 531 | 531 | ||
| 532 | /* setup NAND flash at CS4 */ | 532 | /* setup NAND flash at CS4 */ |
| 533 | ctrl_outl(0x36db0400, BSC_CS4BCR); | 533 | __raw_writel(0x36db0400, BSC_CS4BCR); |
| 534 | ctrl_outl(0x00000500, BSC_CS4WCR); | 534 | __raw_writel(0x00000500, BSC_CS4WCR); |
| 535 | 535 | ||
| 536 | /* setup KEYSC pins */ | 536 | /* setup KEYSC pins */ |
| 537 | gpio_request(GPIO_FN_KEYOUT0, NULL); | 537 | gpio_request(GPIO_FN_KEYOUT0, NULL); |
