[RFC: PATCH 0/1] da850-evm: Support for TI's PRU CAN Emulation.

2010-11-28 Thread Subhasish Ghosh
The patch adds support for the programmable realtime unit (PRU) available on OMAPL138. This defines the system resource requirements such as pin mux, clock, iomem, interrupt etc and registers the platform device as per the Linux driver model. Subhasish Ghosh (1): da850-evm: Support for TI'

[RFC: PATCH 1/1] da850-evm: Support for TI's PRU CAN Emulation.

2010-11-28 Thread Subhasish Ghosh
The patch adds support for the programmable realtime unit (PRU) available on OMAPL138. This defines the system resource requirements such as pin mux, clock, iomem, interrupt etc and registers the platform device as per the Linux driver model. Signed-off-by: Subhasish Ghosh --- arch/arm/mach

[RFC: PATCH 1/1] da850_evm: Support for TI's PRU SoftUART Emulation

2010-11-29 Thread Subhasish Ghosh
The patch adds support for emulated UART controllers on the programmable realtime unit (PRU) available on OMAPL138. This defines the system resource requirements such as pin mux, clock, iomem, interrupt etc and registers the platform device as per the Linux driver model. Signed-off-by: Subhasish

Re: [RFC: PATCH 1/1] da850-evm: Support for TI's PRU CAN Emulation.

2010-11-29 Thread Subhasish Ghosh
Sergei Shtylyov-2 wrote: > > Hello. > > On 29-11-2010 10:13, Subhasish Ghosh wrote: > >> The patch adds support for the programmable realtime unit (PRU) >> available on OMAPL138. This defines the system resource >> requirements such as pin mux, clock, iomem, i

Re: [RFC: PATCH 1/1] da850_evm: Support for TI's PRU SoftUART Emulation

2010-11-29 Thread Subhasish Ghosh
Sergei Shtylyov-2 wrote: > > Hello. > > On 29-11-2010 14:06, Subhasish Ghosh wrote: > >> The patch adds support for emulated UART controllers >> on the programmable realtime unit (PRU) available on OMAPL138. >> This defines the system resource requirements

Re: [RFC: PATCH 1/1] da850-evm: Support for TI's PRU CAN Emulation.

2010-11-29 Thread Subhasish Ghosh
Cyril Chemparathy wrote: > > On 11/29/2010 02:13 AM, Subhasish Ghosh wrote: >> The patch adds support for the programmable realtime unit (PRU) >> available on OMAPL138. This defines the system resource >> requirements such as pin mux, clock, iomem, interrupt etc >&

RE: [RFC: PATCH 1/1] da850_evm: Support for TI's PRU SoftUART Emulation

