]> git.sur5r.net Git - u-boot/commit
imx: ventana: enable pwm device-tree property based on hwconfig
authorTim Harvey <tharvey@gateworks.com>
Tue, 24 May 2016 18:03:55 +0000 (11:03 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 31 May 2016 15:25:31 +0000 (17:25 +0200)
commitf17a9af84645f5b820da2e7d017b014923ce1b88
treec3ba568cd60d1b3525c8774140a43021ed5b3d60
parent83e00f193e766337254c490c2b28118b75cc575a
imx: ventana: enable pwm device-tree property based on hwconfig

Most Ventana boards have a connector with off-board digital-I/O signals
including some that can be pinmuxed as either a PWM or a GPIO. The hwconfig
env variable is used to configure these and they will be pinmuxed according
to this configuration in the bootloader.

This patch adds a device-tree fixup that will enable the pwm controller
nodes appropriately for digital-I/O's that are configured as pwm via hwconfig
so that the pin can be used with the Linux kernel /sys/class/pwm API.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/common.c
board/gateworks/gw_ventana/gw_ventana.c