powerpc: wii_defconfig updates
v2 cover powerpc: wii_defconfig updates
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(+)
Signature · 1 line
2.17.0
PATCH v2 1/4 powerpc: wii_defconfig: Disable Ethernet driver support code
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.
---
v2:
- Drop the bloat-o-meter output from the commit message
--- arch/powerpc/configs/wii_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/configs/wii_defconfig +1 -0
@@ -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
Signature · 1 line
2.17.0
Re: [v2, 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code
Quoted 8 lines · 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_ETHERNETto 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 <[email protected]>
Series applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/a84813f5bf2948c2a2947b0d684562
cheers
PATCH v2 2/4 powerpc: wii_defconfig: Enable GPIO-related options
In reply to Jonathan NeuschäferNow 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
---
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(+)
arch/powerpc/configs/wii_defconfig +10 -0
@@ -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
Signature · 1 line
2.17.0
PATCH v2 3/4 powerpc: wii_defconfig: Enable Wii SDHCI driver
In reply to Jonathan NeuschäferThis allows access to the SD card and the BCM4318 Wifi module.
---
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(+)
arch/powerpc/configs/wii_defconfig +2 -0
@@ -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
Signature · 1 line
2.17.0
PATCH v2 4/4 powerpc: wii_defconfig: Disable BCMA support
In reply to Jonathan NeuschäferThe 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.
---
v2:
- Patch added to the series
--- arch/powerpc/configs/wii_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/configs/wii_defconfig +1 -0
@@ -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
Signature · 1 line
2.17.0
I forgot to CC the right set of people/mailing lists on the cover letter. Sorry. Here it is:
Quoted 24 lines · Jonathan Neuschäfer
v1: https://www.spinics.net/lists/kernel/msg2790389.html
https://www.spinics.net/lists/kernel/msg2790385.htmlIn the previous version of patch 2, I forgot to set
CONFIG_NEW_LEDSandCONFIG_LEDS_TRIGGERS, so the more specific LED-related options weren't actually enabled, due toKconfigdependencies. 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 supportarch/powerpc/configs/wii_defconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+)Signature · 1 line
2.17.0