diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
commit | 845092569c227454f28d77e647d386ab7cc1419f (patch) | |
tree | efab142ef89b35ce42e8a79e028eff15be362af8 /target/linux/s3c24xx/patches/0110-debug-glamo-add-lcd-regs-to-dump.patch.patch | |
parent | d565bb20de4a9dec01f2f4c0f62be55eb61435a9 (diff) | |
download | master-187ad058-845092569c227454f28d77e647d386ab7cc1419f.tar.gz master-187ad058-845092569c227454f28d77e647d386ab7cc1419f.tar.bz2 master-187ad058-845092569c227454f28d77e647d386ab7cc1419f.zip |
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches/0110-debug-glamo-add-lcd-regs-to-dump.patch.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches/0110-debug-glamo-add-lcd-regs-to-dump.patch.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0110-debug-glamo-add-lcd-regs-to-dump.patch.patch b/target/linux/s3c24xx/patches/0110-debug-glamo-add-lcd-regs-to-dump.patch.patch new file mode 100755 index 0000000000..a77816b182 --- /dev/null +++ b/target/linux/s3c24xx/patches/0110-debug-glamo-add-lcd-regs-to-dump.patch.patch @@ -0,0 +1,55 @@ +From b125a98964db82b9d69f683f6b887422a55f0124 Mon Sep 17 00:00:00 2001 +From: warmcat <andy@warmcat.com> +Date: Fri, 25 Jul 2008 23:06:04 +0100 +Subject: [PATCH] debug-glamo-add-lcd-regs-to-dump.patch + +Signed-off-by: Andy Green <andy@openmoko.com> +--- + drivers/mfd/glamo/glamo-core.c | 11 ++++++----- + 1 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c +index 19ca363..ab90690 100644 +--- a/drivers/mfd/glamo/glamo-core.c ++++ b/drivers/mfd/glamo/glamo-core.c +@@ -1012,14 +1012,16 @@ static ssize_t regs_read(struct device *dev, struct device_attribute *attr, + char * name; + }; + struct reg_range reg_range[] = { +- { 0x0000, 0x200, "General" }, ++/* { 0x0000, 0x200, "General" }, + { 0x0200, 0x100, "Host Bus" }, + { 0x0300, 0x100, "Memory" }, +-/* { 0x0400, 0x100, "Sensor" }, ++ { 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" }, +@@ -1037,8 +1039,7 @@ static ssize_t regs_read(struct device *dev, struct device_attribute *attr, + for (n = reg_range[r].start; + n < reg_range[r].start + reg_range[r].count; n += 2) { + if (((n1++) & 7) == 0) +- end += sprintf(end, "\n%04X: ", +- n + reg_range[r].start); ++ end += sprintf(end, "\n%04X: ", n); + end += sprintf(end, "%04x ", __reg_read(glamo, n)); + } + end += sprintf(end, "\n"); +@@ -1098,7 +1099,7 @@ static int __init glamo_probe(struct platform_device *pdev) + platform_device_register(&glamo_core_dev); + #endif + /* only remap the generic, hostbus and memory controller registers */ +- glamo->base = ioremap(glamo->mem->start, GLAMO_REGOFS_VIDCAP); ++ glamo->base = ioremap(glamo->mem->start, 0x4000 /*GLAMO_REGOFS_VIDCAP*/); + if (!glamo->base) { + dev_err(&pdev->dev, "failed to ioremap() memory region\n"); + goto out_free; +-- +1.5.6.3 + |