Re: halt/reset on assert?

2011-04-01 Thread Andreas Schwab
Evan Lavelle writes: > I'd like to use an assert macro in a device driver for an MPC870 using > ppcboot; something like: > > #define MY_ASSERT(expr) \ >do { \ > if(!(expr)) {

Re: halt/reset on assert?

2011-04-01 Thread Andreas Schwab
Evan Lavelle writes: > I'd like to use an assert macro in a device driver for an MPC870 using > ppcboot; something like: > > #define MY_ASSERT(expr) \ >do { \ > if(!(expr)) {

halt/reset on assert?

2011-04-01 Thread Evan Lavelle
I'd like to use an assert macro in a device driver for an MPC870 using ppcboot; something like: #define MY_ASSERT(expr) \ do { \ if(!(expr)) { \

Re: [PATCH v11 09/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-04-01 Thread Sergei Shtylyov
Hello. On 02-04-2011 1:23, Tirumala Marri wrote: +++ b/drivers/Makefile @@ -65,6 +65,7 @@ obj-$(CONFIG_PARIDE) += block/paride/ obj-$(CONFIG_TC) += tc/ obj-$(CONFIG_UWB) += uwb/ obj-$(CONFIG_USB_OTG_UTILS) += usb/otg/ +obj-$(CONFIG_USB_DWC_OTG) +=

Re: problem PCIe LSI detected at 32 device addresses (ppc460ex)

2011-04-01 Thread Ayman El-Khashab
On Fri, Apr 01, 2011 at 11:26:19AM -0500, Ayman El-Khashab wrote: > I've got an LSI SAS2008 controller (w/ firmware v9) that works > fine in a Linux PC w/ a recent kernel. It does NOT work on my > 460EX board. What I find is that the device shows up as every > device on the subordinate bus where

[PATCH v12 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support

2011-04-01 Thread tmarri
From: Tirumala Marri Enable gadget support Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/gadget/Kconfig| 11 +++ drivers/usb/gadget/gadget_chips.h |9 + 2 files changed, 20 insertions(+), 0 deletions(-)

[PATCH v12 09/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-04-01 Thread tmarri
From: Tirumala Marri Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode. Signed-off-by: Tirumala R Marri Signed-off-by

[PATCH v12 07/10] USB/ppc4xx: Add Synopsys DWC OTG PCD function

2011-04-01 Thread tmarri
From: Tirumala Marri The PCD is responsible for translating requests from the gadget driver to appropriate actions on the DWC OTG controller. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/dwc/pcd.c | 1766 +

[PATCH v12 06/10] USB/ppc4xx: Add Synopsys DWC OTG HCD queue function

2011-04-01 Thread tmarri
From: Tirumala Marri Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/dwc/hcd_queue.c | 696 +++

[PATCH v12 05/10] USB/ppc4xx: Add Synopsys DWC OTG HCD interrupt function

2011-04-01 Thread tmarri
From: Tirumala Marri Implements DWC OTG USB HCD interrupt service routine. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/dwc/hcd_intr.c | 1477 1 files changed, 1477 insertions(+), 0 deleti

[PATCH v12 02/10] USB/ppc4xx: Add Synopsys DWC OTG driver framework

2011-04-01 Thread tmarri
From: Tirumala Marri Platform probing is in dwc_otg_apmppc.c. Driver parameter and parameter checking are in dwc_otg_param.c. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/dwc/apmppc.c | 414 ++

[PATCH v12 01/10] USB/ppc4xx: Add Synopsys DWC OTG Register definitions

2011-04-01 Thread tmarri
From: Tirumala Marri Add Synopsys Design Ware core register definitions. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/dwc/regs.h | 1326 1 files changed, 1326 insertions(+), 0 deletion

[PATCH v12 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2011-04-01 Thread tmarri
From: Tirumala Marri v12: 1. dwc directory moved from otg to usb directory. v11: 1. Kconfig corrections. 2. Changed the order of patch generation to follow dependencies. Tirumala Marri (10): USB/ppc4xx: Add Synopsys DWC OTG Register definitions USB/ppc4xx: Add Synopsys DWC OTG driver fra

RE: [PATCH v11 09/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-04-01 Thread Tirumala Marri
> +++ b/drivers/Makefile > @@ -65,6 +65,7 @@ obj-$(CONFIG_PARIDE)+= block/paride/ > obj-$(CONFIG_TC) += tc/ > obj-$(CONFIG_UWB)+= uwb/ > obj-$(CONFIG_USB_OTG_UTILS) += usb/otg/ > +obj-$(CONFIG_USB_DWC_OTG)+= usb/otg/dwc/ Haven't we recently agree

Re: [PATCH v11 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer (CIL)

2011-04-01 Thread Wolfgang Denk
Dear tma...@apm.com, In message <1301684711-17386-1-git-send-email-tma...@apm.com> you wrote: > From: Tirumala Marri > > Core Interface Layer Common provides common functions for both host > controller and peripheral controller. CIL manages the memory map > for the core. It also handles basic t

Re: [PATCH v11 09/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-04-01 Thread Sergei Shtylyov
tma...@apm.com wrote: From: Tirumala Marri Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode. Signed-off-by: Ti

[PATCH v11 10/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support

2011-04-01 Thread tmarri
From: Tirumala Marri Enable gadget support Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/gadget/Kconfig| 11 +++ drivers/usb/gadget/gadget_chips.h |9 + 2 files changed, 20 insertions(+), 0 deletions(-)

[PATCH v11 09/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-04-01 Thread tmarri
From: Tirumala Marri Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode. Signed-off-by: Tirumala R Marri Signed-off-by

[PATCH v11 06/10] USB/ppc4xx: Add Synopsys DWC OTG HCD queue function

2011-04-01 Thread tmarri
From: Tirumala Marri Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/otg/dwc/hcd_queue.c | 696 +++

[PATCH v11 07/10] USB/ppc4xx: Add Synopsys DWC OTG PCD function

2011-04-01 Thread tmarri
From: Tirumala Marri The PCD is responsible for translating requests from the gadget driver to appropriate actions on the DWC OTG controller. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/otg/dwc/pcd.c | 1766 +

[PATCH v11 05/10] USB/ppc4xx: Add Synopsys DWC OTG HCD interrupt function

2011-04-01 Thread tmarri
From: Tirumala Marri Implements DWC OTG USB HCD interrupt service routine. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/otg/dwc/hcd_intr.c | 1477 1 files changed, 1477 insertions(+), 0 deleti

[PATCH v11 02/10] USB/ppc4xx: Add Synopsys DWC OTG driver framework

2011-04-01 Thread tmarri
From: Tirumala Marri Platform probing is in dwc_otg_apmppc.c. Driver parameter and parameter checking are in dwc_otg_param.c. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/otg/dwc/apmppc.c | 414 ++

[PATCH v11 01/10] USB/ppc4xx: Add Synopsys DWC OTG Register definitions

2011-04-01 Thread tmarri
From: Tirumala Marri Add Synopsys Design Ware core register definitions. Signed-off-by: Tirumala R Marri Signed-off-by: Fushen Chen Signed-off-by: Mark Miesfeld --- drivers/usb/otg/dwc/regs.h | 1326 1 files changed, 1326 insertions(+), 0 deletion

[PATCH v11 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2011-04-01 Thread tmarri
From: Tirumala Marri v11: 1. Kconfig corrections. 2. Changed the order of patch generation to follow dependencies. v10: 1. Change address argument type from u32 to ulong to make it arch independent. 2. Cleaning unnecessary changes from Kconfig. Tirumala Marri (10): USB/ppc4xx: Add Syno

Re: [PATCH v10 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer (CIL)

2011-04-01 Thread Sergei Shtylyov
Hello. Tirumala Marri wrote: +void dwc_otg_core_init(struct core_if *core_if) +{ + u32 i; + ulong global_reg = core_if->core_global_regs; + struct device_if *dev_if = core_if->dev_if; + u32 ahbcfg = 0; + u32 i2cctl = 0; + u32 gusbcfg; Tabify the declaratio

RE: [PATCH v10 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer (CIL)

2011-04-01 Thread Tirumala Marri
> +void dwc_otg_core_init(struct core_if *core_if) > +{ > + u32 i; > + ulong global_reg = core_if->core_global_regs; > + struct device_if *dev_if = core_if->dev_if; > + u32 ahbcfg = 0; > + u32 i2cctl = 0; > + u32 gusbcfg; Tabify the declarations ; [Marri] When I checked aga

RE: [PATCH v10 02/10] USB/ppc4xx: Add Synopsys DWC OTG driver framework

2011-04-01 Thread Tirumala Marri
-Original Message- From: Keshava Munegowda [mailto:keshava_mgo...@ti.com] Sent: Tuesday, March 29, 2011 3:46 AM To: tma...@apm.com; linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Cc: g...@kroah.com; Fushen Chen; Mark Miesfeld Subject: RE: [PATCH v10 02/10] USB/ppc4xx: Add Synopsys

[PATCH v2] edac/mpc85xx: Limit setting/clearing of HID1[RFXE] to e500v1/v2 cores

2011-04-01 Thread Kumar Gala
Only the e500v1/v2 cores have HID1[RXFE] so we should attempt to set or clear this register bit on them. Otherwise we get crashes like: NIP: c0579f84 LR: c006d550 CTR: c0579f84 REGS: ef857ec0 TRAP: 0700 Not tainted (2.6.38.2-00072-gf15ba3c) MSR: 00021002 CR: 22044022 XER: TASK = ef

Re: [PATCH] edac/mpc85xx: Limit setting/clearing of HID1[RFXE] to e500v1/v2 cores

2011-04-01 Thread Kumar Gala
On Mar 31, 2011, at 5:42 PM, Nishanth Aravamudan wrote: > On 31.03.2011 [17:23:14 -0500], Kumar Gala wrote: >> Only the e500v1/v2 cores have HID1[RXFE] so we should attempt to set or >> clear this register bit on them. Otherwise we get crashes like: > > > >> diff --git a/drivers/edac/mpc85xx_

configuration from flash PROM

2011-04-01 Thread SACHIN SOLANKI
Respected sir, i am a M.tech. student form national institute of technology bhopal, india.I try to configure FPGA from flash prom memory virtex II pro.i think to put diffrent .bit file to flash PROM and by some how method configure FPGA by selecting specific .bit file.i don'