]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: sam9x60-curiosity: Let LED subsystem init leds if enabled
authorAlexander Dahl <ada@thorsis.com>
Wed, 23 Aug 2023 13:58:55 +0000 (15:58 +0200)
committerEugen Hristev <eugen.hristev@collabora.com>
Tue, 29 Aug 2023 14:39:01 +0000 (17:39 +0300)
commit1818b44b7bc8c8aaaa0d80c9a47e559a1f07bf1d
tree66f79ef0aa273e5519fb2817589475082fc4d925
parent72d5e3c1405a5a6312435eb87a7e6b9f0a9333fa
board: sam9x60-curiosity: Let LED subsystem init leds if enabled

If CONFIG_LED and CONFIG_LED_GPIO are enabled, it is not necessary to
initialize the RGB LED on the board by manually setting hardcoded GPIOs
anymore.  Everything is well defined in dts and can be used like on
boards of other vendors.

Keep the old behaviour as fallback, though.

With all this in place enabling CONFIG_CMD_LED gives us a working 'led'
command on the U-Boot shell.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi
board/atmel/sam9x60_curiosity/sam9x60_curiosity.c