diff options
Diffstat (limited to 'arch/mips/mips-boards/generic')
-rw-r--r-- | arch/mips/mips-boards/generic/display.c | 8 | ||||
-rw-r--r-- | arch/mips/mips-boards/generic/pci.c | 4 | ||||
-rw-r--r-- | arch/mips/mips-boards/generic/reset.c | 12 |
3 files changed, 12 insertions, 12 deletions
diff --git a/arch/mips/mips-boards/generic/display.c b/arch/mips/mips-boards/generic/display.c index f653946afc23..548dbe5ce7c8 100644 --- a/arch/mips/mips-boards/generic/display.c +++ b/arch/mips/mips-boards/generic/display.c | |||
@@ -24,16 +24,16 @@ | |||
24 | 24 | ||
25 | void mips_display_message(const char *str) | 25 | void mips_display_message(const char *str) |
26 | { | 26 | { |
27 | static volatile unsigned int *display = NULL; | 27 | static unsigned int __iomem *display = NULL; |
28 | int i; | 28 | int i; |
29 | 29 | ||
30 | if (unlikely(display == NULL)) | 30 | if (unlikely(display == NULL)) |
31 | display = (volatile unsigned int *)ioremap(ASCII_DISPLAY_POS_BASE, 16*sizeof(int)); | 31 | display = ioremap(ASCII_DISPLAY_POS_BASE, 16*sizeof(int)); |
32 | 32 | ||
33 | for (i = 0; i <= 14; i=i+2) { | 33 | for (i = 0; i <= 14; i=i+2) { |
34 | if (*str) | 34 | if (*str) |
35 | display[i] = *str++; | 35 | writel(*str++, display + i); |
36 | else | 36 | else |
37 | display[i] = ' '; | 37 | writel(' ', display + i); |
38 | } | 38 | } |
39 | } | 39 | } |
diff --git a/arch/mips/mips-boards/generic/pci.c b/arch/mips/mips-boards/generic/pci.c index 3192a14698c8..f98d60f78658 100644 --- a/arch/mips/mips-boards/generic/pci.c +++ b/arch/mips/mips-boards/generic/pci.c | |||
@@ -65,7 +65,7 @@ static struct resource msc_io_resource = { | |||
65 | }; | 65 | }; |
66 | 66 | ||
67 | extern struct pci_ops bonito64_pci_ops; | 67 | extern struct pci_ops bonito64_pci_ops; |
68 | extern struct pci_ops gt64120_pci_ops; | 68 | extern struct pci_ops gt64xxx_pci0_ops; |
69 | extern struct pci_ops msc_pci_ops; | 69 | extern struct pci_ops msc_pci_ops; |
70 | 70 | ||
71 | static struct pci_controller bonito64_controller = { | 71 | static struct pci_controller bonito64_controller = { |
@@ -76,7 +76,7 @@ static struct pci_controller bonito64_controller = { | |||
76 | }; | 76 | }; |
77 | 77 | ||
78 | static struct pci_controller gt64120_controller = { | 78 | static struct pci_controller gt64120_controller = { |
79 | .pci_ops = >64120_pci_ops, | 79 | .pci_ops = >64xxx_pci0_ops, |
80 | .io_resource = >64120_io_resource, | 80 | .io_resource = >64120_io_resource, |
81 | .mem_resource = >64120_mem_resource, | 81 | .mem_resource = >64120_mem_resource, |
82 | }; | 82 | }; |
diff --git a/arch/mips/mips-boards/generic/reset.c b/arch/mips/mips-boards/generic/reset.c index 0996ba368b2a..7a1bb51f81ee 100644 --- a/arch/mips/mips-boards/generic/reset.c +++ b/arch/mips/mips-boards/generic/reset.c | |||
@@ -39,24 +39,24 @@ static void atlas_machine_power_off(void); | |||
39 | 39 | ||
40 | static void mips_machine_restart(char *command) | 40 | static void mips_machine_restart(char *command) |
41 | { | 41 | { |
42 | volatile unsigned int *softres_reg = (unsigned int *)ioremap (SOFTRES_REG, sizeof(unsigned int)); | 42 | unsigned int __iomem *softres_reg = ioremap(SOFTRES_REG, sizeof(unsigned int)); |
43 | 43 | ||
44 | *softres_reg = GORESET; | 44 | writew(GORESET, softres_reg); |
45 | } | 45 | } |
46 | 46 | ||
47 | static void mips_machine_halt(void) | 47 | static void mips_machine_halt(void) |
48 | { | 48 | { |
49 | volatile unsigned int *softres_reg = (unsigned int *)ioremap (SOFTRES_REG, sizeof(unsigned int)); | 49 | unsigned int __iomem *softres_reg = ioremap(SOFTRES_REG, sizeof(unsigned int)); |
50 | 50 | ||
51 | *softres_reg = GORESET; | 51 | writew(GORESET, softres_reg); |
52 | } | 52 | } |
53 | 53 | ||
54 | #if defined(CONFIG_MIPS_ATLAS) | 54 | #if defined(CONFIG_MIPS_ATLAS) |
55 | static void atlas_machine_power_off(void) | 55 | static void atlas_machine_power_off(void) |
56 | { | 56 | { |
57 | volatile unsigned int *psustby_reg = (unsigned int *)ioremap(ATLAS_PSUSTBY_REG, sizeof(unsigned int)); | 57 | unsigned int __iomem *psustby_reg = ioremap(ATLAS_PSUSTBY_REG, sizeof(unsigned int)); |
58 | 58 | ||
59 | *psustby_reg = ATLAS_GOSTBY; | 59 | writew(ATLAS_GOSTBY, psustby_reg); |
60 | } | 60 | } |
61 | #endif | 61 | #endif |
62 | 62 | ||