diff options
-rw-r--r-- | arch/x86/Kconfig | 10 | ||||
-rw-r--r-- | arch/x86/include/asm/olpc_ofw.h | 11 | ||||
-rw-r--r-- | arch/x86/kernel/head_32.S | 2 | ||||
-rw-r--r-- | arch/x86/platform/olpc/Makefile | 2 |
4 files changed, 5 insertions, 20 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index dbc10fce6665..677501d061a3 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -2066,9 +2066,10 @@ config SCx200HR_TIMER | |||
2066 | 2066 | ||
2067 | config OLPC | 2067 | config OLPC |
2068 | bool "One Laptop Per Child support" | 2068 | bool "One Laptop Per Child support" |
2069 | select GPIOLIB | ||
2070 | select OLPC_OPENFIRMWARE | ||
2071 | depends on !X86_PAE | 2069 | depends on !X86_PAE |
2070 | select GPIOLIB | ||
2071 | select OF | ||
2072 | select OLPC_OPENFIRMWARE_DT if PROC_DEVICETREE | ||
2072 | ---help--- | 2073 | ---help--- |
2073 | Add support for detecting the unique features of the OLPC | 2074 | Add support for detecting the unique features of the OLPC |
2074 | XO hardware. | 2075 | XO hardware. |
@@ -2079,11 +2080,6 @@ config OLPC_XO1 | |||
2079 | ---help--- | 2080 | ---help--- |
2080 | Add support for non-essential features of the OLPC XO-1 laptop. | 2081 | Add support for non-essential features of the OLPC XO-1 laptop. |
2081 | 2082 | ||
2082 | config OLPC_OPENFIRMWARE | ||
2083 | bool | ||
2084 | select OF | ||
2085 | select OLPC_OPENFIRMWARE_DT if PROC_DEVICETREE | ||
2086 | |||
2087 | config OLPC_OPENFIRMWARE_DT | 2083 | config OLPC_OPENFIRMWARE_DT |
2088 | bool | 2084 | bool |
2089 | select OF_PROMTREE | 2085 | select OF_PROMTREE |
diff --git a/arch/x86/include/asm/olpc_ofw.h b/arch/x86/include/asm/olpc_ofw.h index 641988efe063..1fff2de124e5 100644 --- a/arch/x86/include/asm/olpc_ofw.h +++ b/arch/x86/include/asm/olpc_ofw.h | |||
@@ -6,8 +6,6 @@ | |||
6 | 6 | ||
7 | #define OLPC_OFW_SIG 0x2057464F /* aka "OFW " */ | 7 | #define OLPC_OFW_SIG 0x2057464F /* aka "OFW " */ |
8 | 8 | ||
9 | #ifdef CONFIG_OLPC_OPENFIRMWARE | ||
10 | |||
11 | extern bool olpc_ofw_is_installed(void); | 9 | extern bool olpc_ofw_is_installed(void); |
12 | 10 | ||
13 | /* run an OFW command by calling into the firmware */ | 11 | /* run an OFW command by calling into the firmware */ |
@@ -26,15 +24,6 @@ extern void setup_olpc_ofw_pgd(void); | |||
26 | /* check if OFW was detected during boot */ | 24 | /* check if OFW was detected during boot */ |
27 | extern bool olpc_ofw_present(void); | 25 | extern bool olpc_ofw_present(void); |
28 | 26 | ||
29 | #else /* !CONFIG_OLPC_OPENFIRMWARE */ | ||
30 | |||
31 | static inline bool olpc_ofw_is_installed(void) { return false; } | ||
32 | static inline void olpc_ofw_detect(void) { } | ||
33 | static inline void setup_olpc_ofw_pgd(void) { } | ||
34 | static inline bool olpc_ofw_present(void) { return false; } | ||
35 | |||
36 | #endif /* !CONFIG_OLPC_OPENFIRMWARE */ | ||
37 | |||
38 | #ifdef CONFIG_OLPC_OPENFIRMWARE_DT | 27 | #ifdef CONFIG_OLPC_OPENFIRMWARE_DT |
39 | extern void olpc_dt_build_devicetree(void); | 28 | extern void olpc_dt_build_devicetree(void); |
40 | #else | 29 | #else |
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index 767d6c43de37..d8cc18a83260 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S | |||
@@ -137,7 +137,7 @@ ENTRY(startup_32) | |||
137 | movsl | 137 | movsl |
138 | 1: | 138 | 1: |
139 | 139 | ||
140 | #ifdef CONFIG_OLPC_OPENFIRMWARE | 140 | #ifdef CONFIG_OLPC |
141 | /* save OFW's pgdir table for later use when calling into OFW */ | 141 | /* save OFW's pgdir table for later use when calling into OFW */ |
142 | movl %cr3, %eax | 142 | movl %cr3, %eax |
143 | movl %eax, pa(olpc_ofw_pgd) | 143 | movl %eax, pa(olpc_ofw_pgd) |
diff --git a/arch/x86/platform/olpc/Makefile b/arch/x86/platform/olpc/Makefile index e797428b163b..e18e641ae7bd 100644 --- a/arch/x86/platform/olpc/Makefile +++ b/arch/x86/platform/olpc/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | obj-$(CONFIG_OLPC) += olpc.o | 1 | obj-$(CONFIG_OLPC) += olpc.o |
2 | obj-$(CONFIG_OLPC_XO1) += olpc-xo1.o | 2 | obj-$(CONFIG_OLPC_XO1) += olpc-xo1.o |
3 | obj-$(CONFIG_OLPC_OPENFIRMWARE) += olpc_ofw.o | 3 | obj-$(CONFIG_OLPC) += olpc_ofw.o |
4 | obj-$(CONFIG_OLPC_OPENFIRMWARE_DT) += olpc_dt.o | 4 | obj-$(CONFIG_OLPC_OPENFIRMWARE_DT) += olpc_dt.o |