2010-11-29 Thread Subhasish Ghosh
Nori, Sekhar wrote: > > Hi Subhasish, > > On Mon, Nov 29, 2010 at 19:12:52, Subhasish Ghosh wrote: >> >> >> >> +static struct clk pru_clk = { >> >> + .name = "pru_ck", >> >> + .parent = &

[PATCH 2/2] da850-evm: Board file modifications TI's PRU CAN.

2010-12-01 Thread Subhasish Ghosh
Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index f89b0b7..3563a46 100644

[PATCH 1/2] da850-evm: Support for TI's PRU CAN Emulation.

2010-12-01 Thread Subhasish Ghosh
The patch adds support for the programmable realtime unit (PRU) available on OMAPL138. This defines the system resource requirements such as pin mux, clock, iomem, interrupt etc and registers the platform device as per the Linux driver model. Signed-off-by: Subhasish Ghosh --- arch/arm/mach

[PATCH 1/2] da850: Support for TI's PRU SoftUART Emulation

2010-12-03 Thread Subhasish Ghosh
The patch adds support for emulated UART controllers on the programmable realtime unit (PRU) available on OMAPL138. This defines the system resource requirements such as pin mux, clock, iomem, interrupt etc and registers the platform device as per the Linux driver model. Signed-off-by: Subhasish

[PATCH 2/2] da850: board file modifications for PRU SUART.

2010-12-03 Thread Subhasish Ghosh
Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index f89b0b7..86a89b1 100644 --- a

Re: [PATCH 1/2] da850: Support for TI's PRU SoftUART Emulation

2010-12-03 Thread Subhasish Ghosh
I am still receiving the alignment problems with CLK and da8xx_register_pru_suart, but the actual patch does not have them, would really appreciate any help. Not sure if this is any problem with the mail client. Attached the original patch file for reference. The CAN and UART patches are not incr

[RFC: PATCH 1/5] da850: Support for TI's PRU SoftUART Emulation

2010-12-31 Thread Subhasish Ghosh
The patch adds support for emulated UART controllers on the programmable realtime unit (PRU) available on OMAPL138. This defines the system resource requirements such as pin mux, clock, iomem, interrupt etc and registers the platform device as per the Linux driver model. Signed-off-by: Subhasish

[RFC: PATCH 2/5] da850: board file modifications for PRU SUART.

2010-12-31 Thread Subhasish Ghosh
Signed-off-by: Subhasish --- arch/arm/mach-davinci/board-da850-evm.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index b01fb2a..bb9f5d5 100644 --- a/arch/arm

[RFC: PATCH 4/5] da850: serial framework modifications for TI's PRU SoftUART Emulation

2010-12-31 Thread Subhasish Ghosh
Signed-off-by: Subhasish --- drivers/serial/Kconfig |2 ++ drivers/serial/Makefile |1 + include/linux/serial_core.h |3 +++ 3 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index aff9dcd..775e33a 100644 --- a/dri

[RFC: PATCH 3/5] da850: architecture files added for TI's PRU SoftUART Emulation

2010-12-31 Thread Subhasish Ghosh
Signed-off-by: Subhasish --- .../mach-davinci/include/mach/pru/omapl_mcasp.h| 498 arch/arm/mach-davinci/include/mach/pru/omapl_pru.h | 44 ++ .../mach-davinci/include/mach/pru/omapl_prucore.h | 137 ++ arch/arm/mach-davinci/include/mach/pru/pru.h | 100 +

[RFC: PATCH 2/5] da850: Board file modifications TI's PRU CAN.

2011-01-03 Thread Subhasish Ghosh
From: Subhasish Signed-off-by: Subhasish --- arch/arm/mach-davinci/board-da850-evm.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index b01fb2a..f44d184

[RFC: PATCH 5/5] da850: CAN framework modifications for TI's PRU CAN Lite Emulation

2011-01-03 Thread Subhasish Ghosh
From: Subhasish Signed-off-by: Subhasish --- drivers/net/can/Kconfig |1 + drivers/net/can/Makefile |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig index 080574b..19331f3 100644 --- a/drivers/net/can/Kconfig +++ b/

[RFC: PATCH 3/5] da850: architecture files added for TI's PRU CAN Lite Emulation.

2011-01-03 Thread Subhasish Ghosh
From: Subhasish Signed-off-by: Subhasish --- arch/arm/mach-davinci/include/mach/pru/omapl_pru.h | 44 .../mach-davinci/include/mach/pru/omapl_prucore.h | 137 +++ arch/arm/mach-davinci/include/mach/pru/pru.h | 100 arch/arm/mach-davinci/pru.c

[RFC: PATCH 1/5] da850: Support for TI's PRU CAN Emulation.

2011-01-03 Thread Subhasish Ghosh
From: Subhasish The patch adds support for an emulated CAN controller on the programmable realtime unit (PRU) available on OMAPL138. This defines the system resource requirements such as pin mux, clock, iomem, interrupt etc and registers the platform device as per the Linux driver model. Signed-

Re: [PATCH v4 08/12] gpio: add ti-ssp gpio driver

2011-01-18 Thread Subhasish Ghosh
Hi Cyril, I am referring the SSP driver to implement the PRU MFD driver. I had a few concerns regarding this. First of all, does the SSP support multiple execution units, in a sense that its able to run multiple serial devices at once, like multiple channels. If so, then its definitely a MFD.

[PATCH 1/1] da830: macro rename DA8XX_LPSC0_DMAX to DA8XX_LPSC0_PRUSS.

2011-02-11 Thread Subhasish Ghosh
The PRUSS was named as DMAX on da830 platform. This patch resolves the naming conflict by replacing the macro DA8XX_LPSC0_DMAX with DA8XX_LPSC0_PRUSS. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da830.c|2 +- arch/arm/mach-davinci/include/mach/psc.h |2 +- 2

[PATCH 1/1] davinci: changed SRAM allocator to shared ram.

2011-02-11 Thread Subhasish Ghosh
This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da850.c |6 +++--- arch/arm/mach-davinci/include/mach/da8xx.h |1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a

[PATCH v2 00/13] pruss mfd drivers

2011-02-11 Thread Subhasish Ghosh
river. * added pruss Soft-UART board and platform changes. * fixed previous review comments. * reordered patch sequence. version 1: == * added pruss mfd driver. * added pruss mfd board and platform changes. * added pruss SocketCAN driver. * added pruss SocketCAN board and platform changes. *

[PATCH v2 01/13] mfd: pruss mfd driver.

2011-02-11 Thread Subhasish Ghosh
This patch adds the pruss MFD driver and associated include files. Signed-off-by: Subhasish Ghosh --- drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile|1 + drivers/mfd/da8xx_pru.c | 446 +++ include/linux

[PATCH v2 04/13] mfd: pruss CAN private data.

2011-02-11 Thread Subhasish Ghosh
This patch adds the PRUSS CAN data. Signed-off-by: Subhasish Ghosh --- include/linux/mfd/pruss/da8xx_pru.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/mfd/pruss/da8xx_pru.h b/include/linux/mfd/pruss/da8xx_pru.h index 68d8421..50f2ede 100644 --- a

[PATCH v2 02/13] da850: pruss platform specific additions.

2011-02-11 Thread Subhasish Ghosh
This patch adds the platform device and assignes the platform resources for the PRUSS mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da850.c |7 +++ arch/arm/mach-davinci/devices-da8xx.c | 65 arch/arm/mach-davinci

[PATCH v2 05/13] da850: pruss CAN platform specific additions.

2011-02-11 Thread Subhasish Ghosh
This patch adds the necessary pins for the pruss CAN. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da850.c|4 arch/arm/mach-davinci/include/mach/mux.h |4 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/da850.c b

[PATCH v2 07/13] da850: pruss CAN platform specific changes for gpios.

2011-02-11 Thread Subhasish Ghosh
This patch adds the GPIOs for the pruss CAN device. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da850.c|1 + arch/arm/mach-davinci/include/mach/mux.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm

[PATCH v2 08/13] da850: pruss CAN board specific changes for gpios.

2011-02-11 Thread Subhasish Ghosh
This patch adds the GPIO modifications required for the pruss CAN. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci

[PATCH v2 06/13] da850: pruss CAN board specific additions.

2011-02-11 Thread Subhasish Ghosh
This patch adds the pruss CAN pin mux and registers the device with the pruss mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 37 ++- 1 files changed, 36 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-davinci

[PATCH v2 10/13] mfd: pruss SUART private data.

2011-02-11 Thread Subhasish Ghosh
This patch adds the PRUSS SUART data. Signed-off-by: Subhasish Ghosh --- include/linux/mfd/pruss/da8xx_pru.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/linux/mfd/pruss/da8xx_pru.h b/include/linux/mfd/pruss/da8xx_pru.h index 50f2ede..4230d10 100644

[PATCH v2 12/13] da850: pruss SUART platform specific additions.

2011-02-11 Thread Subhasish Ghosh
This patch adds the McASP clock alias. The alias is used by the pruss suart driver for enabling the McASP PSC. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/devices-da8xx.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci

[PATCH v2 11/13] da850: pruss SUART board specific additions.

2011-02-11 Thread Subhasish Ghosh
This patch adds the pruss SUART pin mux and registers the device with the pruss mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci

[PATCH v2 03/13] da850: pruss board specific additions.

2011-02-11 Thread Subhasish Ghosh
This patch adds board specific initializations and setup routines. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm

Re: [PATCH v2 09/13] can: pruss CAN driver.

2011-02-13 Thread Subhasish Ghosh
ystem. -- From: "Kurt Van Dijck" Sent: Friday, February 11, 2011 8:36 PM To: "Subhasish Ghosh" Cc: ; ; ; ; ; "Wolfgang Grandegger" ; "open list:CAN NETWORK DRIVERS" ; "open list:CAN NETWORK DRIVERS" ; "open list" Subj

Re: [PATCH v2 09/13] can: pruss CAN driver.

2011-02-14 Thread Subhasish Ghosh
February 14, 2011 12:53 PM To: "Subhasish Ghosh" Cc: "Kurt Van Dijck" ; ; ; ; ; ; "open list:CAN NETWORK DRIVERS" ; "open list:CAN NETWORK DRIVERS" ; "open list" Subject: Re: [PATCH v2 09/13] can: pruss CAN driver. On 02/14/2011 05:54 AM, Subhas

Re: [PATCH v2 09/13] can: pruss CAN driver.

2011-02-14 Thread Subhasish Ghosh
-- From: "Marc Kleine-Budde" Sent: Monday, February 14, 2011 3:05 PM To: "Subhasish Ghosh" Cc: "Wolfgang Grandegger" ; "Kurt Van Dijck" ; ; ; ; ; ; "open list:CAN NETWORK DRIVERS" ; "open list:CAN NETWORK DRIVERS" ; "ope

Re: [PATCH v2 09/13] can: pruss CAN driver.

2011-02-17 Thread Subhasish Ghosh
-- From: "Kurt Van Dijck" Sent: Friday, February 11, 2011 8:50 PM To: "Subhasish Ghosh" Cc: ; ; ; ; ; "Wolfgang Grandegger" ; "open list:CAN NETWORK DRIVERS" ; "open list:CAN NETWORK DRIVERS"

Re: [PATCH v2 11/13] da850: pruss SUART board specific additions.

2011-02-17 Thread Subhasish Ghosh
-- From: "Michael Williamson" Sent: Friday, February 11, 2011 8:56 PM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; "open list" ; ; Subject: Re: [PATCH v2 11/13] da850: pr

Re: [PATCH v2 02/13] da850: pruss platform specific additions.

2011-02-17 Thread Subhasish Ghosh
-- From: "Sergei Shtylyov" Sent: Saturday, February 12, 2011 12:11 AM To: "Subhasish Ghosh" Cc: ; ; ; ; ; "Kevin Hilman (supporter:TI DAVINCI MACHIN...,commit_signer:16/18=89%)" ; "Russell King (maintaine

Re: [PATCH v2 03/13] da850: pruss board specific additions.

2011-02-17 Thread Subhasish Ghosh
-- From: "Sergei Shtylyov" Sent: Saturday, February 12, 2011 12:13 AM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; "open list" ; ; Subject: Re: [PATCH v2 03/13] da850:

Re: [PATCH v2 07/13] da850: pruss CAN platform specific changes for gpios.

2011-02-17 Thread Subhasish Ghosh
-- From: "Sergei Shtylyov" Sent: Saturday, February 12, 2011 12:17 AM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; "Thomas Koeller" ; ; "open list" ; "Vict

Re: [PATCH v2 06/13] da850: pruss CAN board specific additions.

2011-02-17 Thread Subhasish Ghosh
-- From: "Sergei Shtylyov" Sent: Saturday, February 12, 2011 12:15 AM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; ; "open list" ; ; Subject: Re: [PATCH v2 06/13] da85

Re: [PATCH v2 06/13] da850: pruss CAN board specific additions.

2011-02-17 Thread Subhasish Ghosh
-- From: "Sergei Shtylyov" Sent: Saturday, February 12, 2011 12:15 AM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; ; "open list" ; ; Subject: Re: [PATCH v2 06/13] da85

Re: [PATCH v2 09/13] can: pruss CAN driver.

2011-02-18 Thread Subhasish Ghosh
On 02/18/2011 08:07 AM, Subhasish Ghosh wrote: -- From: "Kurt Van Dijck" ... + /* register interrupt handler */ + err = request_irq(priv->trx_irq, &omapl_rx_can_intr, IRQF_SHARED, + "pru_can_irq", ndev); you'

Re: [PATCH v2 09/13] can: pruss CAN driver.

2011-02-18 Thread Subhasish Ghosh
Ok, will do NAPI On 02/18/2011 09:15 AM, Subhasish Ghosh wrote: On 02/18/2011 08:07 AM, Subhasish Ghosh wrote: -- From: "Kurt Van Dijck" ... + /* register interrupt handler */ + err = request_irq(priv->trx_irq, &

Re: [PATCH v2 13/13] tty: pruss SUART driver

2011-02-18 Thread Subhasish Ghosh
2011 9:58 PM To: "Subhasish Ghosh" Cc: ; ; ; ; ; "Greg Kroah-Hartman" ; "open list" Subject: Re: [PATCH v2 13/13] tty: pruss SUART driver Don't see why it needs its own sub-directory +#ifdef __SUART_DEBUG +#define __suart_debug(fmt, args...) \ + p

Re: [PATCH v2 01/13] mfd: pruss mfd driver.

2011-02-21 Thread Subhasish Ghosh
Thank you for your comments. -- From: "Samuel Ortiz" Sent: Monday, February 21, 2011 10:00 PM To: "Subhasish Ghosh" Cc: ; ; ; ; ; "open list" Subject: Re: [PATCH v2 01/13] mfd: pruss mfd driver. Hi Subhasish,

Re: [PATCH v2 11/13] da850: pruss SUART board specific additions.

2011-02-21 Thread Subhasish Ghosh
gt;start, + resource_size(res), ------ From: "Sergei Shtylyov" Sent: Saturday, February 12, 2011 12:20 AM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; ; "open li

Re: [PATCH v2 13/13] tty: pruss SUART driver

2011-02-22 Thread Subhasish Ghosh
t;Alan Cox" ; ; ; "Subhasish Ghosh" ; "Greg Kroah-Hartman" ; ; "open list" ; Subject: Re: [PATCH v2 13/13] tty: pruss SUART driver On Friday 18 February 2011 19:23:49 Thomas Gleixner wrote: On Fri, 18 Feb 2011, Alan Cox wrote: > On Fri, 18 Feb 2011 19:17

Re: [PATCH v2 13/13] tty: pruss SUART driver

2011-02-22 Thread Subhasish Ghosh
t->line); + } } -- From: "Arnd Bergmann" Sent: Saturday, February 19, 2011 12:21 AM To: Cc: "Thomas Gleixner" ; "Alan Cox" ; ; ; "Subhasish Ghosh" ; "Greg Kroah-Hartman" ; ; "open li

