login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
26
Re: [PATCH 2/2] mfd: Add timb-dma to all configurations of timberdale
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Samuel Ortiz
Subject:
Re: [PATCH 2/2] mfd: Add timb-dma to all configurations of timberdale
Date: Friday, March 26, 2010 - 3:15 am
Hi Richard, On Thu, Mar 25, 2010 at 07:44:23PM +0100, Richard Röjfors wrote:
quoted text
> Add platform data for timb-dma, and add it in to timb-dma > in all configurations of timberdale. > > Also incremented the version number.
Many thanks, patch applied to my for-next branch. Cheers, Samuel.
quoted text
> Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com> > --- > diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c > index 1d52349..a7f3048 100644 > --- a/drivers/mfd/timberdale.c > +++ b/drivers/mfd/timberdale.c > @@ -40,6 +40,8 @@ > > #include <media/timb_radio.h> > > +#include <linux/timb_dma.h> > + > #include "timberdale.h" > > #define DRIVER_NAME "timberdale" > @@ -269,6 +271,65 @@ static __devinitdata struct timb_radio_platform_data > } > }; > > +static __devinitdata struct timb_dma_platform_data timb_dma_platform_data = { > + .nr_channels = 10, > + .channels = { > + { > + /* UART RX */ > + .rx = true, > + .descriptors = 2, > + .descriptor_elements = 1 > + }, > + { > + /* UART TX */ > + .rx = false, > + .descriptors = 2, > + .descriptor_elements = 1 > + }, > + { > + /* MLB RX */ > + .rx = true, > + .descriptors = 2, > + .descriptor_elements = 1 > + }, > + { > + /* MLB TX */ > + .rx = false, > + .descriptors = 2, > + .descriptor_elements = 1 > + }, > + { > + /* Video RX */ > + .rx = true, > + .bytes_per_line = 1440, > + .descriptors = 2, > + .descriptor_elements = 16 > + }, > + { > + /* Video framedrop */ > + }, > + { > + /* SDHCI RX */ > + .rx = true, > + }, > + { > + /* SDHCI TX */ > + }, > + { > + /* ETH RX */ > + .rx = true, > + .descriptors = 2, > + .descriptor_elements = 1 > + }, > + { > + /* ETH TX */ > + .rx = false, > + .descriptors = 2, > + .descriptor_elements = 1 > + }, > + } > +}; > + > const static __devinitconst struct resource timberdale_dma_resources[] = { > { > .start = DMAOFFSET, > @@ -284,6 +345,13 @@ const static __devinitconst struct resource timberdale_dma_resources[] = { > > static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { > { > + .name = "timb-dma", > + .num_resources = ARRAY_SIZE(timberdale_dma_resources), > + .resources = timberdale_dma_resources, > + .platform_data = &timb_dma_platform_data, > + .data_size = sizeof(timb_dma_platform_data), > + }, > + { > .name = "timb-uart", > .num_resources = ARRAY_SIZE(timberdale_uart_resources), > .resources = timberdale_uart_resources, > @@ -321,14 +389,16 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { > .num_resources = ARRAY_SIZE(timberdale_eth_resources), > .resources = timberdale_eth_resources, > }, > +}; > + > +static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { > { > .name = "timb-dma", > .num_resources = ARRAY_SIZE(timberdale_dma_resources), > .resources = timberdale_dma_resources, > + .platform_data = &timb_dma_platform_data, > + .data_size = sizeof(timb_dma_platform_data), > }, > -}; > - > -static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { > { > .name = "timb-uart", > .num_resources = ARRAY_SIZE(timberdale_uart_resources), > @@ -377,14 +447,16 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { > .num_resources = ARRAY_SIZE(timberdale_eth_resources), > .resources = timberdale_eth_resources, > }, > +}; > + > +static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { > { > .name = "timb-dma", > .num_resources = ARRAY_SIZE(timberdale_dma_resources), > .resources = timberdale_dma_resources, > + .platform_data = &timb_dma_platform_data, > + .data_size = sizeof(timb_dma_platform_data), > }, > -}; > - > -static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { > { > .name = "timb-uart", > .num_resources = ARRAY_SIZE(timberdale_uart_resources), > @@ -418,14 +490,16 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { > .platform_data = &timberdale_xspi_platform_data, > .data_size = sizeof(timberdale_xspi_platform_data), > }, > +}; > + > +static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { > { > .name = "timb-dma", > .num_resources = ARRAY_SIZE(timberdale_dma_resources), > .resources = timberdale_dma_resources, > + .platform_data = &timb_dma_platform_data, > + .data_size = sizeof(timb_dma_platform_data), > }, > -}; > - > -static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { > { > .name = "timb-uart", > .num_resources = ARRAY_SIZE(timberdale_uart_resources), > @@ -464,11 +538,6 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { > .num_resources = ARRAY_SIZE(timberdale_eth_resources), > .resources = timberdale_eth_resources, > }, > - { > - .name = "timb-dma", > - .num_resources = ARRAY_SIZE(timberdale_dma_resources), > - .resources = timberdale_dma_resources, > - }, > }; > > static const __devinitconst struct resource timberdale_sdhc_resources[] = { > diff --git a/drivers/mfd/timberdale.h b/drivers/mfd/timberdale.h > index 8d27ffa..3683a47 100644 > --- a/drivers/mfd/timberdale.h > +++ b/drivers/mfd/timberdale.h > @@ -23,7 +23,7 @@ > #ifndef MFD_TIMBERDALE_H > #define MFD_TIMBERDALE_H > > -#define DRV_VERSION "0.1" > +#define DRV_VERSION "0.2" > > /* This driver only support versions >= 3.8 and < 4.0 */ > #define TIMB_SUPPORTED_MAJOR 3 > @@ -127,4 +127,16 @@ > #define GPIO_PIN_BT_RST 15 > #define GPIO_NR_PINS 16 > > +/* DMA Channels */ > +#define DMA_UART_RX 0 > +#define DMA_UART_TX 1 > +#define DMA_MLB_RX 2 > +#define DMA_MLB_TX 3 > +#define DMA_VIDEO_RX 4 > +#define DMA_VIDEO_DROP 5 > +#define DMA_SDHCI_RX 6 > +#define DMA_SDHCI_TX 7 > +#define DMA_ETH_RX 8 > +#define DMA_ETH_TX 9 > + > #endif >
-- Intel Open Source Technology Centre
http://oss.intel.com/
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 2/2] mfd: Add timb-dma to all configurations of tim ...
, Richard =?ISO-8859-1 ...
, (Thu Mar 25, 11:44 am)
Re: [PATCH 2/2] mfd: Add timb-dma to all configurations of ...
, Samuel Ortiz
, (Fri Mar 26, 3:15 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Jack J. Woehr
Re: Real men don't attack straw men
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Alex Riesen
Re: git exclude patterns for directory
David Kastrup
Re: I'm a total push-over..
Colocation donated by:
Syndicate