Commit graph

567579 commits

Author SHA1 Message Date
Jeevan Shriram
31a9bc1fc8 msm: mdss: correct second control tearcheck enable base offset
After the commit cdc666d763b835dced549f2811561fdc86338bd4, titled
"msm: mdss: enable tearcheck after panel on for synchronization",
second control's tearcheck is never enabled due to wrong offset.
This change corrects the offset for enabling second control's tear
check block. Driver is also not disabling TE in the shutdown path,
handle the same in this change.

Change-Id: Id187705ddf49578fd2c41dba0fe9071656b17139
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-03-23 20:42:03 -07:00
Terence Hampson
3e187f934f msm: mdss: add additional formats that rotator supports
Rotator hw supports RGBA4444 and RGBA5551 format. Enabling formats
in sw.

Change-Id: I7c6da0c054b6f68a6a01eaf94954c553f83b75dd
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2016-03-23 20:42:02 -07:00
Dhaval Patel
e5929d84db msm: mdss: add trace points for external API calls
Add trace points for buffer map/unamp and
msm bus scale request API calls to find
the actual latency.

Change-Id: Ic141af071f7edaa9814b4c341d7468e1d76e573b
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2016-03-23 20:42:02 -07:00
Jayant Shekhar
2018df5c2e msm: mdss: Add debugfs support to change MDP max bandwidth
Based on various use-cases such as camera and flip, MDP bandwidth
limit can be changed. For debug purpose add support to change
these paramaters via debugfs. First parameter takes mode and
second paramter takes bandwidth limit for that particular mode.

E.g. echo 2 1700000 > <debugfs>/mdp/perf/threshold_bw_limit

Change-Id: I98456f4f00223136628b2d2300b5785af386b134
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2016-03-23 20:42:01 -07:00
Jayant Shekhar
1715b84a52 msm: mdss: Add support to select max MDP bandwidth
MDSS currently has fixed maximum bandwidth enabled in DT file.
But there are scenarios where this maximum bandwidth support
can change to enhance performance. Based on scenarios such as
camera use, or flip involved declare the max bandwidth for
usecase in DT and change accordingly based on usecase.

Change-Id: Icc85d75d7a60fe6f934a1fbd9d5077b620b2993d
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2016-03-23 20:42:00 -07:00
Gopikrishnaiah Anandan
17ab364131 msm: mdss: decouple histogram stop from control mixers
When histogram is started for a logical display we store the display
number as part of histogram info structure. When histogram stop is
called on a logical display control mixers might be turned off in case
of suspend usecase which will fail histogram stop ioctl. Since driver is
caching the display number, histogram for the dspp's which are attached
to logical display can be turned off without need for checking control
mixers.

Change-Id: I4f06f5aad562ff3a3df5449166b7d174d3e800eb
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2016-03-23 20:41:59 -07:00
Gopikrishnaiah Anandan
c2e0191248 msm: mdss: tie histogram interrupt with commit
Histogram interrupts are generated when data flows through the dspp
pipes. For video mode panels if there is no commits from userspace
MDP pulls the data through the dspp pipes which will generate interrupts
at panel refresh rate. Post processing algorithms needs to be
interrupted only when there is a commit and histogram interrupt is
generated. Change clubs the histogram enable bit mask with commit to
reduce reduntant interrupts

Change-Id: I545fc26cbf9e95ad71ae2a837edc93fd3de04c68
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2016-03-23 20:41:58 -07:00
Gopikrishnaiah Anandan
9f2bed0126 msm: mdss: sysfs node for backlight notification
Adding sysfs node for backlight notification will remove the need for
userspace clients to block on a ioctl. Exposing as a sysfs node will
allow the userspace thread architecture to be optimized.
Change updates the driver to signal via sysfs node for backlight
notification

Change-Id: I00752799ac81580f7ff7ee380b39d5bf43c3f8d3
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2016-03-23 20:41:57 -07:00
Gopikrishnaiah Anandan
5a6204fd8c msm: mdss: Add sysfs node for histogram notification
Histogram is used by algorithms in userspace, current driver interface
is blocking ioctl call to read histogram. Moving away from blocking
ioctls in driver will reduce the userspace thread requirements.
Change adds a histogram sysfs node for each framebuffer which will be
utilized to notify the clients

