diff options
author | Min-wuk Lee <mlee@nvidia.com> | 2013-04-30 23:11:25 +0900 |
---|---|---|
committer | Jon Mayo <jmayo@nvidia.com> | 2013-11-26 09:53:57 -0800 |
commit | 1f33f9f2bfc923a5e1fc9787f80a842900e7776b (patch) | |
tree | 2ff46cfdefc92dbfdbf0b0471347d6ebcd4a0e47 /arch/arm/mach-tegra/include/mach/dc.h | |
parent | 8de3ace4c0cb66e0beeb0739942162cd59258768 (diff) |
video: tegra: add device tree support for DC
Add device tree support for display controller.
This change is for Tegra114 and Tegra124.
Bug 1371533
Bug 1240921
Change-Id: I28ddc2e3b9a9a818ebc330dcf90ee879420726ab
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/240006
(cherry picked from commit d27e77cadf76c4c38f12f476ad6c678b227ef8c4)
Reviewed-on: http://git-master/r/326443
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/dc.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dc.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index b90d55ee68b8..a0a271d3cff6 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -752,6 +752,16 @@ struct tegra_fb_data { #define TEGRA_FB_FLIP_ON_PROBE (1 << 0) +struct of_tegra_dc_data { + unsigned long fb_size; + unsigned long fb_start; + unsigned long carveout_size; + unsigned long carveout_start; + struct regulator **of_regulators; + int *of_gpios; + int dc_controller; +}; + struct tegra_dc_platform_data { unsigned long flags; unsigned long emc_clk_rate; @@ -762,6 +772,7 @@ struct tegra_dc_platform_data { bool cmu_enable; struct tegra_dc_cmu *cmu; #endif + struct of_tegra_dc_data of_data; }; struct tegra_dc_bw_data { @@ -877,4 +888,20 @@ void tegra_log_suspend_time(void); #define tegra_log_resume_time() #define tegra_log_suspend_time() #endif + +struct of_tegra_lcd_devdata { + int (*enable)(struct device *); + int (*postpoweron)(struct device *); + int (*prepoweroff)(void); + int (*disable)(void); + + int (*hotplug_init)(struct device *); + int (*postsuspend)(void); + void (*hotplug_report)(bool); +}; + +void lcd_devdata_to_dc_set_callback(struct device*(*func) + (struct device_node *)); +struct device *lcd_devdata_to_dc_callback_run(struct device_node *dn); + #endif |