On Tue, May 21, 2019 at 07:24:32AM +0000, Kamps, John-Eric wrote:
> Hi Jagan
> 
> >Possible checks.
> 
> >01. Try the bsp first, since we don't have any kind of reference documents.
> OK I will compare them
> 
> >02:  Identify the working pixel clock rates along with dividers
> I will check the kernel log from the original device.
> 
> >03:  Better get the regmap of tcon0 and other sequence for cross 
> >verification.
> How can I get these values? Is there a bash command, or debugging, log 
> output, syslog interface file?

Using busybox `devmem` applet or devmem2 utility.

If you're using Armbian/Debian just `apt install busybox`.

And sample usage of the devmem applet I used to debug hdmi issues on A20:

[snip]
#! /bin/bash
function dump {
        base=$1
        size=$2
        for((i=0;i<$size;i=i+4)) ; do
                addr=$(($base + $i))
                data=$(busybox devmem $addr)
                echo $(printf '%#x: %s' $addr $data)
        done
}
function f {
        dump $(( $1 )) $(( $2 ))
}
# XXX: These are A20 addresses and block sizes
# tcon0 
f 0x01c0c000 0x1000
# ccu
f 0x01c20000 0x400
[/snip]

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/20190521083909.7b5kdtbuc23emu7l%40plaes.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to