diff options
author | Valentine Barshak <vbarshak@ru.mvista.com> | 2007-08-29 09:40:30 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-09-07 08:49:13 -0400 |
commit | 15fc993e31293f9b179eb5f08b18a4a4f2ca648a (patch) | |
tree | 1980855d74027e832cc787e7b3717a2cc778f9eb /arch | |
parent | 38a5d6c9e79c2dbf3b23fb6fe8c2b51551bc9ee3 (diff) |
[POWERPC] PowerPC 440EPx: Sequoia board support
AMCC PPC440EPx Sequoia board support.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/cputable.c | 18 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_44x.S | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/Kconfig | 17 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/Makefile | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/sequoia.c | 66 |
5 files changed, 102 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index b1f8000952f3..5873073c9045 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -1132,6 +1132,24 @@ static struct cpu_spec cpu_specs[] = { | |||
1132 | .dcache_bsize = 32, | 1132 | .dcache_bsize = 32, |
1133 | .platform = "ppc440", | 1133 | .platform = "ppc440", |
1134 | }, | 1134 | }, |
1135 | { /* 440EPX */ | ||
1136 | .pvr_mask = 0xf0000ffb, | ||
1137 | .pvr_value = 0x200008D0, | ||
1138 | .cpu_name = "440EPX", | ||
1139 | .cpu_features = CPU_FTRS_44X, | ||
1140 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | ||
1141 | .icache_bsize = 32, | ||
1142 | .dcache_bsize = 32, | ||
1143 | }, | ||
1144 | { /* 440GRX */ | ||
1145 | .pvr_mask = 0xf0000ffb, | ||
1146 | .pvr_value = 0x200008D8, | ||
1147 | .cpu_name = "440GRX", | ||
1148 | .cpu_features = CPU_FTRS_44X, | ||
1149 | .cpu_user_features = COMMON_USER_BOOKE, | ||
1150 | .icache_bsize = 32, | ||
1151 | .dcache_bsize = 32, | ||
1152 | }, | ||
1135 | { /* 440GP Rev. B */ | 1153 | { /* 440GP Rev. B */ |
1136 | .pvr_mask = 0xf0000fff, | 1154 | .pvr_mask = 0xf0000fff, |
1137 | .pvr_value = 0x40000440, | 1155 | .pvr_value = 0x40000440, |
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S index 88695963f587..e26d26e31813 100644 --- a/arch/powerpc/kernel/head_44x.S +++ b/arch/powerpc/kernel/head_44x.S | |||
@@ -217,7 +217,7 @@ skpinv: addi r4,r4,1 /* Increment */ | |||
217 | lis r4,interrupt_base@h /* IVPR only uses the high 16-bits */ | 217 | lis r4,interrupt_base@h /* IVPR only uses the high 16-bits */ |
218 | mtspr SPRN_IVPR,r4 | 218 | mtspr SPRN_IVPR,r4 |
219 | 219 | ||
220 | #ifdef CONFIG_440EP | 220 | #if defined(CONFIG_440EP) || defined(CONFIG_440EPX) |
221 | /* Clear DAPUIB flag in CCR0 (enable APU between CPU and FPU) */ | 221 | /* Clear DAPUIB flag in CCR0 (enable APU between CPU and FPU) */ |
222 | mfspr r2,SPRN_CCR0 | 222 | mfspr r2,SPRN_CCR0 |
223 | lis r3,0xffef | 223 | lis r3,0xffef |
diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig index c7cc12a2f269..f28acdcbd6c9 100644 --- a/arch/powerpc/platforms/44x/Kconfig +++ b/arch/powerpc/platforms/44x/Kconfig | |||
@@ -14,6 +14,14 @@ config EBONY | |||
14 | help | 14 | help |
15 | This option enables support for the IBM PPC440GP evaluation board. | 15 | This option enables support for the IBM PPC440GP evaluation board. |
16 | 16 | ||
17 | config SEQUOIA | ||
18 | bool "Sequoia" | ||
19 | depends on 44x | ||
20 | default n | ||
21 | select 440EPX | ||
22 | help | ||
23 | This option enables support for the AMCC PPC440EPX evaluation board. | ||
24 | |||
17 | #config LUAN | 25 | #config LUAN |
18 | # bool "Luan" | 26 | # bool "Luan" |
19 | # depends on 44x | 27 | # depends on 44x |
@@ -37,6 +45,13 @@ config 440EP | |||
37 | select IBM440EP_ERR42 | 45 | select IBM440EP_ERR42 |
38 | # select IBM_NEW_EMAC_ZMII | 46 | # select IBM_NEW_EMAC_ZMII |
39 | 47 | ||
48 | config 440EPX | ||
49 | bool | ||
50 | select PPC_FPU | ||
51 | # Disabled until the new EMAC Driver is merged. | ||
52 | # select IBM_NEW_EMAC_EMAC4 | ||
53 | # select IBM_NEW_EMAC_ZMII | ||
54 | |||
40 | config 440GP | 55 | config 440GP |
41 | bool | 56 | bool |
42 | # Disabled until the new EMAC Driver is merged. | 57 | # Disabled until the new EMAC Driver is merged. |
@@ -50,7 +65,7 @@ config 440SP | |||
50 | 65 | ||
51 | config 440A | 66 | config 440A |
52 | bool | 67 | bool |
53 | depends on 440GX | 68 | depends on 440GX || 440EPX |
54 | default y | 69 | default y |
55 | 70 | ||
56 | # 44x errata/workaround config symbols, selected by the CPU models above | 71 | # 44x errata/workaround config symbols, selected by the CPU models above |
diff --git a/arch/powerpc/platforms/44x/Makefile b/arch/powerpc/platforms/44x/Makefile index 47ccc3659e34..10ce6740cc7d 100644 --- a/arch/powerpc/platforms/44x/Makefile +++ b/arch/powerpc/platforms/44x/Makefile | |||
@@ -1,3 +1,4 @@ | |||
1 | obj-$(CONFIG_44x) := misc_44x.o | 1 | obj-$(CONFIG_44x) := misc_44x.o |
2 | obj-$(CONFIG_EBONY) += ebony.o | 2 | obj-$(CONFIG_EBONY) += ebony.o |
3 | obj-$(CONFIG_BAMBOO) += bamboo.o | 3 | obj-$(CONFIG_BAMBOO) += bamboo.o |
4 | obj-$(CONFIG_SEQUOIA) += sequoia.o | ||
diff --git a/arch/powerpc/platforms/44x/sequoia.c b/arch/powerpc/platforms/44x/sequoia.c new file mode 100644 index 000000000000..7d0d9d567d25 --- /dev/null +++ b/arch/powerpc/platforms/44x/sequoia.c | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | * Sequoia board specific routines | ||
3 | * | ||
4 | * Valentine Barshak <vbarshak@ru.mvista.com> | ||
5 | * Copyright 2007 MontaVista Software Inc. | ||
6 | * | ||
7 | * Based on the Bamboo code by | ||
8 | * Josh Boyer <jwboyer@linux.vnet.ibm.com> | ||
9 | * Copyright 2007 IBM Corporation | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify it | ||
12 | * under the terms of the GNU General Public License as published by the | ||
13 | * Free Software Foundation; either version 2 of the License, or (at your | ||
14 | * option) any later version. | ||
15 | */ | ||
16 | #include <linux/init.h> | ||
17 | #include <asm/machdep.h> | ||
18 | #include <asm/prom.h> | ||
19 | #include <asm/udbg.h> | ||
20 | #include <asm/time.h> | ||
21 | #include <asm/uic.h> | ||
22 | #include <asm/of_platform.h> | ||
23 | #include "44x.h" | ||
24 | |||
25 | static struct of_device_id sequoia_of_bus[] = { | ||
26 | { .compatible = "ibm,plb4", }, | ||
27 | { .compatible = "ibm,opb", }, | ||
28 | { .compatible = "ibm,ebc", }, | ||
29 | {}, | ||
30 | }; | ||
31 | |||
32 | static int __init sequoia_device_probe(void) | ||
33 | { | ||
34 | if (!machine_is(sequoia)) | ||
35 | return 0; | ||
36 | |||
37 | of_platform_bus_probe(NULL, sequoia_of_bus, NULL); | ||
38 | |||
39 | return 0; | ||
40 | } | ||
41 | device_initcall(sequoia_device_probe); | ||
42 | |||
43 | static int __init sequoia_probe(void) | ||
44 | { | ||
45 | unsigned long root = of_get_flat_dt_root(); | ||
46 | |||
47 | if (!of_flat_dt_is_compatible(root, "amcc,sequoia")) | ||
48 | return 0; | ||
49 | |||
50 | return 1; | ||
51 | } | ||
52 | |||
53 | static void __init sequoia_setup_arch(void) | ||
54 | { | ||
55 | } | ||
56 | |||
57 | define_machine(sequoia) { | ||
58 | .name = "Sequoia", | ||
59 | .probe = sequoia_probe, | ||
60 | .setup_arch = sequoia_setup_arch, | ||
61 | .progress = udbg_progress, | ||
62 | .init_IRQ = uic_init_tree, | ||
63 | .get_irq = uic_get_irq, | ||
64 | .restart = ppc44x_reset_system, | ||
65 | .calibrate_decr = generic_calibrate_decr, | ||
66 | }; | ||