OMAP L138 support
Subsystems (6)
After discussion with Gilles, I'm putting up my patches for the L138 (specifically the da850) though we're still sorting out why things can go wrong with FCSE best-effort and *lots* of tracing turned on.
Note: I'll be switching to my work email account to post the patches (for proper attribution).
Signature · 1 line
Peter Howard <[email protected]>
PATCH 1/2 Fix to Ti EDMA code - refer http://www.spinics.net/lists/linux-omap/msg10462
--- drivers/dma/edma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/dma/edma.c +4 -2
@@ -182,11 +182,13 @@ static void edma_execute(struct edma_chan *echan) echan->ecc->dummy_slot); } -edma_resume (echan->ch_num); -if (edesc->processed <=MAX_NR_SG ) {dev_dbg (dev,"first transfer starting %d\n" , echan->ch_num);edma_start (echan->ch_num); + }else { +dev_dbg (dev,"chan: %d: completed %d elements, resuming\n" , + echan->ch_num, edesc->processed); +edma_resume (echan->ch_num); }/*
Signature · 6 lines
1.9.3 ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
PATCH 2/2 Add ipipe support for Ti da850 board
In reply to Peter Howard--- arch/arm/mach-davinci/Kconfig | 1 + arch/arm/mach-davinci/cp_intc.c | 1 + arch/arm/mach-davinci/time.c | 46 +++++++++++++++++++++++++++++++++++++++++ drivers/gpio/gpio-davinci.c | 7 +++++++ 4 files changed, 55 insertions(+)
arch/arm/mach-davinci/Kconfig +1 -0
@@ -41,6 +41,7 @@ config ARCH_DAVINCI_DA850 select ARCH_DAVINCI_DA8XX select ARCH_HAS_CPUFREQ select CP_INTC + select IPIPE_ARM_KUSER_TSC if IPIPE config ARCH_DAVINCI_DA8XX bool
arch/arm/mach-davinci/cp_intc.c +1 -0
@@ -17,6 +17,7 @@#include <linux/of.h> #include <linux/of_address.h> #include <linux/of_irq.h> +#include <linux/ipipe.h> #include <mach/common.h> #include <mach/cp_intc.h>
arch/arm/mach-davinci/time.c +46 -0
95 lines not on this page · raw message
drivers/gpio/gpio-davinci.c +7 -0
@@ -23,6 +23,7 @@#include <linux/platform_device.h> #include <linux/platform_data/gpio-davinci.h> #include <linux/irqchip/chained_irq.h> +#include <linux/ipipe.h> struct davinci_gpio_regs {u32 dir;
@@ -338,9 +339,15 @@ gpio_irq_handler(unsigned irq, struct irq_desc *desc)while (status) { bit =__ffs (status); status &= ~BIT (bit); +#ifdef CONFIG_IPIPE +ipipe_handle_demuxed_irq ( +irq_find_mapping (d->irq_domain, + d->chip.base + bit)); +#else generic_handle_irq (irq_find_mapping (d->irq_domain, d->chip.base + bit)); +#endif /* CONFIG_IPIPE */ } }chained_irq_exit (irq_desc_get_chip (desc), desc);
Signature · 6 lines
1.9.3 ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
Re: [Xenomai] [PATCH 2/2] Add ipipe support for Ti da850 board
drivers/gpio/gpio-davinci.c gpio_irq_handler(unsigned irq, struct irq_desc *desc) · line 353
Quoted 13 lines · Peter Howard
drivers/gpio/gpio-davinci.c +6
-0+#ifdef CONFIG_IPIPE +ipipe_handle_demuxed_irq ( +irq_find_mapping (d->irq_domain, + d->chip.base + bit)); +#else generic_handle_irq (irq_find_mapping (d->irq_domain, d->chip.base + bit)); +#endif /* CONFIG_IPIPE */ } }chained_irq_exit (irq_desc_get_chip (desc), desc);
You do not need the #ifdef CONFIG_IPIPE here, ipipe_handle_demuxed_irq is replaced with generic_handle_irq when CONFIG_IPIPE is off.
Signature · 1 line
Gilles.