Change-Id: Ia88c4d2ba3de8f96ebb5fb915be9b4cefc9471a3
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2016-03-23 20:41:56 -07:00
Veera Sundaram Sankaran
92c335ebfc msm: mdss: add SW TE option for simulator panels
cmd mode simulator panels depended on terminator card for HW TE
generation. This change adds the capability of SW TE, that eliminates
the requirement of terminator card. The SW/HW TE modes can be selected
by passing the override string along with the override parameters in
the panel string passed by bootloader. With this change, any panel
which has a valid device tree file file can be booted up in simulation
mode with either HW/SW TE for command mode and no TE for video mode
panels.

eg:
- simulator single DSI cmd mode with SW TE
	1:dsi:0:qcom,mdss_dsi_sim_cmd:1:none#override:sim-swte
- simulator single DSI cmd mode with HW TE
	1:dsi:0:qcom,mdss_dsi_sim_cmd:1:none#override:sim-hwte
- Simulator dual DSI cmd mode with SW TE
	1:dsi:0:qcom,mdss_dsi_sim_cmd_0:1:qcom,mdss_dsi_sim_cmd_1
	#override:sim-swte
- JDI 1080p video mode panel in simulator mode
	1:dsi:0:qcom,mdss_dsi_jdi_1080p_video:1:none#override:sim

Change-Id: I4a0fdca9e22e72fe2cc2d7ad3a15e0a41a851266
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:55 -07:00
Casey Piper
f14ca4d5d0 msm: mdss: hdmi: determine where HDCP keys are stored
Determine if the HDCP keys are stored in software
registers or hardware fuses on supported hardware.

Change-Id: I9492a458c38aaea4303d3387d79c01bb9beb3219
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
2016-03-23 20:41:55 -07:00
Ingrid Gallardo
8837f78417 msm: mdss: add support to expose compression ratio factor
For bandwidth calculations, driver needs to know
compression ratio factors which depends on the pixel
format. This change adds support to share this
information with user-space.

Change-Id: I08aa8792c38bb85a8114a21cbaabe905bbfee289
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-03-23 20:41:54 -07:00
Ujwal Patel
19fa1b8c68 msm: mdss: skip roi validation if user passed in roi is zero
When user passed in roi is zero, skip roi validation, and make the final
roi as full screen.

Change-Id: I4062afba3f85d41cec28e1bc47ea6c0f8f61336f
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
2016-03-23 20:41:53 -07:00
Yang
e1d1320556 msm: mdss: Support reading/writing large length of DSI command
For DSI on/off commands with command length exceeds PAGE_SIZE,
need to support multiple readings to get the complete results.

Change-Id: I372be86b8a40880a36b3dd0be5f761b2f9efb605
Signed-off-by: Yang <yangxu@codeaurora.org>
2016-03-23 20:41:52 -07:00
Jayant Shekhar
7ebe5976ea msm: mdss: Set esd_rdy to false when panel is not interactive
When the phone is in suspend mode, the panel turns ON and OFF
whenever it receives the message for ambient display. There
are cases whenever the Power Key is pressed, it skips the
Panel ON because already the state of the Panel is ON and the
esd_rdy didn't turn to true, which was set to false during
Panel OFF event. This result in ESD being disabled sometimes
when we coming out of ambient mode. Hence set esd_rdy to false
when panel power state state is not interactive.

Change-Id: Id8cff84dcc9b7f679221c24e25c086c3c65ebd7c
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2016-03-23 20:41:51 -07:00
Dhaval Patel
87377c4fee msm: mdss: enable pwm backlight during cont splash
PWM drivers goes to bad state and cleans up the
backlight configuration on PMIC if config is called
without enable. DSI driver should enable the PWM
during continuous splash to add a refcount like
clock and regulator enable. This avoids calling
PWM APIs with invalid structures.

Change-Id: Ida72583b3e74159aaed3170e3456d21e17ea58ff
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2016-03-23 20:41:50 -07:00
Dhaval Patel
775c9003a9 msm: mdss: add DSI revision check for continuous splash screen
Handoff APIs tries to do clamp configuration during
continuous splash screen. This configuration is not
working for msm8996 which put PHY in bad state for
this target. It is fixed by adding the DSI revision
check in handoff API to avoid clamp configuration.

Change-Id: I9f35d50a78f064757373711968fba05c120f3694
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2016-03-23 20:41:49 -07:00
Jeevan Shriram
44f58d74d8 msm: mdss: reduce the log level for line count in dynamic fps
In the current implementation, too few lines while changeing frame rate
is considered as fatal and this is not true. Reduce the log level for
the same as it is a safety check before updating the dynamic refresh.

