diff options
Diffstat (limited to 'arch/sh/boards/mach-ap325rxa/setup.c')
| -rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index 1f5fa5c44f6d..57e37e284208 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
| @@ -159,21 +159,21 @@ static void ap320_wvga_power_on(void *board_data) | |||
| 159 | msleep(100); | 159 | msleep(100); |
| 160 | 160 | ||
| 161 | /* ASD AP-320/325 LCD ON */ | 161 | /* ASD AP-320/325 LCD ON */ |
| 162 | ctrl_outw(FPGA_LCDREG_VAL, FPGA_LCDREG); | 162 | __raw_writew(FPGA_LCDREG_VAL, FPGA_LCDREG); |
| 163 | 163 | ||
| 164 | /* backlight */ | 164 | /* backlight */ |
| 165 | gpio_set_value(GPIO_PTS3, 0); | 165 | gpio_set_value(GPIO_PTS3, 0); |
| 166 | ctrl_outw(0x100, FPGA_BKLREG); | 166 | __raw_writew(0x100, FPGA_BKLREG); |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | static void ap320_wvga_power_off(void *board_data) | 169 | static void ap320_wvga_power_off(void *board_data) |
| 170 | { | 170 | { |
| 171 | /* backlight */ | 171 | /* backlight */ |
| 172 | ctrl_outw(0, FPGA_BKLREG); | 172 | __raw_writew(0, FPGA_BKLREG); |
| 173 | gpio_set_value(GPIO_PTS3, 1); | 173 | gpio_set_value(GPIO_PTS3, 1); |
| 174 | 174 | ||
| 175 | /* ASD AP-320/325 LCD OFF */ | 175 | /* ASD AP-320/325 LCD OFF */ |
| 176 | ctrl_outw(0, FPGA_LCDREG); | 176 | __raw_writew(0, FPGA_LCDREG); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | static struct sh_mobile_lcdc_info lcdc_info = { | 179 | static struct sh_mobile_lcdc_info lcdc_info = { |
| @@ -420,7 +420,7 @@ static struct resource sdhi0_cn3_resources[] = { | |||
| 420 | .flags = IORESOURCE_MEM, | 420 | .flags = IORESOURCE_MEM, |
| 421 | }, | 421 | }, |
| 422 | [1] = { | 422 | [1] = { |
| 423 | .start = 101, | 423 | .start = 100, |
| 424 | .flags = IORESOURCE_IRQ, | 424 | .flags = IORESOURCE_IRQ, |
| 425 | }, | 425 | }, |
| 426 | }; | 426 | }; |
| @@ -443,7 +443,7 @@ static struct resource sdhi1_cn7_resources[] = { | |||
| 443 | .flags = IORESOURCE_MEM, | 443 | .flags = IORESOURCE_MEM, |
| 444 | }, | 444 | }, |
| 445 | [1] = { | 445 | [1] = { |
| 446 | .start = 24, | 446 | .start = 23, |
| 447 | .flags = IORESOURCE_IRQ, | 447 | .flags = IORESOURCE_IRQ, |
| 448 | }, | 448 | }, |
| 449 | }; | 449 | }; |
| @@ -471,8 +471,8 @@ static struct i2c_board_info ap325rxa_i2c_camera[] = { | |||
| 471 | }; | 471 | }; |
| 472 | 472 | ||
| 473 | static struct ov772x_camera_info ov7725_info = { | 473 | static struct ov772x_camera_info ov7725_info = { |
| 474 | .buswidth = SOCAM_DATAWIDTH_8, | 474 | .flags = OV772X_FLAG_VFLIP | OV772X_FLAG_HFLIP | \ |
| 475 | .flags = OV772X_FLAG_VFLIP | OV772X_FLAG_HFLIP, | 475 | OV772X_FLAG_8BIT, |
| 476 | .edgectrl = OV772X_AUTO_EDGECTRL(0xf, 0), | 476 | .edgectrl = OV772X_AUTO_EDGECTRL(0xf, 0), |
| 477 | }; | 477 | }; |
| 478 | 478 | ||
| @@ -595,7 +595,7 @@ static int __init ap325rxa_devices_setup(void) | |||
| 595 | gpio_request(GPIO_PTZ4, NULL); | 595 | gpio_request(GPIO_PTZ4, NULL); |
| 596 | gpio_direction_output(GPIO_PTZ4, 0); /* SADDR */ | 596 | gpio_direction_output(GPIO_PTZ4, 0); /* SADDR */ |
| 597 | 597 | ||
| 598 | ctrl_outw(ctrl_inw(PORT_MSELCRB) & ~0x0001, PORT_MSELCRB); | 598 | __raw_writew(__raw_readw(PORT_MSELCRB) & ~0x0001, PORT_MSELCRB); |
| 599 | 599 | ||
| 600 | /* FLCTL */ | 600 | /* FLCTL */ |
| 601 | gpio_request(GPIO_FN_FCE, NULL); | 601 | gpio_request(GPIO_FN_FCE, NULL); |
| @@ -613,9 +613,9 @@ static int __init ap325rxa_devices_setup(void) | |||
| 613 | gpio_request(GPIO_FN_FWE, NULL); | 613 | gpio_request(GPIO_FN_FWE, NULL); |
| 614 | gpio_request(GPIO_FN_FRB, NULL); | 614 | gpio_request(GPIO_FN_FRB, NULL); |
| 615 | 615 | ||
| 616 | ctrl_outw(0, PORT_HIZCRC); | 616 | __raw_writew(0, PORT_HIZCRC); |
| 617 | ctrl_outw(0xFFFF, PORT_DRVCRA); | 617 | __raw_writew(0xFFFF, PORT_DRVCRA); |
| 618 | ctrl_outw(0xFFFF, PORT_DRVCRB); | 618 | __raw_writew(0xFFFF, PORT_DRVCRB); |
| 619 | 619 | ||
| 620 | platform_resource_setup_memory(&ceu_device, "ceu", 4 << 20); | 620 | platform_resource_setup_memory(&ceu_device, "ceu", 4 << 20); |
| 621 | 621 | ||
