All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] powerpc: wii_defconfig: Disable Ethernet driver support code
@ 2018-04-30 13:42 Jonathan Neuschäfer
  2018-04-30 13:42 ` [PATCH 2/2] powerpc: wii_defconfig: Enable GPIO-related options Jonathan Neuschäfer
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Neuschäfer @ 2018-04-30 13:42 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: Joel Stanley, Jonathan Neuschäfer, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Robin H. Johnson,
	Benjamin Gilbert, Greg Kroah-Hartman, linux-kernel

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.

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-367 (-367)
Function                                     old     new   delta
kernel_config_data                         13691   13324    -367
Total: Before=8341718, After=8341351, chg -0.00%

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] powerpc: wii_defconfig: Enable GPIO-related options
  2018-04-30 13:42 [PATCH 1/2] powerpc: wii_defconfig: Disable Ethernet driver support code Jonathan Neuschäfer
@ 2018-04-30 13:42 ` Jonathan Neuschäfer
  2018-05-07 11:15   ` Jonathan Neuschäfer
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Neuschäfer @ 2018-04-30 13:42 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: Joel Stanley, Jonathan Neuschäfer, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Greg Kroah-Hartman,
	Benjamin Gilbert, Robin H. Johnson, linux-kernel

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>
---
 arch/powerpc/configs/wii_defconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index 3167b9d7f3e5..40a3b5c09765 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,10 @@ CONFIG_HID_APPLE=m
 CONFIG_HID_WACOM=m
 CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_GPIO=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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] powerpc: wii_defconfig: Enable GPIO-related options
  2018-04-30 13:42 ` [PATCH 2/2] powerpc: wii_defconfig: Enable GPIO-related options Jonathan Neuschäfer
@ 2018-05-07 11:15   ` Jonathan Neuschäfer
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Neuschäfer @ 2018-05-07 11:15 UTC (permalink / raw)
  To: Jonathan Neuschäfer
  Cc: linuxppc-dev, Joel Stanley, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Greg Kroah-Hartman,
	Benjamin Gilbert, Robin H. Johnson, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

On Mon, Apr 30, 2018 at 03:42:47PM +0200, Jonathan Neuschäfer wrote:
> 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>
> ---
[...]
> +CONFIG_LEDS_CLASS=y
> +CONFIG_LEDS_GPIO=y
> +CONFIG_LEDS_TRIGGER_HEARTBEAT=y
> +CONFIG_LEDS_TRIGGER_PANIC=y

Oops, this doesn't work without first enabling CONFIG_NEW_LEDS and
CONFIG_LEDS_TRIGGERS. I'll send a v2.


Jonathan Neuschäfer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-07 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-30 13:42 [PATCH 1/2] powerpc: wii_defconfig: Disable Ethernet driver support code Jonathan Neuschäfer
2018-04-30 13:42 ` [PATCH 2/2] powerpc: wii_defconfig: Enable GPIO-related options Jonathan Neuschäfer
2018-05-07 11:15   ` Jonathan Neuschäfer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.