Skip to contentSkip to conversation

MIPS: Loongson: Kconfig: add MACH_LOONGSON dependency

PATCH In review Antony Pavlov 1 participant 2 messages Feb 17, 2011 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Loongson: Kconfig: add MACH_LOONGSON dependency

From: Antony Pavlov <[email protected]>

The options LOONGSON_SUSPEND, LOONGSON_UART_BASE et al. don't depend on MACH_LOONGSON option.
So my configuration file (.config) for MIPS Malta board contains

# CONFIG_MACH_LOONGSON is not set
CONFIG_MIPS_MALTA=y

...

CONFIG_LOONGSON_UART_BASE=y

---
 arch/mips/loongson/Kconfig |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
arch/mips/loongson/Kconfig +4 -2
index 6e1b77f..4f2cf08 100644
@@ -61,6 +61,7 @@ endchoice
 
 config CS5536
 	bool
+	depends on MACH_LOONGSON
 
 config CS5536_MFGPT
 	bool "CS5536 MFGPT Timer"
@@ -77,13 +78,14 @@ config CS5536_MFGPT
 config LOONGSON_SUSPEND
 	bool
 	default y
-	depends on CPU_SUPPORTS_CPUFREQ && SUSPEND
+	depends on MACH_LOONGSON && CPU_SUPPORTS_CPUFREQ && SUSPEND
 
 config LOONGSON_UART_BASE
 	bool
 	default y
-	depends on EARLY_PRINTK || SERIAL_8250
+	depends on MACH_LOONGSON && (EARLY_PRINTK || SERIAL_8250)
 
 config LOONGSON_MC146818
 	bool
 	default n
+	depends on MACH_LOONGSON
Signature · 1 line
1.7.1
#1 lore raw

Sorry, the mail adresses in fields "From" and "Signed-off-by" are different.

I shall resend the patch in a few minutes.

2011/2/17, Antony Pavlov <[email protected]>:

Quoted 51 lines

From: Antony Pavlov <[email protected]>

The options LOONGSON_SUSPEND, LOONGSON_UART_BASE et al. don't depend on MACH_LOONGSON option.
So my configuration file (.config) for MIPS Malta board contains

# CONFIG_MACH_LOONGSON is not set
CONFIG_MIPS_MALTA=y

...

CONFIG_LOONGSON_UART_BASE=y

---
 arch/mips/loongson/Kconfig |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
arch/mips/loongson/Kconfig +4 -3
index 6e1b77f..4f2cf08 100644
@@ -61,6 +61,7 @@ endchoice
 
 config CS5536
 	bool
+	depends on MACH_LOONGSON
 
 config CS5536_MFGPT
 	bool "CS5536 MFGPT Timer"
@@ -77,13 +78,14 @@ config CS5536_MFGPT
 config LOONGSON_SUSPEND
 	bool
 	default y
-	depends on CPU_SUPPORTS_CPUFREQ && SUSPEND
+	depends on MACH_LOONGSON && CPU_SUPPORTS_CPUFREQ && SUSPEND
 
 config LOONGSON_UART_BASE
 	bool
 	default y
-	depends on EARLY_PRINTK || SERIAL_8250
+	depends on MACH_LOONGSON && (EARLY_PRINTK || SERIAL_8250)
 
 config LOONGSON_MC146818
 	bool
 	default n
+	depends on MACH_LOONGSON
--

1.7.1