Re: [PATCH v2 12/13] da850: pruss SUART platform specific additions.

2011-02-22 Thread Subhasish Ghosh
Shtylyov" Sent: Saturday, February 12, 2011 12:25 AM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; ; "open list" ; ; Subject: Re: [PATCH v2 12/13] da850: pruss SUART platform specific additions. Subhasish Ghosh wrote: This

Re: [PATCH v2 01/13] mfd: pruss mfd driver.

2011-02-22 Thread Subhasish Ghosh
. We cannot have a register file larger than this, but lot of space is left out, possibly for future development. -- From: "Samuel Ortiz" Sent: Tuesday, February 22, 2011 5:03 PM To: "Wolfgang Grandegger" Cc: "Subhasi

Re: [PATCH v2 12/13] da850: pruss SUART platform specific additions.

2011-02-22 Thread Subhasish Ghosh
Ok, will do. -- From: "Sergei Shtylyov" Sent: Tuesday, February 22, 2011 4:50 PM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; "Kevin Hilman" ; ; "open list" ; ; Subject: Re: [PATCH v2 12/1

Re: [PATCH v2 13/13] tty: pruss SUART driver

2011-02-22 Thread Subhasish Ghosh
f the headers into a single file ? and keep the other three .c files under "drivers/tty/serial/" and remove the da8xx_pruss directory altogether. -- From: "Greg KH" Sent: Tuesday, February 22, 2011 8:07 PM To: "Subhas

Re: [PATCH v2 01/13] mfd: pruss mfd driver.

2011-02-23 Thread Subhasish Ghosh
-- From: "Samuel Ortiz" Sent: Tuesday, February 22, 2011 4:01 PM To: "Subhasish Ghosh" Cc: ; ; ; ; ; "open list" Subject: Re: [PATCH v2 01/13] mfd: pruss mfd driver. Hi Subhasish, On Tue, Feb 22, 2011 at 11:

Re: [PATCH v2 13/13] tty: pruss SUART driver

2011-02-23 Thread Subhasish Ghosh
Hello, Anything regarding this. -- From: "Subhasish Ghosh" Sent: Wednesday, February 23, 2011 11:00 AM To: "Greg KH" ; "Alan Cox" Cc: "Arnd Bergmann" ; ; "Thomas Gleixner" ; ; ; ; "open

Re: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.

2011-02-24 Thread Subhasish Ghosh
-- From: "Nori, Sekhar" Sent: Wednesday, February 23, 2011 9:00 PM To: "Subhasish Ghosh" ; Cc: ; "Watkins, Melissa" ; ; "Kevin Hilman" ; "Russell King" ; "Michael Williamson" ; "

Re: [PATCH 1/1] da830: macro rename DA8XX_LPSC0_DMAX to DA8XX_LPSC0_PRUSS.

2011-02-24 Thread Subhasish Ghosh
Hi Subhasish, Please add a "davinci: " prefix to the subject line of mach-davinci patches. The patch is not really specific to DA830. SG -- OK, Will do On Fri, Feb 11, 2011 at 19:48:25, Subhasish Ghosh wrote: The PRUSS was named as DMAX on da830 platform. This patch resolves

Re: [PATCH v2 13/13] tty: pruss SUART driver

2011-02-24 Thread Subhasish Ghosh
Hello, Ok, have implemented the test_and_clear_bit. On Tuesday 22 February 2011, Subhasish Ghosh wrote: @@ -122,13 +122,10 @@ static void omapl_pru_tx_chars(struct omapl_pru_suart *soft_uart, u32 uart_no) if (!(suart_get_duplex(soft_uart, uart_no) & ePRU_SUART_HAL

Re: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.

2011-02-26 Thread Subhasish Ghosh
nt: Thursday, February 24, 2011 4:57 PM To: "Subhasish Ghosh" ; Cc: ; "Watkins, Melissa" ; ; "Kevin Hilman" ; "Russell King" ; "Michael Williamson" ; "Chemparathy, Cyril" ; "Sergei Shtylyov" ; "open list" Subject

Re: [PATCH v2 02/13] da850: pruss platform specific additions.

2011-02-28 Thread Subhasish Ghosh
. All that we need to do is add an entry into the da8xx_pruss_devices structure and the MFD driver will do the rest to get the UIO probe called. -- From: "TK, Pratheesh Gangadhar" Sent: Monday, February 28, 2011 6:34 PM To: "

Re: [PATCH v2 13/13] tty: pruss SUART driver

2011-03-01 Thread Subhasish Ghosh
Hello, I tried using the tty_prepare_flip_string as shown below, but this is causing some latency issues. Problem is, we do not have any flow control, so we must copy the FIFO data before the next data is available. As we are using the tty_prepare_flip_string just before the read API, the FI

[PATCH v1 1/1] davinci: macro rename DA8XX_LPSC0_DMAX to DA8XX_LPSC0_PRUSS.

2011-03-07 Thread Subhasish Ghosh
DMAX is an internal name for the module which is known as PRUSS in TI public documentation. This patch just gets the code in sync with TI documentation. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da830.c|2 +- arch/arm/mach-davinci/include/mach/psc.h |2 +- 2

[PATCH v3 0/7] pruss mfd drivers

2011-03-08 Thread Subhasish Ghosh
ion clk_add_alias_mcasp. * suart api layer cleanup. * removed semaphore usage. * updated to latest internal code base. * removed __suart_err/dbg. version 2: == * added pruss TTY Soft-UART driver. * added pruss Soft-UART board and platform changes. * fixed previous review comments. * reo

[PATCH v3 1/7] mfd: add pruss mfd driver.

2011-03-08 Thread Subhasish Ghosh
mplement a single device on both the PRU's resulting in improved load sharing. Signed-off-by: Subhasish Ghosh --- drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile|1 + drivers/mfd/da8xx_pru.c | 560 +++

[PATCH v3 2/7] da850: pruss platform specific additions.

2011-03-08 Thread Subhasish Ghosh
This patch adds the platform device and assignes the platform resources for the PRUSS mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da850.c |7 +++ arch/arm/mach-davinci/devices-da8xx.c | 65 arch/arm/mach-davinci

[PATCH v3 5/7] da850: pruss SUART board specific additions.

2011-03-08 Thread Subhasish Ghosh
This patch adds the pruss SUART pin mux and registers the device with the pruss mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 45 ++- 1 files changed, 44 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-davinci

[PATCH v3 4/7] mfd: pruss SUART private data.

2011-03-08 Thread Subhasish Ghosh
This patch adds the PRUSS SUART data. Signed-off-by: Subhasish Ghosh --- include/linux/mfd/da8xx/da8xx_pru.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/mfd/da8xx/da8xx_pru.h b/include/linux/mfd/da8xx/da8xx_pru.h index ba65ec0..2b9d426 100644 --- a

[PATCH v3 6/7] da850: pruss SUART platform specific additions.

2011-03-08 Thread Subhasish Ghosh
This patch adds the McASP clock alias. The alias is used by the pruss suart driver for enabling the McASP PSC. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/devices-da8xx.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach

[PATCH v3 3/7] da850: pruss board specific additions.

2011-03-08 Thread Subhasish Ghosh
This patch adds board specific initializations and setup routines. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm

Re: [PATCH v3 3/7] da850: pruss board specific additions.

2011-03-08 Thread Subhasish Ghosh
Hello, If I don't initialize it to NULL, its getting initialized to some garbage string. -- From: "Sergei Shtylyov" Sent: Tuesday, March 08, 2011 8:49 PM To: "Subhasish Ghosh" Cc: ; ; "Russell King" ; &quo

Re: [PATCH v3 7/7] tty: add pruss SUART driver

2011-03-15 Thread Subhasish Ghosh
Hello, Thank you for your comments. Would really appreciate more comments and ways to fix this patch and bring it up to Linux Standards. If I have missed something/misunderstood then please let me know. +config SERIAL_PRUSS_SUART + depends on ARCH_DAVINCI && ARCH_DAVINCI_DA850 + select SERIA

Re: [PATCH v2 09/13] can: pruss CAN driver.

2011-03-22 Thread Subhasish Ghosh
Hello, This is a detailed walk through the can driver. The pruss_can.c file mostly looks good, there are very tiny changes that I'm suggesting to improve the code. I assume that you wrote that file. The pruss_can_api.c is a bit of a mess and looks like it was copied from some other code base an

Re: [PATCH v3 1/7] mfd: add pruss mfd driver.

2011-03-24 Thread Subhasish Ghosh
Hello, A device may be de-initialized and another loaded or two different devices can be run simultaneously on the two cores. It's also possible, as in our case, to implement a single device on both the PRU's resulting in improved load sharing. Make you driver compile with sparse "make C=1",

Re: [PATCH v3 1/7] mfd: add pruss mfd driver.

2011-03-30 Thread Subhasish Ghosh
+s32 pruss_disable(struct device *dev, u8 pruss_num) +{ + struct da8xx_pruss *pruss = dev_get_drvdata(dev->parent); + struct da8xx_prusscore_regs *h_pruss; + struct pruss_map *pruss_mmap = (struct pruss_map *)pruss->ioaddr; + u32 temp_reg; + u32 delay_cnt; Can you explain the significance of p

Re: [PATCH v3 1/7] mfd: add pruss mfd driver.

2011-03-30 Thread Subhasish Ghosh
Hi Arnd, I am using a .setup to initialize pin mux etc. To use the mfd_cells directly should I use .enable and .disable of the mfd_cells instead of the .setup. +static int pruss_mfd_add_devices(struct platform_device *pdev) +{ + struct da8xx_pruss_devices *dev_data = pdev->dev.platform_data;

Re: [PATCH v3 1/7] mfd: add pruss mfd driver.

2011-04-04 Thread Subhasish Ghosh
On Wednesday 30 March 2011, Subhasish Ghosh wrote: >> +s32 pruss_disable(struct device *dev, u8 pruss_num) >> +{ >> + struct da8xx_pruss *pruss = dev_get_drvdata(dev->parent); >> + struct da8xx_prusscore_regs *h_pruss; >> + struct pruss_map *pruss_mmap =

[PATCH v4 00/11] pruss mfd drivers.

2011-04-22 Thread Subhasish Ghosh
aphore usage. * updated to latest internal code base. * removed __suart_err/dbg. version 2: == * added pruss TTY Soft-UART driver. * added pruss Soft-UART board and platform changes. * fixed previous review comments. * reordered patch sequence. version 1: == * added pruss mfd driver.

[PATCH v4 01/11] mfd: add pruss mfd driver.

2011-04-22 Thread Subhasish Ghosh
mplement a single device on both the PRU's resulting in improved load sharing. Signed-off-by: Subhasish Ghosh --- drivers/mfd/Kconfig| 10 + drivers/mfd/Makefile |1 + drivers/mfd/pruss.c| 513 include/li

[PATCH v4 02/11] da850: add pruss clock.

2011-04-22 Thread Subhasish Ghosh
This patch adds the PRUSS clock. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da850.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 2d50885..a7cf2d0 100644 --- a/arch/arm/mach

[PATCH v4 04/11] da850: pruss board specific additions.

2011-04-22 Thread Subhasish Ghosh
This patch adds board specific initializations and setup routines. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci

[PATCH v4 03/11] da850: pruss platform specific additions.

2011-04-22 Thread Subhasish Ghosh
This patch adds the platform device and assignes the platform resources for the PRUSS mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/devices-da8xx.c | 63 arch/arm/mach-davinci/include/mach/da8xx.h |4 ++ 2 files changed, 67

[PATCH v4 06/11] da850: pruss SUART board specific additions.

2011-04-22 Thread Subhasish Ghosh
This patch adds the pruss SUART pin mux and registers the device with the pruss mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 46 ++- 1 files changed, 45 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-davinci

[PATCH v4 05/11] mfd: pruss SUART private data.

2011-04-22 Thread Subhasish Ghosh
This patch adds the PRUSS SUART data. Signed-off-by: Subhasish Ghosh --- include/linux/mfd/pruss.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/linux/mfd/pruss.h b/include/linux/mfd/pruss.h index 8ef25b3..c5e2af2 100644 --- a/include/linux/mfd/pruss.h

[PATCH v4 09/11] mfd: pruss CAN private data.

2011-04-22 Thread Subhasish Ghosh
This patch adds the PRUSS CAN data. Signed-off-by: Subhasish Ghosh --- include/linux/mfd/pruss.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/linux/mfd/pruss.h b/include/linux/mfd/pruss.h index c5e2af2..3b46156 100644 --- a/include/linux/mfd/pruss.h +++ b

[PATCH v4 11/11] da850: pruss CAN board specific additions.

2011-04-22 Thread Subhasish Ghosh
This patch adds the pruss CAN pinmux and registers the device with the pruss mfd driver. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/board-da850-evm.c | 46 +++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/board

[PATCH v4 1/1] can: add pruss CAN driver.

2011-04-22 Thread Subhasish Ghosh
This patch adds support for the CAN device emulated on PRUSS. Signed-off-by: Subhasish Ghosh --- drivers/net/can/Kconfig |7 + drivers/net/can/Makefile|1 + drivers/net/can/pruss_can.c | 1074 +++ 3 files changed, 1082 insertions(+), 0

[PATCH v4 07/11] da850: pruss SUART platform specific additions.

2011-04-22 Thread Subhasish Ghosh
This patch adds the McASP clock alias. The alias is used by the pruss suart driver for enabling the McASP PSC. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/devices-da8xx.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach

[PATCH v4 10/11] da850: pruss CAN platform specific additions.

2011-04-22 Thread Subhasish Ghosh
This patch adds the necessary pins for the pruss CAN. Signed-off-by: Subhasish Ghosh --- arch/arm/mach-davinci/da850.c|5 + arch/arm/mach-davinci/include/mach/mux.h |5 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/da850.c b

[PATCH v4 0/1] pruss CAN driver.

2011-04-22 Thread Subhasish Ghosh
* removed unused function * improved coding style * removed unwanted files * merged required files into the driver * code cleanup as per review comments NOTE: The versioning is being maintained in sequence with the complete set of patches submitted for the PRUSS. Subhasish Ghosh (1): can: add

Re: [PATCH v4 08/11] tty: add pruss SUART driver

2011-04-26 Thread Subhasish Ghosh
esday, April 26, 2011 6:15 PM To: "Nori, Sekhar" Cc: "Greg KH" ; "Subhasish Ghosh" ; ; ; "Watkins, Melissa" ; ; "Andrew Morton" ; "Randy Dunlap" ; "open list" Subject: Re: [PATCH v4 08/11] tty: add pruss SUART driver O

Re: [PATCH v4 01/11] mfd: add pruss mfd driver.

2011-04-26 Thread Subhasish Ghosh
Hi Mark, - Is it ok to have u32 etc for __iomem cookie ? + +s32 pruss_disable(struct device *dev, u8 pruss_num) make it a int function SG -- Ok will do + + /* Reset PRU */ + iowrite32(PRUCORE_CONTROL_RESETVAL, + &h_pruss->control); + spin_unl

Re: [PATCH v4 03/11] da850: pruss platform specific additions.

2011-04-26 Thread Subhasish Ghosh
#include @@ -73,6 +75,7 @@ extern unsigned int da850_max_speed; #define DA8XX_DDR2_CTL_BASE 0xb000 #define DA8XX_ARM_RAM_BASE 0x #define DA8XX_SHARED_RAM_BASE 0x8000 +#define DA8XX_PRUSS_MEM_BASE 0x01C3 Keep the list sorted please. Also, this macro doesn't seem u

Re: [PATCH v4 11/11] da850: pruss CAN board specific additions.

2011-04-27 Thread Subhasish Ghosh
+static int __init da850_evm_pruss_can_setup(void) +{ + int ret, val = 0; + void __iomem *cfg_chip3_reg; + + ret = davinci_cfg_reg_list(da850_evm_pruss_can_pins); + if (ret) + pr_warning("%s: da850_evm_pruss_can_pins mux setup " + "failed:%d\n", __func__, ret); Yet you continue to initializ

Re: [PATCH v4 03/11] da850: pruss platform specific additions.

2011-04-27 Thread Subhasish Ghosh
#include @@ -73,6 +75,7 @@ extern unsigned int da850_max_speed; #define DA8XX_DDR2_CTL_BASE 0xb000 #define DA8XX_ARM_RAM_BASE 0x #define DA8XX_SHARED_RAM_BASE 0x8000 +#define DA8XX_PRUSS_MEM_BASE 0x01C3 Keep the list sorted please. Also, this macro doesn't seem used outside

Re: [PATCH v4 1/1] can: add pruss CAN driver.

2011-04-27 Thread Subhasish Ghosh
- Use just *one* value per sysfs file SG - I felt adding entry for each mbx_id will clutter the sysfs. Is it ok to do that. +static u32 pruss_intc_init[19][3] = { + {PRUSS_INTC_POLARITY0, PRU_INTC_REGMAP_MASK, 0x}, + {PRUSS_INTC_POLARITY1, PRU_INTC_REGMAP_MASK, 0x}, +

Re: [PATCH v4 08/11] tty: add pruss SUART driver

2011-04-27 Thread Subhasish Ghosh
>> >>The driver should probably just get sram >> space through platform data so that it doesn't depend on the >> platform specific sram allocation function. Are you suggesting that I go back to that implementation. No, the platform code should use the SRAM allocator and pass on the allocated m

Re: [PATCH v4 01/11] mfd: add pruss mfd driver.

2011-04-27 Thread Subhasish Ghosh
d, Apr 27, 2011 at 09:29:59AM +0200, Marc Kleine-Budde wrote: On 04/27/2011 08:39 AM, Subhasish Ghosh wrote: > - Is it ok to have u32 etc for __iomem cookie ? no - "void __iomem *" is "void __iomem *" Actually, it is _provided_ you don't directly dereference it. You ca

  1   2   >