diff options
author | Ajay Nandakumar <anandakumarm@nvidia.com> | 2013-10-29 19:51:21 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2013-10-29 23:29:38 -0700 |
commit | 30014ab843618322bb487e1e9e52edec3dfac4b6 (patch) | |
tree | 564d73da73bf795b8659e95857999f1d4a51dc00 /arch/arm/mach-tegra/board-bonaire-panel.c | |
parent | d1349f76214e9b5087dd26e4b91cd650d2a17bb7 (diff) |
ARM: DT: Add DT entry for PWMs and Backlight
Add DT entry for PWM controller and Backlight for NVIDIA's
Tegra 114,124 SoCs.It has 4 PWM controllers.
Bug 1256106
Change-Id: Ia927d3231db1a07490b5027c1f23d8e736173f30
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/299035
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-bonaire-panel.c')
-rw-r--r-- | arch/arm/mach-tegra/board-bonaire-panel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-bonaire-panel.c b/arch/arm/mach-tegra/board-bonaire-panel.c index 712c1417fc36..6cd1e1f23b20 100644 --- a/arch/arm/mach-tegra/board-bonaire-panel.c +++ b/arch/arm/mach-tegra/board-bonaire-panel.c @@ -758,6 +758,9 @@ static struct platform_device bonaire_nvmap_device = { static struct platform_device *bonaire_gfx_devices[] __initdata = { &bonaire_nvmap_device, +}; + +static struct platform_device *bonaire_backlight_devices[] __initdata = { &tegra_pwfm_device, &bonaire_backlight_device, }; @@ -796,6 +799,12 @@ int __init bonaire_panel_init(void) err = platform_add_devices(bonaire_gfx_devices, ARRAY_SIZE(bonaire_gfx_devices)); + if (!of_have_populated_dt()) { + /* if error then appened the error */ + err = platform_add_devices(bonaire_backlight_devices, + ARRAY_SIZE(bonaire_backlight_devices)); + } + #ifdef CONFIG_TEGRA_GRHOST phost1x = bonaire_host1x_init(); if (!phost1x) |