diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-07-09 22:29:25 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-28 00:10:26 -0400 |
commit | 804ece07e957298fa15695677c92631744d620af (patch) | |
tree | 51792a28d83a3b635dc91d1acbac94d2fa12fb3b /arch/powerpc/platforms/powermac/feature.c | |
parent | 0f369103ce78c9948cfab8611031e6ac084b75a8 (diff) |
powerpc: Remove CONFIG_POWER4
Although the name CONFIG_POWER4 suggests that it controls support for
power4 cpus, this symbol is actually misnamed.
It is a historical wart from the powermac code, which used to support
building a 32-bit kernel for power4. CONFIG_POWER4 was used in that
context to guard code that was 64-bit only.
In the powermac code we can just use CONFIG_PPC64 instead, and in other
places it is a synonym for CONFIG_PPC_BOOK3S_64.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/powermac/feature.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/feature.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/arch/powerpc/platforms/powermac/feature.c b/arch/powerpc/platforms/powermac/feature.c index 63d82bbc05e9..1413e72bc2e1 100644 --- a/arch/powerpc/platforms/powermac/feature.c +++ b/arch/powerpc/platforms/powermac/feature.c | |||
@@ -158,7 +158,7 @@ static inline int simple_feature_tweak(struct device_node *node, int type, | |||
158 | return 0; | 158 | return 0; |
159 | } | 159 | } |
160 | 160 | ||
161 | #ifndef CONFIG_POWER4 | 161 | #ifndef CONFIG_PPC64 |
162 | 162 | ||
163 | static long ohare_htw_scc_enable(struct device_node *node, long param, | 163 | static long ohare_htw_scc_enable(struct device_node *node, long param, |
164 | long value) | 164 | long value) |
@@ -1318,7 +1318,7 @@ intrepid_aack_delay_enable(struct device_node *node, long param, long value) | |||
1318 | } | 1318 | } |
1319 | 1319 | ||
1320 | 1320 | ||
1321 | #endif /* CONFIG_POWER4 */ | 1321 | #endif /* CONFIG_PPC64 */ |
1322 | 1322 | ||
1323 | static long | 1323 | static long |
1324 | core99_read_gpio(struct device_node *node, long param, long value) | 1324 | core99_read_gpio(struct device_node *node, long param, long value) |
@@ -1338,7 +1338,7 @@ core99_write_gpio(struct device_node *node, long param, long value) | |||
1338 | return 0; | 1338 | return 0; |
1339 | } | 1339 | } |
1340 | 1340 | ||
1341 | #ifdef CONFIG_POWER4 | 1341 | #ifdef CONFIG_PPC64 |
1342 | static long g5_gmac_enable(struct device_node *node, long param, long value) | 1342 | static long g5_gmac_enable(struct device_node *node, long param, long value) |
1343 | { | 1343 | { |
1344 | struct macio_chip *macio = &macio_chips[0]; | 1344 | struct macio_chip *macio = &macio_chips[0]; |
@@ -1550,9 +1550,9 @@ void g5_phy_disable_cpu1(void) | |||
1550 | if (uninorth_maj == 3) | 1550 | if (uninorth_maj == 3) |
1551 | UN_OUT(U3_API_PHY_CONFIG_1, 0); | 1551 | UN_OUT(U3_API_PHY_CONFIG_1, 0); |
1552 | } | 1552 | } |
1553 | #endif /* CONFIG_POWER4 */ | 1553 | #endif /* CONFIG_PPC64 */ |
1554 | 1554 | ||
1555 | #ifndef CONFIG_POWER4 | 1555 | #ifndef CONFIG_PPC64 |
1556 | 1556 | ||
1557 | 1557 | ||
1558 | #ifdef CONFIG_PM | 1558 | #ifdef CONFIG_PM |
@@ -1864,7 +1864,7 @@ core99_sleep_state(struct device_node *node, long param, long value) | |||
1864 | return 0; | 1864 | return 0; |
1865 | } | 1865 | } |
1866 | 1866 | ||
1867 | #endif /* CONFIG_POWER4 */ | 1867 | #endif /* CONFIG_PPC64 */ |
1868 | 1868 | ||
1869 | static long | 1869 | static long |
1870 | generic_dev_can_wake(struct device_node *node, long param, long value) | 1870 | generic_dev_can_wake(struct device_node *node, long param, long value) |
@@ -1906,7 +1906,7 @@ static struct feature_table_entry any_features[] = { | |||
1906 | { 0, NULL } | 1906 | { 0, NULL } |
1907 | }; | 1907 | }; |
1908 | 1908 | ||
1909 | #ifndef CONFIG_POWER4 | 1909 | #ifndef CONFIG_PPC64 |
1910 | 1910 | ||
1911 | /* OHare based motherboards. Currently, we only use these on the | 1911 | /* OHare based motherboards. Currently, we only use these on the |
1912 | * 2400,3400 and 3500 series powerbooks. Some older desktops seem | 1912 | * 2400,3400 and 3500 series powerbooks. Some older desktops seem |
@@ -2056,7 +2056,7 @@ static struct feature_table_entry intrepid_features[] = { | |||
2056 | { 0, NULL } | 2056 | { 0, NULL } |
2057 | }; | 2057 | }; |
2058 | 2058 | ||
2059 | #else /* CONFIG_POWER4 */ | 2059 | #else /* CONFIG_PPC64 */ |
2060 | 2060 | ||
2061 | /* G5 features | 2061 | /* G5 features |
2062 | */ | 2062 | */ |
@@ -2074,10 +2074,10 @@ static struct feature_table_entry g5_features[] = { | |||
2074 | { 0, NULL } | 2074 | { 0, NULL } |
2075 | }; | 2075 | }; |
2076 | 2076 | ||
2077 | #endif /* CONFIG_POWER4 */ | 2077 | #endif /* CONFIG_PPC64 */ |
2078 | 2078 | ||
2079 | static struct pmac_mb_def pmac_mb_defs[] = { | 2079 | static struct pmac_mb_def pmac_mb_defs[] = { |
2080 | #ifndef CONFIG_POWER4 | 2080 | #ifndef CONFIG_PPC64 |
2081 | /* | 2081 | /* |
2082 | * Desktops | 2082 | * Desktops |
2083 | */ | 2083 | */ |
@@ -2342,7 +2342,7 @@ static struct pmac_mb_def pmac_mb_defs[] = { | |||
2342 | PMAC_TYPE_UNKNOWN_INTREPID, intrepid_features, | 2342 | PMAC_TYPE_UNKNOWN_INTREPID, intrepid_features, |
2343 | PMAC_MB_MAY_SLEEP | PMAC_MB_HAS_FW_POWER | PMAC_MB_MOBILE, | 2343 | PMAC_MB_MAY_SLEEP | PMAC_MB_HAS_FW_POWER | PMAC_MB_MOBILE, |
2344 | }, | 2344 | }, |
2345 | #else /* CONFIG_POWER4 */ | 2345 | #else /* CONFIG_PPC64 */ |
2346 | { "PowerMac7,2", "PowerMac G5", | 2346 | { "PowerMac7,2", "PowerMac G5", |
2347 | PMAC_TYPE_POWERMAC_G5, g5_features, | 2347 | PMAC_TYPE_POWERMAC_G5, g5_features, |
2348 | 0, | 2348 | 0, |
@@ -2373,7 +2373,7 @@ static struct pmac_mb_def pmac_mb_defs[] = { | |||
2373 | 0, | 2373 | 0, |
2374 | }, | 2374 | }, |
2375 | #endif /* CONFIG_PPC64 */ | 2375 | #endif /* CONFIG_PPC64 */ |
2376 | #endif /* CONFIG_POWER4 */ | 2376 | #endif /* CONFIG_PPC64 */ |
2377 | }; | 2377 | }; |
2378 | 2378 | ||
2379 | /* | 2379 | /* |
@@ -2441,7 +2441,7 @@ static int __init probe_motherboard(void) | |||
2441 | 2441 | ||
2442 | /* Fallback to selection depending on mac-io chip type */ | 2442 | /* Fallback to selection depending on mac-io chip type */ |
2443 | switch(macio->type) { | 2443 | switch(macio->type) { |
2444 | #ifndef CONFIG_POWER4 | 2444 | #ifndef CONFIG_PPC64 |
2445 | case macio_grand_central: | 2445 | case macio_grand_central: |
2446 | pmac_mb.model_id = PMAC_TYPE_PSURGE; | 2446 | pmac_mb.model_id = PMAC_TYPE_PSURGE; |
2447 | pmac_mb.model_name = "Unknown PowerSurge"; | 2447 | pmac_mb.model_name = "Unknown PowerSurge"; |
@@ -2475,7 +2475,7 @@ static int __init probe_motherboard(void) | |||
2475 | pmac_mb.model_name = "Unknown Intrepid-based"; | 2475 | pmac_mb.model_name = "Unknown Intrepid-based"; |
2476 | pmac_mb.features = intrepid_features; | 2476 | pmac_mb.features = intrepid_features; |
2477 | break; | 2477 | break; |
2478 | #else /* CONFIG_POWER4 */ | 2478 | #else /* CONFIG_PPC64 */ |
2479 | case macio_keylargo2: | 2479 | case macio_keylargo2: |
2480 | pmac_mb.model_id = PMAC_TYPE_UNKNOWN_K2; | 2480 | pmac_mb.model_id = PMAC_TYPE_UNKNOWN_K2; |
2481 | pmac_mb.model_name = "Unknown K2-based"; | 2481 | pmac_mb.model_name = "Unknown K2-based"; |
@@ -2486,13 +2486,13 @@ static int __init probe_motherboard(void) | |||
2486 | pmac_mb.model_name = "Unknown Shasta-based"; | 2486 | pmac_mb.model_name = "Unknown Shasta-based"; |
2487 | pmac_mb.features = g5_features; | 2487 | pmac_mb.features = g5_features; |
2488 | break; | 2488 | break; |
2489 | #endif /* CONFIG_POWER4 */ | 2489 | #endif /* CONFIG_PPC64 */ |
2490 | default: | 2490 | default: |
2491 | ret = -ENODEV; | 2491 | ret = -ENODEV; |
2492 | goto done; | 2492 | goto done; |
2493 | } | 2493 | } |
2494 | found: | 2494 | found: |
2495 | #ifndef CONFIG_POWER4 | 2495 | #ifndef CONFIG_PPC64 |
2496 | /* Fixup Hooper vs. Comet */ | 2496 | /* Fixup Hooper vs. Comet */ |
2497 | if (pmac_mb.model_id == PMAC_TYPE_HOOPER) { | 2497 | if (pmac_mb.model_id == PMAC_TYPE_HOOPER) { |
2498 | u32 __iomem * mach_id_ptr = ioremap(0xf3000034, 4); | 2498 | u32 __iomem * mach_id_ptr = ioremap(0xf3000034, 4); |
@@ -2546,9 +2546,9 @@ found: | |||
2546 | */ | 2546 | */ |
2547 | powersave_lowspeed = 1; | 2547 | powersave_lowspeed = 1; |
2548 | 2548 | ||
2549 | #else /* CONFIG_POWER4 */ | 2549 | #else /* CONFIG_PPC64 */ |
2550 | powersave_nap = 1; | 2550 | powersave_nap = 1; |
2551 | #endif /* CONFIG_POWER4 */ | 2551 | #endif /* CONFIG_PPC64 */ |
2552 | 2552 | ||
2553 | /* Check for "mobile" machine */ | 2553 | /* Check for "mobile" machine */ |
2554 | if (model && (strncmp(model, "PowerBook", 9) == 0 | 2554 | if (model && (strncmp(model, "PowerBook", 9) == 0 |
@@ -2786,7 +2786,7 @@ set_initial_features(void) | |||
2786 | MACIO_BIS(OHARE_FCR, OH_IOBUS_ENABLE); | 2786 | MACIO_BIS(OHARE_FCR, OH_IOBUS_ENABLE); |
2787 | } | 2787 | } |
2788 | 2788 | ||
2789 | #ifdef CONFIG_POWER4 | 2789 | #ifdef CONFIG_PPC64 |
2790 | if (macio_chips[0].type == macio_keylargo2 || | 2790 | if (macio_chips[0].type == macio_keylargo2 || |
2791 | macio_chips[0].type == macio_shasta) { | 2791 | macio_chips[0].type == macio_shasta) { |
2792 | #ifndef CONFIG_SMP | 2792 | #ifndef CONFIG_SMP |
@@ -2826,7 +2826,7 @@ set_initial_features(void) | |||
2826 | np = of_find_node_by_name(np, "firewire"); | 2826 | np = of_find_node_by_name(np, "firewire"); |
2827 | } | 2827 | } |
2828 | } | 2828 | } |
2829 | #else /* CONFIG_POWER4 */ | 2829 | #else /* CONFIG_PPC64 */ |
2830 | 2830 | ||
2831 | if (macio_chips[0].type == macio_keylargo || | 2831 | if (macio_chips[0].type == macio_keylargo || |
2832 | macio_chips[0].type == macio_pangea || | 2832 | macio_chips[0].type == macio_pangea || |
@@ -2895,7 +2895,7 @@ set_initial_features(void) | |||
2895 | MACIO_BIC(HEATHROW_FCR, HRW_SOUND_POWER_N); | 2895 | MACIO_BIC(HEATHROW_FCR, HRW_SOUND_POWER_N); |
2896 | } | 2896 | } |
2897 | 2897 | ||
2898 | #endif /* CONFIG_POWER4 */ | 2898 | #endif /* CONFIG_PPC64 */ |
2899 | 2899 | ||
2900 | /* On all machines, switch modem & serial ports off */ | 2900 | /* On all machines, switch modem & serial ports off */ |
2901 | for_each_node_by_name(np, "ch-a") | 2901 | for_each_node_by_name(np, "ch-a") |