Age | Commit message (Collapse) | Author |
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
This patch let you force cycling between the whitelisted modes
possible on hisi hdmi.
Force the mode change by typing
Alt-Gr SysRq g
that is
- hold down the right-hand ALT key
- hold down the SysRq key
- tap g key
- let go of everything
Each time he will move to the "next" mode, at the moment in the order
(assume started in 1080p60)
1080p50
720p60
1080p60
etc
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
The existing code here assumes that the framebuffer size is always the
scanout size. There is no requirement that is true, and eg, if you start on
a 1080p mode and change mode in the framebuffer console to 720p later,
the framebuffer console remains at 1080p and the new mode is a subwindow on
the 1080p sized original framebuffer console.
This patch corrects the computations to use the right mix of information
about the memory layout (framebuffer stride) and the current scanout
(crtc active mode dimensions) so it works for all cases.
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
This creates a canned DRM mode for 720p60, and in the event there is
no usable mode left after DRM checks validity, the canned mode will be
used.
This is helpful in two cases
1) No EDID appeared, but the device supports the fallback mode
2) An EDID appeared, but it does not list any acceptable mode. However,
the device does actually support the fallback mode.
It's implemented by adding a new optional connector func callback which
is called in the event we are left with no valid modes. Connectors may
handle the "fallback_mode" callback and add a fallback mode to use rather
than the DRM default of 1024 x 768.
You can test "no EDID" by shorting HDMI connector p16 (SDA) to p17 (0V)
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
1) Enhance all the computations to use ps period resolution and kHz frequency resolution, improving accuracy.
2) Automatically use 4 lanes when clock rate > 80MHz, for compatibility with
1080p
3) I found enable and disable of the DSI LP mode when other transmissions can
occur was necessary to make each mode work. By trial and error I found what
is needed for each mode and implemented heuristics.
4) Some modes require one more byte lane clock compared to the calculated
amount, I added a heuristic to do it
With these changes 1080p50 and 60 modes work on all 3 of my monitors, and
720p60 can also work. 720p50 worked on one monitor but on another he was
flicking between showing it correctly and feeling the mode was invalid,
so I disabled it.
There is a colour swap problem on 1080p60 I noticed sometimes. On some
boots what should be R, G, B are misordered as B, R, G, I think it means we
slipped a colour byte
sent by DSI: RGBRGBRGBRGB
received by ADV7533: RGBRGBRGBRGB
This happens between DSI and ADV7533 because
- it's the first place the pixels are serialized
- swapping monitors after this happens it never changes afterwards (ie,
problem is not happening in the monitor receiver)
I only just noticed it so not sure what to do about it yet.
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Framebuffer console no longer needs this to work, EDID fetch
and 3-lane restriction automatically selects 720p or best mode
available on monitor.
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
The helpers bloat the code and hide what's actually going in
the registers.
I'm a bit dubious about these bitfields always mapping correctly as well,
also get rid of those (-94 LOC)
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
This patch iteratively selects the ADE pixel clock, optionally in
order to always choose the next highest clock, but always to avoid
72MHz base clock, which later selects 576MHz DSI clock which is
unreliable, it only locks correctly about 50% of boots.
Storing the actual chosen clock in adj_mode is used elsewhere to
provide correct computations in later patches.
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
The existing EDID wait / fetch code did not work on hikey on my
two test monitors.
This patch simplifies the wait and is able to correctly get the edid in
both cases now.
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
The existing code seems to expect there is only one setting for
the number of lanes in use. On a pluggable HDMI device, the
number of lanes needed changes dynamically depending on the mode
that is chosen.
This patch makes the number of lanes optional in the dts, if left
out then it's decided dynamically, on the heuristic that
pixel clock > 80MHz == 4 lanes, otherwise 3
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Otherwise we can't even make a 1080p framebuffer
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Signed-off-by: Andy Green <andy.green@linaro.org>
|
|
Add LED support for tty HCI driver. Two triggers are used, and each for one
traffic direction: tx and rx.
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
WLAN_EN pin should be controllable by mmmc driver on each of its up
and down.
Otherwise, WLAN module cannot be properly reset. One noticeable failure
happens at the second time you run 'ifconfig wlan0 up'.
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Since LDO21 is used on low speed expansion board, make it always on to
debug LS expansion board easier.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
The old dts have no configuration for uart3/4, so add related support
for these two uart ports.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
|
|
|
|
usb_speed takes effect immediately if in host mode.
Note: current operation may be stopped.
ps: usb_speed specifically used for A ports.
OTG port supports high/full/low speed dynamically
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Find 1.8v voltage switch still has issue
So only support hs mode, and do not support sdr mode until 1.8v voltage switch is supported
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Fixes HiKey system shutdowns caused by SoC overheating (90C threshold
reached) while running lkp tests [1]
[1] git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
|
|
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Two LED triggers are defined: [hdev->name]tx and [hdev->name]rx. Upon packets
availabe in HCI core layer, they blink.
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
emmc: hs
sd: hs, sdr12, sdr25
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
namespaces is required by systemd hostnamed
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
|
|
This reverts commit f2ee6dfa0e8597eea8b98d240b0033994e20d215.
Jakub Kiciński observed that this patch can cause the pl011
driver to hang if if the only process with a pl011 port open is
killed by a signal, pl011_shutdown() can get called with an
arbitrary amount of data still in the FIFO.
Calling _shutdown() with the TX FIFO non-empty is questionable
behaviour and my itself be a bug.
Since the affected patch was speculative anyway, and brings limited
benefit, the simplest course is to remove the assumption that TXIS
will always be left asserted after the port is shut down.
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
|
|
not open""
This reverts commit c53e40af6ae1176e198616658e7a0b71030ea978.
|
|
Remove macro DEBUG so can remove mass debug info.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
This reverts commit 2240197df2a93c8d526a24154ba60e136276f12b.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
|
|
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
* ext4 fs is used for ext2/ext3 through CONFIG_EXT4_USE_FOR_EXT23
hence enabling ext2/ext3 is unecessary
* enable overlay fs
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
|