Change-Id: I0aac9d3703bdbc49536f32fa49c4307aa7231318
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-03-23 20:41:49 -07:00
Dhaval Patel
b262d770af msm: mdss: fix pll stop sequence for msm8996 target
Turning off pll digital block before link clocks leads
to clock status stuck ON. Ideally, DSI driver should
first stop the lanes, followed by link clock stop
and pll disable. This change implements these
recommended sequence for both DSI controllers.

Change-Id: Ibe3061a65bad2dbfdffd9505d469f10f62a6e39d
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2016-03-23 20:41:48 -07:00
Dhaval Patel
ef1fdddf22 clk: msm: mdss: update pll ldo configuration for 8996 v2
msm8996 v2 pll needs different ldo configuration in DSI
pll compared to v1 target. This changes updates the DSI
pll driver to support this new configuration.

Change-Id: Idccfad2e388273a15b45a0e8bb822513fcbbe70e
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2016-03-23 20:41:47 -07:00
Kuogee Hsieh
5223e55f1d msm: mdss: fixed calculation of pll fractional divider
Pll unlocked due to wrong pll fractional divider calculated.
Pll fraction divider should be reminder of 2^20 after vco
rate divided by reference clock rate.

Change-Id: I9e4c2e3c0631e533d114c3e6acf65b71b9bf00d2
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2016-03-23 20:41:46 -07:00
Veera Sundaram Sankaran
56c32840d4 clk: mdss: Remove pll support for all targets except msm8996
As part of 3.18 upgrade, remove support pll support for all
other targets except msm8996.

Change-Id: Idc778ccba25ce22ad7e418c45f2bd8d21ccb95e8
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:45 -07:00
Naseer Ahmed
62a6355138 msm: mdss: hdmi: Add S3D modes
Export stereoscopic 3D modes supported by the driver to the
userspace.

Change-Id: I9992fc10abeca9cf48a9cca5efd404ec0693bb72
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2016-03-23 20:41:44 -07:00
Veera Sundaram Sankaran
1dd3a6fbbc clk: mdss: Replace thulium with msm8996 in pll
Use appropriate SOC name.

Change-Id: I10b554129775e4b73e15ab173de7f8f3ef0a6b58
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:43 -07:00
Casey Piper
5a356b88c8 clk: mdss: write lane mode when powering on HDMI PHY
To improve the timing margin, lane mode selection
needs to be written during the HDMI PHY startup
sequence. This prevents a timing failure when
VDDCX or VCCA_CORE are applied rather than the
nominal value.

Change-Id: I2ed54f63903a473eca12fb4d8f3b542585397dae
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
2016-03-23 20:41:43 -07:00
Vinu Deokaran
0b02573adc clk: msm: mdss: update pll calculator with new settings
Update HDMI PLL calculation for thulium. These changes are based on
latest settings from PHY team.

Change-Id: I9ab20c4101ff7cbebab61c35553b3e9d4799019f
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
2016-03-23 20:41:42 -07:00
Kuogee Hsieh
bd4cf9d7a0 msm: mdss: add configuration for dsi pll-1's clock dividers
During split display case, pll-1 share vco output of pll-0.
Therefore pll-1's related clock dividers need to be
configured along with pll-0.

Change-Id: I98744ec0b8a5bea952f41754788ba44d824d3373
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2016-03-23 20:41:41 -07:00
Vinu Deokaran
ec1642743f clk: qcom: mdss: remove references to 14nm
Remove references to 14nm and replace them with thulium.

Change-Id: I8a3a86d3510bea71f19003bebe89318c2fb399d4
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
2016-03-23 20:41:40 -07:00
Kuogee Hsieh
21985f965e msm: mdss: add thulium dsi pll support
Implement dsi related clocks framework so that dsi
vco pll related function be called to output correct
vco rate base on byte clock rate. After that pixel
clock rate can be achieved through MND setting.

Change-Id: I819f9fcb8afd9430f131679434c4da34641ce3f8
[veeras@codeaurora.org: As part of 3.18 upgrade,
remove all non-display related code from this commit
	include/dt-bindings/clock/msm-clocks-thulium.h]
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:39 -07:00
Huaibin Yang
92b7d7917b clk: mdss: fix pll 1 leakage issue by calling power down sequence
To completely shutdown pll 1, power down sequence has to be
called. This is different from the old sequence where disable pll
sequence acturally turn off pll.

Change-Id: Ia8b9adb8f78241e34420c0966c3c25b7684b1262
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
2016-03-23 20:41:38 -07:00
Huaibin Yang
452b3b89ff clk: mdss: add pll common block register settings for pll 1
One subset of pll common block setting registers need to be programmed
for both pll 0 and pll 1 to prevent current leakage.

