Hello from the Linwizard project, We have been working on supporting omap850 smartphones from HTC such as Wizard, Herald etc. We have found that omap730 and omap850 are almost exactly the same. As far as what is supported in linux-omap so far, they are identical. Currently there are seperate code paths for 730 and 850, and this is causing us a lot of problems when one is changed and the other isn't. I also noticed that OMAP F-Sample board uses ARCH_OMAP730 even though it has a OMAP850 SoC. In order to try to clean this up I have produced a patch series which removes all cpu_is_omap730/850 and replaces them with unified cpu_is_omap7xx() blocks, and similarly merges CONFIG checks. Here is a random example: -#ifdef CONFIG_ARCH_OMAP730 - if (cpu_is_omap730()) { +#if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) + if (cpu_is_omap7xx()) { irq_banks = omap730_irq_banks; irq_bank_count = ARRAY_SIZE(omap730_irq_banks); } #endif -#ifdef CONFIG_ARCH_OMAP850 - if (cpu_is_omap850()) { - irq_banks = omap850_irq_banks; - irq_bank_count = ARRAY_SIZE(omap850_irq_banks); - } -#endif Drilling down through the variables shows they are always equivalent for 730 and 850, except where there is a bug. The patch series converts all 730/850 specific code to omap7xx as above. Then all variables and defines have been renamed to refer to 7xx. omap730.h and omap850.h are removed and replaced with omap7xx.h. ARCH_OMAP730 and ARCH_OMAP850 are still distinct, as there are a few differences - but only things that haven't been implemented yet. This makes several bugs go away for us on omap850, including the MPUIO_VBASE bug, and the lack of working IRQs - since these bugs arn't in the 730 paths. It would hopefully prevent similar bugs from showing up in the future too. I did everything as small patches, so I won't spam all 35+ patches on the list. The work is available in branch omap7xx here: http://ali1234.homelinux.net/linwizard-kernel.git/ git diff-tree --stat linux-omap/master omap7xx arch/arm/mach-omap1/board-fsample.c | 18 +- arch/arm/mach-omap1/board-perseus2.c | 18 +- arch/arm/mach-omap1/clock.c | 22 ++- arch/arm/mach-omap1/clock.h | 30 ++++ arch/arm/mach-omap1/io.c | 45 ++---- arch/arm/mach-omap1/irq.c | 32 +--- arch/arm/mach-omap1/mcbsp.c | 32 ++-- arch/arm/mach-omap1/mux.c | 70 +++----- arch/arm/mach-omap1/pm.c | 100 ++++++------ arch/arm/mach-omap1/pm.h | 53 +++--- arch/arm/mach-omap1/serial.c | 13 +- arch/arm/mach-omap1/sleep.S | 22 ++-- arch/arm/plat-omap/common.c | 6 +- arch/arm/plat-omap/devices.c | 22 ++-- arch/arm/plat-omap/gpio.c | 227 +++++++------------------ arch/arm/plat-omap/include/mach/entry-macro.S | 8 +- arch/arm/plat-omap/include/mach/hardware.h | 2 +- arch/arm/plat-omap/include/mach/irqs.h | 229 ++++++++----------------- arch/arm/plat-omap/include/mach/mcbsp.h | 6 +- arch/arm/plat-omap/include/mach/mux.h | 100 +++-------- arch/arm/plat-omap/include/mach/omap730.h | 102 ----------- arch/arm/plat-omap/include/mach/omap7xx.h | 102 +++++++++++ arch/arm/plat-omap/include/mach/omap850.h | 102 ----------- arch/arm/plat-omap/include/mach/uncompress.h | 3 +- arch/arm/plat-omap/io.c | 14 +- arch/arm/plat-omap/usb.c | 10 +- drivers/rtc/Kconfig | 2 +- drivers/spi/omap_uwire.c | 8 +- 28 files changed, 513 insertions(+), 885 deletions(-) -- Alistair Buxton a.j.buxton@xxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html