imx6: aristainetos: convert to DM_PWM/DM_BACKLIGHT
authorHeiko Schocher <hs@denx.de>
Sun, 1 Dec 2019 10:23:21 +0000 (11:23 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:55 +0000 (10:26 +0100)
use DM_PWM and DM_BLACKLIGHT support and remove
board code.

Signed-off-by: Heiko Schocher <hs@denx.de>
board/aristainetos/aristainetos.c
configs/aristainetos2_defconfig

index 0d1c06da5d8c3f4de1d8861a355b1bd74167137a..edaec5ee876bc83a2f7f57953bc0d97408d580b9 100644 (file)
@@ -22,7 +22,6 @@
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <bmp_logo.h>
-#include <pwm.h>
 #include <dm/root.h>
 #include <env.h>
 #include <micrel.h>
@@ -42,15 +41,6 @@ enum {
 #define ARI_BT_4 "aristainetos2_4@2"
 #define ARI_BT_7 "aristainetos2_7@1"
 
-static iomux_v3_cfg_t const backlight_pads[] = {
-       /* backlight PWM brightness control */
-       MX6_PAD_GPIO_9__PWM1_OUT | MUX_PAD_CTRL(NO_PAD_CTRL),
-       /* backlight enable */
-       MX6_PAD_EIM_BCLK__GPIO6_IO31 | MUX_PAD_CTRL(NO_PAD_CTRL),
-       /* LCD power enable */
-       MX6_PAD_NANDF_CS2__GPIO6_IO15 | MUX_PAD_CTRL(NO_PAD_CTRL),
-};
-
 int board_phy_config(struct phy_device *phydev)
 {
        /* control data pad skew - devaddr = 0x02, register = 0x04 */
index fd58aad4c26721582e2beea2eab3044d943ddd73..b981b203b969826e44da427e10dd60c1ac57a896 100644 (file)
@@ -86,6 +86,7 @@ CONFIG_PINCTRL_IMX6=y
 CONFIG_DM_PMIC=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_DM_PWM=y
 CONFIG_PWM_IMX=y
 CONFIG_DM_RTC=y
 CONFIG_RTC_DS1307=y