[PATCH] SMedia-Glamo-fb hardware cursor and fixes.

Andy Green andy at openmoko.com
Wed Jun 4 19:44:28 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:

| Wow screen fade to white must mean no pixel clock came any more, so when
| it blew up, it blew up really well.
|
| If you're ever interested to poke on it some more, the way forward would
| be to dump the Glamo LCD regs before and after the "whiteout" so we can
| see what is getting overwritten.  I had some nice code for that but I
| seem to have mislaid the patch, I'll look a bit more for it.

It's enabled on the andy tree already, it's in glamo-core.c.  You can
get an LCD region register dump like this:

# cat /sys/devices/platform/glamo3362.0/regs

LCD

1100:  0020 1020 0b40 01e0 0280 440c 0000 0000
1110:  0000 0000 0000 0000 03c0 0000 0200 0000
1120:  0000 0000 0008 0000 0010 0000 01f0 0000
1130:  0294 0000 0000 0000 0002 0000 0004 0000
...

If the problem is coming from other regs, like the clock control ones,
getting crapped on, you can select other ranges to show by editing

	struct reg_range reg_range[] = {
/*		{ 0x0000, 0x200, "General" },
		{ 0x0200, 0x100, "Host Bus" },
		{ 0x0300, 0x100, "Memory" },
		{ 0x0400, 0x100, "Sensor" },
		{ 0x0500, 0x300, "ISP" },
		{ 0x0800, 0x400, "JPEG" },
		{ 0x0c00, 0x500, "MPEG" },
*/
		{ 0x1100, 0x400, "LCD" },
/*
		{ 0x1500, 0x080, "MPU 0" },
		{ 0x1580, 0x080, "MPU 1" },
		{ 0x1600, 0x080, "Command Queue" },
		{ 0x1680, 0x080, "RISC CPU" },
		{ 0x1700, 0x400, "2D Unit" },
		{ 0x1b00, 0x900, "3D Unit" },
*/
	};

in glamo-core.c

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkhG1HsACgkQOjLpvpq7dMoyBwCbBr+rO3zdSb8LwthTYnASy+6p
2dcAniKXS5h8H6i8IuqE/S3WzdXNewAO
=XTds
-----END PGP SIGNATURE-----




More information about the openmoko-kernel mailing list