[PATCH v2 0/4] powerpc: wii_defconfig updates

STALE3010d

7 messages, 2 authors, 2018-05-10 · open the first message on its own page

[PATCH v2 0/4] powerpc: wii_defconfig updates

From: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date: 2018-05-07 14:20:55

v1: https://www.spinics.net/lists/kernel/msg2790389.html
    https://www.spinics.net/lists/kernel/msg2790385.html

In the previous version of patch 2, I forgot to set CONFIG_NEW_LEDS and
CONFIG_LEDS_TRIGGERS, so the more specific LED-related options weren't
actually enabled, due to Kconfig dependencies. This is now fixed.

I took the opportunity of a v2 to add two more patches that I wanted to
send anyway. The SDHCIs in the Wii are currently unusable due to bugs/
problems in the flipper-pic/hlwd-pic drivers, but I know how to fix
those, and will send patches.

Jonathan Neuschäfer (4):
  powerpc: wii_defconfig: Disable Ethernet driver support code
  powerpc: wii_defconfig: Enable GPIO-related options
  powerpc: wii_defconfig: Enable Wii SDHCI driver
  powerpc: wii_defconfig: Disable BCMA support

 arch/powerpc/configs/wii_defconfig | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

-- 
2.17.0

[PATCH v2 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code

From: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date: 2018-05-07 14:20:16

The Wii doesn't have built-in Ethernet and USB Ethernet adapters are in
a different menu. Disable CONFIG_ETHERNET to save some space in support
code for Ethernet drivers.

Note that this patch doesn't disable any Ethernet drivers, because they
are not enabled by default.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
v2:
- Drop the bloat-o-meter output from the commit message
---
 arch/powerpc/configs/wii_defconfig | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index 0b0f78823a1b..3167b9d7f3e5 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -49,6 +49,7 @@ CONFIG_BLK_DEV_RAM_COUNT=2
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
+# CONFIG_ETHERNET is not set
 CONFIG_B43=y
 CONFIG_B43_SDIO=y
 # CONFIG_B43_PHY_LP is not set
-- 
2.17.0

[PATCH v2 2/4] powerpc: wii_defconfig: Enable GPIO-related options

From: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date: 2018-05-07 14:20:17

Now that there's a GPIO driver for the Wii, let's enable the following
drivers:

- the GPIO driver itself
- gpio-keys
- gpio-poweroff
- gpio-leds and a few LED triggers

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
v2:
- Set CONFIG_NEW_LEDS=y and CONFIG_LEDS_TRIGGERS=y, without which some
  of the other options can't be set.
---
 arch/powerpc/configs/wii_defconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index 3167b9d7f3e5..c5933a38e5ad 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -58,6 +58,7 @@ CONFIG_INPUT_FF_MEMLESS=m
 CONFIG_INPUT_JOYDEV=y
 CONFIG_INPUT_EVDEV=y
 # CONFIG_KEYBOARD_ATKBD is not set
+CONFIG_KEYBOARD_GPIO=y
 # CONFIG_MOUSE_PS2 is not set
 CONFIG_INPUT_JOYSTICK=y
 CONFIG_INPUT_MISC=y
@@ -72,6 +73,9 @@ CONFIG_I2C_CHARDEV=y
 CONFIG_I2C_GPIO=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_HLWD=y
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_GPIO=y
 # CONFIG_HWMON is not set
 CONFIG_SSB_DEBUG=y
 CONFIG_FB=y
@@ -89,6 +93,12 @@ CONFIG_HID_APPLE=m
 CONFIG_HID_WACOM=m
 CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_HEARTBEAT=y
+CONFIG_LEDS_TRIGGER_PANIC=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_GENERIC=y
 CONFIG_EXT2_FS=y
-- 
2.17.0

[PATCH v2 3/4] powerpc: wii_defconfig: Enable Wii SDHCI driver

From: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date: 2018-05-07 14:20:18

This allows access to the SD card and the BCM4318 Wifi module.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---

Note that until some fixes in the interrupt controller drivers used on
the Wii, the SDHCI controllers will not be usable.

v2:
- Patch added to the series
---
 arch/powerpc/configs/wii_defconfig | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index c5933a38e5ad..a674dd420f0f 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -93,6 +93,8 @@ CONFIG_HID_APPLE=m
 CONFIG_HID_WACOM=m
 CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OF_HLWD=y
 CONFIG_NEW_LEDS=y
 CONFIG_LEDS_CLASS=y
 CONFIG_LEDS_GPIO=y
-- 
2.17.0

[PATCH v2 4/4] powerpc: wii_defconfig: Disable BCMA support

From: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date: 2018-05-07 14:20:19

The B43 driver only needs CONFIG_SSB to support the WLAN card found in
the Wii. Configure it accordingly, and disable BCMA bus support to save
a bit of space.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---

v2:
- Patch added to the series
---
 arch/powerpc/configs/wii_defconfig | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index a674dd420f0f..10940533da71 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -51,6 +51,7 @@ CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
 # CONFIG_ETHERNET is not set
 CONFIG_B43=y
+CONFIG_B43_BUSES_SSB=y
 CONFIG_B43_SDIO=y
 # CONFIG_B43_PHY_LP is not set
 CONFIG_B43_DEBUG=y
-- 
2.17.0

Re: [PATCH v2 0/4] powerpc: wii_defconfig updates

From: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date: 2018-05-07 17:47:33

I forgot to CC the right set of people/mailing lists on the cover
letter. Sorry. Here it is:

On Mon, May 07, 2018 at 04:20:15PM +0200, Jonathan Neuschäfer wrote:
v1: https://www.spinics.net/lists/kernel/msg2790389.html
    https://www.spinics.net/lists/kernel/msg2790385.html

In the previous version of patch 2, I forgot to set CONFIG_NEW_LEDS and
CONFIG_LEDS_TRIGGERS, so the more specific LED-related options weren't
actually enabled, due to Kconfig dependencies. This is now fixed.

I took the opportunity of a v2 to add two more patches that I wanted to
send anyway. The SDHCIs in the Wii are currently unusable due to bugs/
problems in the flipper-pic/hlwd-pic drivers, but I know how to fix
those, and will send patches.

Jonathan Neuschäfer (4):
  powerpc: wii_defconfig: Disable Ethernet driver support code
  powerpc: wii_defconfig: Enable GPIO-related options
  powerpc: wii_defconfig: Enable Wii SDHCI driver
  powerpc: wii_defconfig: Disable BCMA support

 arch/powerpc/configs/wii_defconfig | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

-- 
2.17.0

Re: [v2, 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code

From: Michael Ellerman <hidden>
Date: 2018-05-10 14:06:42

On Mon, 2018-05-07 at 14:20:16 UTC, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= wrote:
The Wii doesn't have built-in Ethernet and USB Ethernet adapters are in
a different menu. Disable CONFIG_ETHERNET to save some space in support
code for Ethernet drivers.

Note that this patch doesn't disable any Ethernet drivers, because they
are not enabled by default.

Signed-off-by: Jonathan Neusch��fer <j.neuschaefer@gmx.net>
Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/a84813f5bf2948c2a2947b0d684562

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help