diff options
Diffstat (limited to 'arch/sh/boards/mach-ecovec24/setup.c')
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index a49cce16e783..1135c3b848f2 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -696,13 +696,13 @@ static struct platform_device camera_devices[] = { | |||
696 | #define FCLKBCR 0xa415000c | 696 | #define FCLKBCR 0xa415000c |
697 | static void fsimck_init(struct clk *clk) | 697 | static void fsimck_init(struct clk *clk) |
698 | { | 698 | { |
699 | u32 status = ctrl_inl(clk->enable_reg); | 699 | u32 status = __raw_readl(clk->enable_reg); |
700 | 700 | ||
701 | /* use external clock */ | 701 | /* use external clock */ |
702 | status &= ~0x000000ff; | 702 | status &= ~0x000000ff; |
703 | status |= 0x00000080; | 703 | status |= 0x00000080; |
704 | 704 | ||
705 | ctrl_outl(status, clk->enable_reg); | 705 | __raw_writel(status, clk->enable_reg); |
706 | } | 706 | } |
707 | 707 | ||
708 | static struct clk_ops fsimck_clk_ops = { | 708 | static struct clk_ops fsimck_clk_ops = { |
@@ -853,7 +853,7 @@ static int __init arch_setup(void) | |||
853 | gpio_direction_output(GPIO_PTG1, 0); | 853 | gpio_direction_output(GPIO_PTG1, 0); |
854 | gpio_direction_output(GPIO_PTG2, 0); | 854 | gpio_direction_output(GPIO_PTG2, 0); |
855 | gpio_direction_output(GPIO_PTG3, 0); | 855 | gpio_direction_output(GPIO_PTG3, 0); |
856 | ctrl_outw((ctrl_inw(PORT_HIZA) & ~(0x1 << 1)) , PORT_HIZA); | 856 | __raw_writew((__raw_readw(PORT_HIZA) & ~(0x1 << 1)) , PORT_HIZA); |
857 | 857 | ||
858 | /* enable SH-Eth */ | 858 | /* enable SH-Eth */ |
859 | gpio_request(GPIO_PTA1, NULL); | 859 | gpio_request(GPIO_PTA1, NULL); |
@@ -873,16 +873,16 @@ static int __init arch_setup(void) | |||
873 | gpio_request(GPIO_FN_LNKSTA, NULL); | 873 | gpio_request(GPIO_FN_LNKSTA, NULL); |
874 | 874 | ||
875 | /* enable USB */ | 875 | /* enable USB */ |
876 | ctrl_outw(0x0000, 0xA4D80000); | 876 | __raw_writew(0x0000, 0xA4D80000); |
877 | ctrl_outw(0x0000, 0xA4D90000); | 877 | __raw_writew(0x0000, 0xA4D90000); |
878 | gpio_request(GPIO_PTB3, NULL); | 878 | gpio_request(GPIO_PTB3, NULL); |
879 | gpio_request(GPIO_PTB4, NULL); | 879 | gpio_request(GPIO_PTB4, NULL); |
880 | gpio_request(GPIO_PTB5, NULL); | 880 | gpio_request(GPIO_PTB5, NULL); |
881 | gpio_direction_input(GPIO_PTB3); | 881 | gpio_direction_input(GPIO_PTB3); |
882 | gpio_direction_output(GPIO_PTB4, 0); | 882 | gpio_direction_output(GPIO_PTB4, 0); |
883 | gpio_direction_output(GPIO_PTB5, 0); | 883 | gpio_direction_output(GPIO_PTB5, 0); |
884 | ctrl_outw(0x0600, 0xa40501d4); | 884 | __raw_writew(0x0600, 0xa40501d4); |
885 | ctrl_outw(0x0600, 0xa4050192); | 885 | __raw_writew(0x0600, 0xa4050192); |
886 | 886 | ||
887 | if (gpio_get_value(GPIO_PTB3)) { | 887 | if (gpio_get_value(GPIO_PTB3)) { |
888 | printk(KERN_INFO "USB1 function is selected\n"); | 888 | printk(KERN_INFO "USB1 function is selected\n"); |
@@ -923,7 +923,7 @@ static int __init arch_setup(void) | |||
923 | gpio_request(GPIO_FN_LCDVSYN, NULL); | 923 | gpio_request(GPIO_FN_LCDVSYN, NULL); |
924 | gpio_request(GPIO_FN_LCDDON, NULL); | 924 | gpio_request(GPIO_FN_LCDDON, NULL); |
925 | gpio_request(GPIO_FN_LCDLCLK, NULL); | 925 | gpio_request(GPIO_FN_LCDLCLK, NULL); |
926 | ctrl_outw((ctrl_inw(PORT_HIZA) & ~0x0001), PORT_HIZA); | 926 | __raw_writew((__raw_readw(PORT_HIZA) & ~0x0001), PORT_HIZA); |
927 | 927 | ||
928 | gpio_request(GPIO_PTE6, NULL); | 928 | gpio_request(GPIO_PTE6, NULL); |
929 | gpio_request(GPIO_PTU1, NULL); | 929 | gpio_request(GPIO_PTU1, NULL); |
@@ -935,7 +935,7 @@ static int __init arch_setup(void) | |||
935 | gpio_direction_output(GPIO_PTA2, 0); | 935 | gpio_direction_output(GPIO_PTA2, 0); |
936 | 936 | ||
937 | /* I/O buffer drive ability is high */ | 937 | /* I/O buffer drive ability is high */ |
938 | ctrl_outw((ctrl_inw(IODRIVEA) & ~0x00c0) | 0x0080 , IODRIVEA); | 938 | __raw_writew((__raw_readw(IODRIVEA) & ~0x00c0) | 0x0080 , IODRIVEA); |
939 | 939 | ||
940 | if (gpio_get_value(GPIO_PTE6)) { | 940 | if (gpio_get_value(GPIO_PTE6)) { |
941 | /* DVI */ | 941 | /* DVI */ |
@@ -1067,7 +1067,7 @@ static int __init arch_setup(void) | |||
1067 | gpio_direction_output(GPIO_PTB7, 0); | 1067 | gpio_direction_output(GPIO_PTB7, 0); |
1068 | 1068 | ||
1069 | /* I/O buffer drive ability is high for SDHI1 */ | 1069 | /* I/O buffer drive ability is high for SDHI1 */ |
1070 | ctrl_outw((ctrl_inw(IODRIVEA) & ~0x3000) | 0x2000 , IODRIVEA); | 1070 | __raw_writew((__raw_readw(IODRIVEA) & ~0x3000) | 0x2000 , IODRIVEA); |
1071 | #else | 1071 | #else |
1072 | /* enable MSIOF0 on CN11 (needs DS2.4 set to OFF) */ | 1072 | /* enable MSIOF0 on CN11 (needs DS2.4 set to OFF) */ |
1073 | gpio_request(GPIO_FN_MSIOF0_TXD, NULL); | 1073 | gpio_request(GPIO_FN_MSIOF0_TXD, NULL); |