Change-Id: I1ba621f21b49e0e55c3840b281ca9323130465a2
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
2016-03-23 20:41:37 -07:00
Huaibin Yang
bbf226f890 clk: mdss: add delay for new pll locking sequence
This change is corresponding to the update from h/w documentation.

Change-Id: I74ac06ce0cd1b0a8b52be6fa7dab123ebb2fc79e
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
2016-03-23 20:41:37 -07:00
Huaibin Yang
c47167a9be clk: mdss: implement new pll re-locking sequence
The new sequence is intended to improve pll locking time. This patch
is to implement locking pll using stored codes and bypassing
calibration.

Change-Id: I1a26843b5d784984dff4fee0e17841cfc1be37cc
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
2016-03-23 20:41:36 -07:00
Mitchel Humpherys
31a3efe49a iopoll: unify atomic and non-atomic interfaces
readl_poll_timeout and readl_poll_timeout_atomic really accomplish the
same thing, just in different contexts.  Unify their interfaces to
reduce cognitive load on developers and code reviewers.

Change-Id: I319db7cb3894c66447b3337c6802b723a38b3544
[veeras@codeaurora.org: As part of 3.18 upgrade,
remove all non-display-related code from this commit
	arch/arm/mach-msm/clock-mdss-8974.c
	drivers/iommu/arm-smmu.c
	include/linux/iopoll.h]
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:35 -07:00
Vinu Deokaran
3eb7921129 clk: qcom: mdss: add support for HDMI pll on thulium
Added support for new HDMI pll present on thulium. Implemented dynamic
calculator for pll settings.

Change-Id: Ib0b728d9ffb44b753657292e387ee7b44e854122
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
2016-03-23 20:41:34 -07:00
Huaibin Yang
f975c6d946 clk: mdss: implement new pll locking sequence
The new sequence is intended to improve pll locking time. This patch
is part of new sequence in pll driver side.

Change-Id: I09760d52db12deda0c0b4bf700db301cde8a05f1
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
[imaund@codeaurora.org: Resolved context conflicts]
Signed-off-by: Ian Maund <imaund@codeaurora.org>
2016-03-23 20:41:33 -07:00
Casey Piper
9250a95f05 clk: qcom: mdss: add 20nm hdmi pll support for msm8992
Parse HDMI PLL string for msm8992 to set the PLL
interface type to 20nm HDMI PLL.

Change-Id: I7fe187148395d530871dd85ccd59f0645f894096
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
2016-03-23 20:41:32 -07:00
Jeykumar Sankaran
0333e3acf2 clk: qcom: mdss: Add 8992 to 20nm pll supported devices
Add 8992 to 20nm pll supported devices.

Change-Id: Ic5ca0dc72b83da7a559cfbad1c748b25d1542919
[veeras@codeaurora.org: As part of 3.18 upgrade,
remove all non-display related code changes from the commit
	include/dt-bindings/clock/msm-clocks-8992.h]
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:32 -07:00
Casey Piper
e5b1135b5c clk: qcom: mdss: hdmi: increase delays to fix 20nm PLL lock failures
Introduce minor delays in HDMI PHY sequence to ensure that
PHY is ready before failing with a timeout.

Change-Id: I8e9adf542b60e63c0c28d314afd5ac61fa64d1b2
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
2016-03-23 20:41:31 -07:00
Veera Sundaram Sankaran
151356331d clk: qcom: mdss: fix device crash on continuous splash disabled
TZ introduced a recent change which mandates the scm call
before accessing the pll registers. So, when continuous splash
is disabledin bootloader, the scm call is not made and it causes
device crash when the pll driver tries to access the registers.
This change makes it return with a disabled handoff clk from the
pll driver when continuous splash is disabled, thus not accessing
the pll registers at this point.

Change-Id: Ic487ef733f889d463d149ee347667cd8eb04084f
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:30 -07:00
Chandan Uddaraju
5f753a2909 clk: qcom: mdss: update PLL VCO frequency range to change clock phase
Change the VCO frequency range to avoid display fading issues.
Add code to change the PLL dividers to match the new
VCO frequency range.

Change-Id: Iec62f6be26d47cdfd8b2acb895f2e80d57164833
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-03-23 20:41:29 -07:00
Casey Piper
146e4f6311 clk: qcom: mdss: add support for HDMI autopll calculations
Automatically calculate the register
values needed for HDMI PLL based on the
pixel clock.

