From 14e1ed70361f7f5a5e54d93a606a7c8d53460b95 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Mon, 17 May 2010 13:31:01 +0200 Subject: linux-openmoko-2.6.32: add patches from gdrm-for-merging instead of gdrm-2.6.32 branch and rebase Signed-off-by: Martin Jansa --- ...sh-when-reading-Glamo-registers-via-sysfs.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 recipes/linux/linux-openmoko-2.6.32/0011-Fix-crash-when-reading-Glamo-registers-via-sysfs.patch (limited to 'recipes/linux/linux-openmoko-2.6.32/0011-Fix-crash-when-reading-Glamo-registers-via-sysfs.patch') diff --git a/recipes/linux/linux-openmoko-2.6.32/0011-Fix-crash-when-reading-Glamo-registers-via-sysfs.patch b/recipes/linux/linux-openmoko-2.6.32/0011-Fix-crash-when-reading-Glamo-registers-via-sysfs.patch new file mode 100644 index 0000000000..0f5af99025 --- /dev/null +++ b/recipes/linux/linux-openmoko-2.6.32/0011-Fix-crash-when-reading-Glamo-registers-via-sysfs.patch @@ -0,0 +1,38 @@ +From d5f07ab010afe531312874872904fe1a0348ee2b Mon Sep 17 00:00:00 2001 +From: Thomas White +Date: Thu, 4 Feb 2010 00:07:25 +0100 +Subject: [PATCH 11/14] Fix crash when reading Glamo registers via sysfs + +glamo-core didn't ioremap() some areas, so don't try to read them. + +Signed-off-by: Thomas White +--- + drivers/mfd/glamo/glamo-core.c | 8 ++++---- + 1 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c +index 74da668..33a7a59 100644 +--- a/drivers/mfd/glamo/glamo-core.c ++++ b/drivers/mfd/glamo/glamo-core.c +@@ -90,14 +90,14 @@ static const struct reg_range reg_range[] = { + /* { 0x0500, 0x300, "ISP", 0 }, */ + /* { 0x0800, 0x400, "JPEG", 0 }, */ + /* { 0x0c00, 0xcc, "MPEG", 0 }, */ +- { 0x1100, 0xb2, "LCD 1", 1 }, +- { 0x1200, 0x64, "LCD 2", 1 }, +- { 0x1400, 0x42, "MMC", 1 }, ++ { 0x1100, 0xb2, "LCD 1", 0 }, ++ { 0x1200, 0x64, "LCD 2", 0 }, ++ { 0x1400, 0x42, "MMC", 0 }, + /* { 0x1500, 0x080, "MPU 0", 0 }, + { 0x1580, 0x080, "MPU 1", 0 }, + { 0x1600, 0x080, "Cmd Queue", 0 }, + { 0x1680, 0x080, "RISC CPU", 0 },*/ +- { 0x1700, 0x400, "2D Unit", 1 }, ++ { 0x1700, 0x400, "2D Unit", 0 }, + /* { 0x1b00, 0x900, "3D Unit", 0 }, */ + }; + +-- +1.7.1 + -- cgit v1.2.3