浏览代码

mfd: have TMIO drivers and subdevices depend on ARM

The TMIO chips are only found (and thus tested) on ARM machines.
Moreover, we don't want the TMIO cells to be built if one of the TMIO
driver is not selected (which indirectly make the TMIO cells drivers
depend on ARM as well).

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Samuel Ortiz 16 年之前
父节点
当前提交
1c2c30acc5
共有 3 个文件被更改,包括 11 次插入2 次删除
  1. 9 0
      drivers/mfd/Kconfig
  2. 1 1
      drivers/mmc/host/Kconfig
  3. 1 1
      drivers/mtd/nand/Kconfig

+ 9 - 0
drivers/mfd/Kconfig

@@ -50,15 +50,23 @@ config HTC_PASIC3
 	  HTC Magician devices, respectively. Actual functionality is
 	  HTC Magician devices, respectively. Actual functionality is
 	  handled by the leds-pasic3 and ds1wm drivers.
 	  handled by the leds-pasic3 and ds1wm drivers.
 
 
+config MFD_TMIO
+	bool
+	default n
+
 config MFD_T7L66XB
 config MFD_T7L66XB
 	bool "Support Toshiba T7L66XB"
 	bool "Support Toshiba T7L66XB"
+	depends on ARM
 	select MFD_CORE
 	select MFD_CORE
+	select MFD_TMIO
 	help
 	help
 	  Support for Toshiba Mobile IO Controller T7L66XB
 	  Support for Toshiba Mobile IO Controller T7L66XB
 
 
 config MFD_TC6387XB
 config MFD_TC6387XB
 	bool "Support Toshiba TC6387XB"
 	bool "Support Toshiba TC6387XB"
+	depends on ARM
 	select MFD_CORE
 	select MFD_CORE
+	select MFD_TMIO
 	help
 	help
 	  Support for Toshiba Mobile IO Controller TC6387XB
 	  Support for Toshiba Mobile IO Controller TC6387XB
 
 
@@ -66,6 +74,7 @@ config MFD_TC6393XB
 	bool "Support Toshiba TC6393XB"
 	bool "Support Toshiba TC6393XB"
 	depends on GPIOLIB && ARM
 	depends on GPIOLIB && ARM
 	select MFD_CORE
 	select MFD_CORE
+	select MFD_TMIO
 	help
 	help
 	  Support for Toshiba Mobile IO Controller TC6393XB
 	  Support for Toshiba Mobile IO Controller TC6393XB
 
 

+ 1 - 1
drivers/mmc/host/Kconfig

@@ -176,7 +176,7 @@ config MMC_SDRICOH_CS
 
 
 config MMC_TMIO
 config MMC_TMIO
 	tristate "Toshiba Mobile IO Controller (TMIO) MMC/SD function support"
 	tristate "Toshiba Mobile IO Controller (TMIO) MMC/SD function support"
-	depends on MFD_CORE
+	depends on MFD_TMIO
 	help
 	help
 	  This provides support for the SD/MMC cell found in TC6393XB,
 	  This provides support for the SD/MMC cell found in TC6393XB,
 	  T7L66XB and also ipaq ASIC3
 	  T7L66XB and also ipaq ASIC3

+ 1 - 1
drivers/mtd/nand/Kconfig

@@ -353,7 +353,7 @@ config MTD_NAND_PASEMI
 
 
 config MTD_NAND_TMIO
 config MTD_NAND_TMIO
 	tristate "NAND Flash device on Toshiba Mobile IO Controller"
 	tristate "NAND Flash device on Toshiba Mobile IO Controller"
-	depends on MTD_NAND && MFD_CORE
+	depends on MTD_NAND && MFD_TMIO
 	help
 	help
 	  Support for NAND flash connected to a Toshiba Mobile IO
 	  Support for NAND flash connected to a Toshiba Mobile IO
 	  Controller in some PDAs, including the Sharp SL6000x.
 	  Controller in some PDAs, including the Sharp SL6000x.