Change-Id: I6fbe519e0316c3f9cc12cd0afd5aa08a90deed7d
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
2016-03-23 20:41:28 -07:00
Mitchel Humpherys
d73e41e3ca iopoll: remove overly-helpful helper macros, clarify naming
Some of the macros in iopoll.h might be a tad verbose or
redundant. Several of the "verbose" macros are not used anywhere in the
kernel. Based on feedback from upstream, rip out the extra "wrapper"
macros and convert callers (if any) to the lower-level ones.

Also change the `_noirq' suffix to the more idiomatic `_atomic'.

The following semantic patch was used to help identify and make the
necessary changes:

    @@
    expression addr, val, cond, timeout_us;
    @@

    - readl_tight_poll_timeout(addr, val, cond, timeout_us)
    + readl_poll_timeout(addr, val, cond, 0, timeout_us)

    @@
    expression addr, val, cond, max_reads, time_between_us;
    @@

    - readl_poll_timeout_noirq(addr, val, cond, max_reads, time_between_us)
    + readl_poll_timeout_atomic(addr, val, cond, max_reads, time_between_us)

Change-Id: Ibdb054ded59d777f38f594a2f09a12c64abdb059
[veeras@codeaurora.org: As part of 3.18 upgrade, removing all
non-display related code from this commit.
	arch/arm/mach-msm/clock-mdss-8974.c
	drivers/clk/msm/gdsc.c
	drivers/iommu/msm_iommu-v1.c
	include/linux/iopoll.h]
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-03-23 20:41:27 -07:00
Shivaraj Shetty
6e9b4cd96b clk: qcom: mdss: add DSI PLL clock driver support for msm8909
Add changes for DSI PLL clock driver support for msm8909. Add
the compatibility string of the DSI PLL handle so that the
detection and support of DSI PLL driver for 8909 happens
dynamically.

Change-Id: If1fb96982433f90c5b82dda8686b7284825bcd09
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
2016-03-23 20:41:27 -07:00
Casey Piper
65de9c3fb4 clk: qcom: mdss: Reduce delays in HDMI clock enable
Reducing delays in HDMI clock enable to prevent
the thread from being held in the realtime process
and hogging the CPU. Updated delays are provided
after further hardware testing. With the added
microsecond delay in the timout loop, C and PHY
ready should occur well before timeout.

Change-Id: Ib36a06e5309f3f8ba9e4013d08ca2ed108457beb
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
2016-03-23 20:41:26 -07:00
Siddhartha Agrawal
81a5537982 clk: msm: mdss: Add support for DSI PLL 1 clock registration
Setup DSI 1 PLL clock heirarchy. This is needed for instances
where we need to turn off the second pll in case of current
leak issue.

Change-Id: I694af1fa9591b2345709687c9e7b1d69f15b56a9
[veeras@codeaurora.org: As part of 3.18 upgrade,
removing changes in include/dt-bindings/clock/msm-clocks-8994.h
from this gerrit]
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 20:41:25 -07:00
Siddhartha Agrawal
840d2a0157 clk: mdss: shutdown 20nm PHY pll properly to fix power issue
The second DSI PLL is consuming power when it is in reset
state. Configure the needed registers to shutdown the
second DSI PLL properly even though its not been used.
Add these register configurations whenever mdss gdsc
is toggled.

Change-Id: I008bc102795ccb5991bf4b61545c2d672b453392
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
2016-03-23 20:41:24 -07:00
Dhaval Patel
9d4e96bb33 clk: qcom: mdss: init mdss pll driver at subsys level
Boot loader enables resources for continuous splash
screen feature and leaves it on when kernel boot up.
MDSS PLL driver adds vote for for these resources in
kernel. Some other driver can also request same resources
and disables it in failure case. This will fade out
splash image on screen. Initializing pll driver
at subsystem level adds vote for resources at early
stage.

Change-Id: Icb80c73e185461a49f682a80ab0578883640e803
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2016-03-23 20:41:23 -07:00
Jeevan Shriram
10172a00f2 clk: mdss: add software mux for byte and pixel source clocks
Implement the software mux to byte clock and pixel source clock
with shadow implementation of PLL clock. This is used for
configuring the dynamic refresh pll registers.

Change-Id: I9c84cb76d040c5df7361291b6e1fc0fe69dc214f
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-03-23 20:41:22 -07:00
Jeevan Shriram
7cd8b389a7 clk: mdss: parse the dynamic refresh register base
Add support for parsing dynamic refresh register base
for register programming.

Change-Id: I0f23f3c6c01e2ef47fec5048ae0c8ebf31566b61
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-03-23 20:41:22 -07:00