diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 06:59:30 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-01 04:00:22 -0500 |
commit | 7034228792cc561e79ff8600f02884bd4c80e287 (patch) | |
tree | 89b77af37d087d9de236fc5d21f60bf552d0a2c6 /arch/mips/netlogic | |
parent | 405ab01c70e18058d9c01a1256769a61fc65413e (diff) |
MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/netlogic')
-rw-r--r-- | arch/mips/netlogic/Platform | 4 | ||||
-rw-r--r-- | arch/mips/netlogic/common/irq.c | 4 | ||||
-rw-r--r-- | arch/mips/netlogic/common/smpboot.S | 14 | ||||
-rw-r--r-- | arch/mips/netlogic/dts/xlp_evp.dts | 2 | ||||
-rw-r--r-- | arch/mips/netlogic/xlp/nlm_hal.c | 4 | ||||
-rw-r--r-- | arch/mips/netlogic/xlp/usb-init.c | 2 | ||||
-rw-r--r-- | arch/mips/netlogic/xlr/fmn-config.c | 4 | ||||
-rw-r--r-- | arch/mips/netlogic/xlr/platform-flash.c | 12 | ||||
-rw-r--r-- | arch/mips/netlogic/xlr/platform.c | 10 | ||||
-rw-r--r-- | arch/mips/netlogic/xlr/setup.c | 2 |
10 files changed, 29 insertions, 29 deletions
diff --git a/arch/mips/netlogic/Platform b/arch/mips/netlogic/Platform index cdfc9abbbb7b..fb8eb4c0c6ec 100644 --- a/arch/mips/netlogic/Platform +++ b/arch/mips/netlogic/Platform | |||
@@ -13,5 +13,5 @@ cflags-$(CONFIG_CPU_XLP) += $(call cc-option,-march=xlp,-march=mips64r2) | |||
13 | # | 13 | # |
14 | # NETLOGIC processor support | 14 | # NETLOGIC processor support |
15 | # | 15 | # |
16 | platform-$(CONFIG_NLM_COMMON) += netlogic/ | 16 | platform-$(CONFIG_NLM_COMMON) += netlogic/ |
17 | load-$(CONFIG_NLM_COMMON) += 0xffffffff80100000 | 17 | load-$(CONFIG_NLM_COMMON) += 0xffffffff80100000 |
diff --git a/arch/mips/netlogic/common/irq.c b/arch/mips/netlogic/common/irq.c index 00dcc7a2bc5a..780832e391ff 100644 --- a/arch/mips/netlogic/common/irq.c +++ b/arch/mips/netlogic/common/irq.c | |||
@@ -69,7 +69,7 @@ | |||
69 | #else | 69 | #else |
70 | #define SMP_IRQ_MASK 0 | 70 | #define SMP_IRQ_MASK 0 |
71 | #endif | 71 | #endif |
72 | #define PERCPU_IRQ_MASK (SMP_IRQ_MASK | (1ull << IRQ_TIMER) | \ | 72 | #define PERCPU_IRQ_MASK (SMP_IRQ_MASK | (1ull << IRQ_TIMER) | \ |
73 | (1ull << IRQ_FMN)) | 73 | (1ull << IRQ_FMN)) |
74 | 74 | ||
75 | struct nlm_pic_irq { | 75 | struct nlm_pic_irq { |
@@ -107,7 +107,7 @@ static void xlp_pic_mask_ack(struct irq_data *d) | |||
107 | struct nlm_pic_irq *pd = irq_data_get_irq_handler_data(d); | 107 | struct nlm_pic_irq *pd = irq_data_get_irq_handler_data(d); |
108 | uint64_t mask = 1ull << pd->picirq; | 108 | uint64_t mask = 1ull << pd->picirq; |
109 | 109 | ||
110 | write_c0_eirr(mask); /* ack by writing EIRR */ | 110 | write_c0_eirr(mask); /* ack by writing EIRR */ |
111 | } | 111 | } |
112 | 112 | ||
113 | static void xlp_pic_unmask(struct irq_data *d) | 113 | static void xlp_pic_unmask(struct irq_data *d) |
diff --git a/arch/mips/netlogic/common/smpboot.S b/arch/mips/netlogic/common/smpboot.S index a0b74874bebe..280ff5855ef7 100644 --- a/arch/mips/netlogic/common/smpboot.S +++ b/arch/mips/netlogic/common/smpboot.S | |||
@@ -49,12 +49,12 @@ | |||
49 | #include <asm/netlogic/xlp-hal/sys.h> | 49 | #include <asm/netlogic/xlp-hal/sys.h> |
50 | #include <asm/netlogic/xlp-hal/cpucontrol.h> | 50 | #include <asm/netlogic/xlp-hal/cpucontrol.h> |
51 | 51 | ||
52 | #define CP0_EBASE $15 | 52 | #define CP0_EBASE $15 |
53 | #define SYS_CPU_COHERENT_BASE(node) CKSEG1ADDR(XLP_DEFAULT_IO_BASE) + \ | 53 | #define SYS_CPU_COHERENT_BASE(node) CKSEG1ADDR(XLP_DEFAULT_IO_BASE) + \ |
54 | XLP_IO_SYS_OFFSET(node) + XLP_IO_PCI_HDRSZ + \ | 54 | XLP_IO_SYS_OFFSET(node) + XLP_IO_PCI_HDRSZ + \ |
55 | SYS_CPU_NONCOHERENT_MODE * 4 | 55 | SYS_CPU_NONCOHERENT_MODE * 4 |
56 | 56 | ||
57 | #define XLP_AX_WORKAROUND /* enable Ax silicon workarounds */ | 57 | #define XLP_AX_WORKAROUND /* enable Ax silicon workarounds */ |
58 | 58 | ||
59 | /* Enable XLP features and workarounds in the LSU */ | 59 | /* Enable XLP features and workarounds in the LSU */ |
60 | .macro xlp_config_lsu | 60 | .macro xlp_config_lsu |
@@ -85,7 +85,7 @@ | |||
85 | li t0, LSU_DEBUG_DATA0 | 85 | li t0, LSU_DEBUG_DATA0 |
86 | li t1, LSU_DEBUG_ADDR | 86 | li t1, LSU_DEBUG_ADDR |
87 | li t2, 0 /* index */ | 87 | li t2, 0 /* index */ |
88 | li t3, 0x1000 /* loop count */ | 88 | li t3, 0x1000 /* loop count */ |
89 | 1: | 89 | 1: |
90 | sll v0, t2, 5 | 90 | sll v0, t2, 5 |
91 | mtcr zero, t0 | 91 | mtcr zero, t0 |
@@ -134,7 +134,7 @@ FEXPORT(nlm_reset_entry) | |||
134 | and k1, k0, k1 | 134 | and k1, k0, k1 |
135 | beqz k1, 1f /* go to real reset entry */ | 135 | beqz k1, 1f /* go to real reset entry */ |
136 | nop | 136 | nop |
137 | li k1, CKSEG1ADDR(RESET_DATA_PHYS) /* NMI */ | 137 | li k1, CKSEG1ADDR(RESET_DATA_PHYS) /* NMI */ |
138 | ld k0, BOOT_NMI_HANDLER(k1) | 138 | ld k0, BOOT_NMI_HANDLER(k1) |
139 | jr k0 | 139 | jr k0 |
140 | nop | 140 | nop |
@@ -235,7 +235,7 @@ EXPORT(nlm_reset_entry_end) | |||
235 | 235 | ||
236 | FEXPORT(xlp_boot_core0_siblings) /* "Master" cpu starts from here */ | 236 | FEXPORT(xlp_boot_core0_siblings) /* "Master" cpu starts from here */ |
237 | xlp_config_lsu | 237 | xlp_config_lsu |
238 | dmtc0 sp, $4, 2 /* SP saved in UserLocal */ | 238 | dmtc0 sp, $4, 2 /* SP saved in UserLocal */ |
239 | SAVE_ALL | 239 | SAVE_ALL |
240 | sync | 240 | sync |
241 | /* find the location to which nlm_boot_siblings was relocated */ | 241 | /* find the location to which nlm_boot_siblings was relocated */ |
@@ -301,13 +301,13 @@ NESTED(nlm_rmiboot_preboot, 16, sp) | |||
301 | */ | 301 | */ |
302 | li t0, 0x400 | 302 | li t0, 0x400 |
303 | mfcr t1, t0 | 303 | mfcr t1, t0 |
304 | li t2, 6 /* XLR thread mode mask */ | 304 | li t2, 6 /* XLR thread mode mask */ |
305 | nor t3, t2, zero | 305 | nor t3, t2, zero |
306 | and t2, t1, t2 /* t2 - current thread mode */ | 306 | and t2, t1, t2 /* t2 - current thread mode */ |
307 | li v0, CKSEG1ADDR(RESET_DATA_PHYS) | 307 | li v0, CKSEG1ADDR(RESET_DATA_PHYS) |
308 | lw v1, BOOT_THREAD_MODE(v0) /* v1 - new thread mode */ | 308 | lw v1, BOOT_THREAD_MODE(v0) /* v1 - new thread mode */ |
309 | sll v1, 1 | 309 | sll v1, 1 |
310 | beq v1, t2, 1f /* same as request value */ | 310 | beq v1, t2, 1f /* same as request value */ |
311 | nop /* nothing to do */ | 311 | nop /* nothing to do */ |
312 | 312 | ||
313 | and t2, t1, t3 /* mask out old thread mode */ | 313 | and t2, t1, t3 /* mask out old thread mode */ |
diff --git a/arch/mips/netlogic/dts/xlp_evp.dts b/arch/mips/netlogic/dts/xlp_evp.dts index e14f42308064..7628b5464fc7 100644 --- a/arch/mips/netlogic/dts/xlp_evp.dts +++ b/arch/mips/netlogic/dts/xlp_evp.dts | |||
@@ -20,7 +20,7 @@ | |||
20 | #address-cells = <2>; | 20 | #address-cells = <2>; |
21 | #size-cells = <1>; | 21 | #size-cells = <1>; |
22 | compatible = "simple-bus"; | 22 | compatible = "simple-bus"; |
23 | ranges = <0 0 0 0x18000000 0x04000000 // PCIe CFG | 23 | ranges = <0 0 0 0x18000000 0x04000000 // PCIe CFG |
24 | 1 0 0 0x16000000 0x01000000>; // GBU chipselects | 24 | 1 0 0 0x16000000 0x01000000>; // GBU chipselects |
25 | 25 | ||
26 | serial0: serial@30000 { | 26 | serial0: serial@30000 { |
diff --git a/arch/mips/netlogic/xlp/nlm_hal.c b/arch/mips/netlogic/xlp/nlm_hal.c index 529e74742d9f..c68fd4026104 100644 --- a/arch/mips/netlogic/xlp/nlm_hal.c +++ b/arch/mips/netlogic/xlp/nlm_hal.c | |||
@@ -111,8 +111,8 @@ unsigned int nlm_get_core_frequency(int node, int core) | |||
111 | dfsval = nlm_read_sys_reg(sysbase, SYS_CORE_DFS_DIV_VALUE); | 111 | dfsval = nlm_read_sys_reg(sysbase, SYS_CORE_DFS_DIV_VALUE); |
112 | pll_divf = ((rstval >> 10) & 0x7f) + 1; | 112 | pll_divf = ((rstval >> 10) & 0x7f) + 1; |
113 | pll_divr = ((rstval >> 8) & 0x3) + 1; | 113 | pll_divr = ((rstval >> 8) & 0x3) + 1; |
114 | ext_div = ((rstval >> 30) & 0x3) + 1; | 114 | ext_div = ((rstval >> 30) & 0x3) + 1; |
115 | dfs_div = ((dfsval >> (core * 4)) & 0xf) + 1; | 115 | dfs_div = ((dfsval >> (core * 4)) & 0xf) + 1; |
116 | 116 | ||
117 | num = 800000000ULL * pll_divf; | 117 | num = 800000000ULL * pll_divf; |
118 | denom = 3 * pll_divr * ext_div * dfs_div; | 118 | denom = 3 * pll_divr * ext_div * dfs_div; |
diff --git a/arch/mips/netlogic/xlp/usb-init.c b/arch/mips/netlogic/xlp/usb-init.c index dbe083a93538..1d0b66c62fd1 100644 --- a/arch/mips/netlogic/xlp/usb-init.c +++ b/arch/mips/netlogic/xlp/usb-init.c | |||
@@ -52,7 +52,7 @@ static void nlm_usb_intr_en(int node, int port) | |||
52 | port_addr = nlm_get_usb_regbase(node, port); | 52 | port_addr = nlm_get_usb_regbase(node, port); |
53 | val = nlm_read_usb_reg(port_addr, USB_INT_EN); | 53 | val = nlm_read_usb_reg(port_addr, USB_INT_EN); |
54 | val = USB_CTRL_INTERRUPT_EN | USB_OHCI_INTERRUPT_EN | | 54 | val = USB_CTRL_INTERRUPT_EN | USB_OHCI_INTERRUPT_EN | |
55 | USB_OHCI_INTERRUPT1_EN | USB_CTRL_INTERRUPT_EN | | 55 | USB_OHCI_INTERRUPT1_EN | USB_CTRL_INTERRUPT_EN | |
56 | USB_OHCI_INTERRUPT_EN | USB_OHCI_INTERRUPT2_EN; | 56 | USB_OHCI_INTERRUPT_EN | USB_OHCI_INTERRUPT2_EN; |
57 | nlm_write_usb_reg(port_addr, USB_INT_EN, val); | 57 | nlm_write_usb_reg(port_addr, USB_INT_EN, val); |
58 | } | 58 | } |
diff --git a/arch/mips/netlogic/xlr/fmn-config.c b/arch/mips/netlogic/xlr/fmn-config.c index bed2cffa1008..f5bddf95bf24 100644 --- a/arch/mips/netlogic/xlr/fmn-config.c +++ b/arch/mips/netlogic/xlr/fmn-config.c | |||
@@ -164,8 +164,8 @@ static void setup_cpu_fmninfo(struct xlr_fmn_info *cpu, int num_core) | |||
164 | int i, j; | 164 | int i, j; |
165 | 165 | ||
166 | for (i = 0; i < num_core; i++) { | 166 | for (i = 0; i < num_core; i++) { |
167 | cpu[i].start_stn_id = (8 * i); | 167 | cpu[i].start_stn_id = (8 * i); |
168 | cpu[i].end_stn_id = (8 * i + 8); | 168 | cpu[i].end_stn_id = (8 * i + 8); |
169 | 169 | ||
170 | for (j = cpu[i].start_stn_id; j < cpu[i].end_stn_id; j++) | 170 | for (j = cpu[i].start_stn_id; j < cpu[i].end_stn_id; j++) |
171 | xlr_board_fmn_config.bucket_size[j] = 32; | 171 | xlr_board_fmn_config.bucket_size[j] = 32; |
diff --git a/arch/mips/netlogic/xlr/platform-flash.c b/arch/mips/netlogic/xlr/platform-flash.c index 340ab1601c42..6d3c727e0ef8 100644 --- a/arch/mips/netlogic/xlr/platform-flash.c +++ b/arch/mips/netlogic/xlr/platform-flash.c | |||
@@ -36,7 +36,7 @@ static struct mtd_partition xlr_nor_parts[] = { | |||
36 | { | 36 | { |
37 | .name = "User FS", | 37 | .name = "User FS", |
38 | .offset = 0x800000, | 38 | .offset = 0x800000, |
39 | .size = MTDPART_SIZ_FULL, | 39 | .size = MTDPART_SIZ_FULL, |
40 | } | 40 | } |
41 | }; | 41 | }; |
42 | 42 | ||
@@ -46,13 +46,13 @@ static struct mtd_partition xlr_nor_parts[] = { | |||
46 | static struct mtd_partition xlr_nand_parts[] = { | 46 | static struct mtd_partition xlr_nand_parts[] = { |
47 | { | 47 | { |
48 | .name = "Root Filesystem", | 48 | .name = "Root Filesystem", |
49 | .offset = 64 * 64 * 2048, | 49 | .offset = 64 * 64 * 2048, |
50 | .size = 432 * 64 * 2048, | 50 | .size = 432 * 64 * 2048, |
51 | }, | 51 | }, |
52 | { | 52 | { |
53 | .name = "Home Filesystem", | 53 | .name = "Home Filesystem", |
54 | .offset = MTDPART_OFS_APPEND, | 54 | .offset = MTDPART_OFS_APPEND, |
55 | .size = MTDPART_SIZ_FULL, | 55 | .size = MTDPART_SIZ_FULL, |
56 | }, | 56 | }, |
57 | }; | 57 | }; |
58 | 58 | ||
@@ -74,8 +74,8 @@ static struct platform_device xlr_nor_dev = { | |||
74 | .dev = { | 74 | .dev = { |
75 | .platform_data = &xlr_nor_data, | 75 | .platform_data = &xlr_nor_data, |
76 | }, | 76 | }, |
77 | .num_resources = ARRAY_SIZE(xlr_nor_res), | 77 | .num_resources = ARRAY_SIZE(xlr_nor_res), |
78 | .resource = xlr_nor_res, | 78 | .resource = xlr_nor_res, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | const char *xlr_part_probes[] = { "cmdlinepart", NULL }; | 81 | const char *xlr_part_probes[] = { "cmdlinepart", NULL }; |
diff --git a/arch/mips/netlogic/xlr/platform.c b/arch/mips/netlogic/xlr/platform.c index 507230eeb768..e287277d32b0 100644 --- a/arch/mips/netlogic/xlr/platform.c +++ b/arch/mips/netlogic/xlr/platform.c | |||
@@ -162,18 +162,18 @@ int xls_platform_usb_init(void) | |||
162 | nlm_write_reg(usb_mmio, 50, 0x1f000000); | 162 | nlm_write_reg(usb_mmio, 50, 0x1f000000); |
163 | 163 | ||
164 | /* Enable ports */ | 164 | /* Enable ports */ |
165 | nlm_write_reg(usb_mmio, 1, 0x07000500); | 165 | nlm_write_reg(usb_mmio, 1, 0x07000500); |
166 | 166 | ||
167 | val = nlm_read_reg(gpio_mmio, 21); | 167 | val = nlm_read_reg(gpio_mmio, 21); |
168 | if (((val >> 22) & 0x01) == 0) { | 168 | if (((val >> 22) & 0x01) == 0) { |
169 | pr_info("Detected USB Device mode - Not supported!\n"); | 169 | pr_info("Detected USB Device mode - Not supported!\n"); |
170 | nlm_write_reg(usb_mmio, 0, 0x01000000); | 170 | nlm_write_reg(usb_mmio, 0, 0x01000000); |
171 | return 0; | 171 | return 0; |
172 | } | 172 | } |
173 | 173 | ||
174 | pr_info("Detected USB Host mode - Adding XLS USB devices.\n"); | 174 | pr_info("Detected USB Host mode - Adding XLS USB devices.\n"); |
175 | /* Clear reset, host mode */ | 175 | /* Clear reset, host mode */ |
176 | nlm_write_reg(usb_mmio, 0, 0x02000000); | 176 | nlm_write_reg(usb_mmio, 0, 0x02000000); |
177 | 177 | ||
178 | /* Memory resource for various XLS usb ports */ | 178 | /* Memory resource for various XLS usb ports */ |
179 | usb_mmio = nlm_mmio_base(NETLOGIC_IO_USB_0_OFFSET); | 179 | usb_mmio = nlm_mmio_base(NETLOGIC_IO_USB_0_OFFSET); |
@@ -221,8 +221,8 @@ static struct resource i2c_resources[] = { | |||
221 | }; | 221 | }; |
222 | 222 | ||
223 | static struct platform_device nlm_xlr_i2c_1 = { | 223 | static struct platform_device nlm_xlr_i2c_1 = { |
224 | .name = "xlr-i2cbus", | 224 | .name = "xlr-i2cbus", |
225 | .id = 1, | 225 | .id = 1, |
226 | .num_resources = 1, | 226 | .num_resources = 1, |
227 | .resource = i2c_resources, | 227 | .resource = i2c_resources, |
228 | }; | 228 | }; |
diff --git a/arch/mips/netlogic/xlr/setup.c b/arch/mips/netlogic/xlr/setup.c index c5ce6992ac4c..f088efb8fe4c 100644 --- a/arch/mips/netlogic/xlr/setup.c +++ b/arch/mips/netlogic/xlr/setup.c | |||
@@ -163,7 +163,7 @@ static void prom_add_memory(void) | |||
163 | { | 163 | { |
164 | struct nlm_boot_mem_map *bootm; | 164 | struct nlm_boot_mem_map *bootm; |
165 | u64 start, size; | 165 | u64 start, size; |
166 | u64 pref_backup = 512; /* avoid pref walking beyond end */ | 166 | u64 pref_backup = 512; /* avoid pref walking beyond end */ |
167 | int i; | 167 | int i; |
168 | 168 | ||
169 | bootm = (void *)(long)nlm_prom_info.psb_mem_map; | 169 | bootm = (void *)(long)nlm_prom_info.psb_mem_map; |