OMAP: IrDA: Update
Subsystems (5)
PATCH 1/1 OMAP: IrDA: Update
Tony,
Attached patch moves dma related params to board-*.c files, and having few cosmetic changes.
---Komal Shah
http://komalshah.blogspot.com/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Subject: [PATCH] IrDA: OMAP: Move dma related parameters to platform data and also
few more cosmetic changes.
Signed-off-by Komal Shah <[email protected]>
---
arch/arm/mach-omap1/board-h2.c | 7 +++ arch/arm/mach-omap1/board-h3.c | 7 +++ arch/arm/mach-omap2/board-h4.c | 7 +++ drivers/net/irda/omap-ir.c | 99 +++++++++++++++----------------------- include/asm-arm/arch-omap/irda.h | 8 +++ 5 files changed, 68 insertions(+), 60 deletions(-)
e0eb5aad630fd213c6f6582e2dd25b4f2668e214
arch/arm/mach-omap1/board-h2.c +7 -0
@@ -40,6 +40,7 @@#include <asm/arch/irda.h> #include <asm/arch/usb.h> #include <asm/arch/keypad.h> +#include <asm/arch/dma.h> #include <asm/arch/common.h> extern int omap_gpio_init (void );
@@ -254,6 +255,12 @@ static int h2_transceiver_mode(struct destatic struct omap_irda_config h2_irda_data = { .transceiver_cap =IR_SIRMODE |IR_MIRMODE |IR_FIRMODE , + .rx_channel =OMAP_DMA_UART3_RX , + .tx_channel =OMAP_DMA_UART3_TX , + .dest_start =UART3_THR , + .src_start =UART3_RHR , + .tx_trigger =0 , + .rx_trigger =0 , };static struct resource h2_irda_resources[] = {
arch/arm/mach-omap1/board-h3.c +7 -0
@@ -43,6 +43,7 @@#include <asm/arch/irda.h> #include <asm/arch/usb.h> #include <asm/arch/keypad.h> +#include <asm/arch/dma.h> #include <asm/arch/common.h> extern int omap_gpio_init (void );
@@ -329,6 +330,12 @@ static struct omap_irda_config h3_irda_d .transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE, .transceiver_mode = h3_transceiver_mode, .select_irda = h3_select_irda, + .rx_channel = OMAP_DMA_UART3_RX, + .tx_channel = OMAP_DMA_UART3_TX, + .dest_start = UART3_THR, + .src_start = UART3_RHR, + .tx_trigger = 0, + .rx_trigger = 0, };static struct resource h3_irda_resources[] = {
arch/arm/mach-omap2/board-h4.c +7 -0
@@ -35,6 +35,7 @@#include <asm/arch/common.h> #include <asm/arch/keypad.h> #include <asm/arch/menelaus.h> +#include <asm/arch/dma.h> #include "prcm-regs.h" #include <asm/io.h>
@@ -214,6 +215,12 @@ static struct omap_irda_config h4_irda_d .transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE, .transceiver_mode = h4_transceiver_mode, .select_irda = h4_select_irda, + .rx_channel = OMAP24XX_DMA_UART3_RX, + .tx_channel = OMAP24XX_DMA_UART3_TX, + .dest_start = OMAP_UART3_BASE, + .src_start = OMAP_UART3_BASE, + .tx_trigger = OMAP24XX_DMA_UART3_TX, + .rx_trigger = OMAP24XX_DMA_UART3_RX, };static struct resource h4_irda_resources[] = {
drivers/net/irda/omap-ir.c +40 -59
213 lines not on this page · raw message
include/asm-arm/arch-omap/irda.h +7 -1
@@ -1,7 +1,7 @@/* * linux/include/asm-arm/arch-omap/irda.h * -* Copyright (C) 2005 Komal Shah <[email protected]> +* Copyright (C) 2005-2006 Komal Shah <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as
@@ -25,6 +25,12 @@ struct omap_irda_config {* having calls which can sleep in irda_set_speed. */ struct work_struct gpio_expa; +int rx_channel; +int tx_channel; +unsigned long dest_start; +unsigned long src_start; +int tx_trigger; + int rx_trigger; };#endif
Signature · 1 line
1.1.6
Tony Lindgren
maintainerQuoted 4 lines · Komal Shah
Tony,
Attached patch moves dma related params to board-*.c files, and having few cosmetic changes.
Pushing today.
Tony