[LEDE-DEV] [PATCH 3/3] leds-apu2: Add PC Engines APU2 LED driver
Felix Fietkau
nbd at nbd.name
Wed Jan 25 00:18:55 PST 2017
On 2017-01-23 09:12, Chris Blake wrote:
> This adds support for the PCB LEDs and Reset Button found on the PC
> Engines APU2/APU3 embedded boards.
>
> Signed-off-by: Chris Blake <chrisrblake93 at gmail.com>
> ---
> diff --git a/package/kernel/leds-apu2/src/Kconfig b/package/kernel/leds-apu2/src/Kconfig
> new file mode 100644
> index 0000000..d0ad5be
> --- /dev/null
> +++ b/package/kernel/leds-apu2/src/Kconfig
> @@ -0,0 +1,8 @@
> +config LEDS_APU2
> + tristate "PC Engines APU2/APU3 LED support"
> + depends on LEDS_CLASS
> + depends on LEDS_GPIO
> + depends on GPIOLIB
> + help
> + Say yes here to enable support for the CPU GPIO pins on the PC Engines
> + APU2/APU3 board, which enables the front LEDs and Reset Button.
> diff --git a/package/kernel/leds-apu2/src/Makefile b/package/kernel/leds-apu2/src/Makefile
> new file mode 100644
> index 0000000..4f77b39
> --- /dev/null
> +++ b/package/kernel/leds-apu2/src/Makefile
> @@ -0,0 +1 @@
> +obj-${CONFIG_LEDS_APU2} += leds-apu2.o
> diff --git a/package/kernel/leds-apu2/src/leds-apu2.c b/package/kernel/leds-apu2/src/leds-apu2.c
> new file mode 100644
> index 0000000..8da8a2d
> --- /dev/null
> +++ b/package/kernel/leds-apu2/src/leds-apu2.c
> @@ -0,0 +1,374 @@
> +/*
> + * APU2 LED/GPIO Driver
> + * Copyright (c) 2016 Christian Lamparter <chunkeey (at) googlemail.com>
> + *
> + * Based on gpio-apu2.c - AMD FCH GPIO support for PC-Engines APU-2 board
> + *
> + * Copyright (c) 2015 Carsten Spiess <fli4l at carsten-spiess.de>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
> + */
> +
> + #include <linux/module.h>
All lines seems to have a leading whitespace character. Please fix.
Applied the other patches to my staging tree, thanks.
- Felix
More information about the Lede-dev
mailing list