[PATCH] ppc32: Fix MPC83xx IPIC external interrupt pending register offset
The pending registers for IRQ1-IRQ7 were pointing to the interrupt pending register instead of the external one. Signed-off-by: Tony Li Signed-off-by: Kumar Gala --- commit 7ada9b1e61d5af4c75f32bfc1f7aabca435024ed tree 44de45c386a0f22584344494bfe1eb453dffa16c parent e3f1d172ca1cfd1ac2dd907c31fb2521bfe21689 author Kumar K. Gala Thu, 23 Jun 2005 22:49:39 -0500 committer Kumar K. Gala Thu, 23 Jun 2005 22:49:39 -0500 arch/ppc/syslib/ipic.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/ppc/syslib/ipic.c b/arch/ppc/syslib/ipic.c --- a/arch/ppc/syslib/ipic.c +++ b/arch/ppc/syslib/ipic.c @@ -79,7 +79,7 @@ static struct ipic_info ipic_info[] = { .prio_mask = 7, }, [17] = { - .pend = IPIC_SIPNR_H, + .pend = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_A, .force = IPIC_SEFCR, @@ -87,7 +87,7 @@ static struct ipic_info ipic_info[] = { .prio_mask = 5, }, [18] = { - .pend = IPIC_SIPNR_H, + .pend = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_A, .force = IPIC_SEFCR, @@ -95,7 +95,7 @@ static struct ipic_info ipic_info[] = { .prio_mask = 6, }, [19] = { - .pend = IPIC_SIPNR_H, + .pend = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_A, .force = IPIC_SEFCR, @@ -103,7 +103,7 @@ static struct ipic_info ipic_info[] = { .prio_mask = 7, }, [20] = { - .pend = IPIC_SIPNR_H, + .pend = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_B, .force = IPIC_SEFCR, @@ -111,7 +111,7 @@ static struct ipic_info ipic_info[] = { .prio_mask = 4, }, [21] = { - .pend = IPIC_SIPNR_H, + .pend = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_B, .force = IPIC_SEFCR, @@ -119,7 +119,7 @@ static struct ipic_info ipic_info[] = { .prio_mask = 5, }, [22] = { - .pend = IPIC_SIPNR_H, + .pend = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_B, .force = IPIC_SEFCR, @@ -127,7 +127,7 @@ static struct ipic_info ipic_info[] = { .prio_mask = 6, }, [23] = { - .pend = IPIC_SIPNR_H, + .pend = IPIC_SEPNR, .mask = IPIC_SEMSR, .prio = IPIC_SMPRR_B, .force = IPIC_SEFCR,
[PATCH] ppc32: add Freescale MPC885ADS board support
Andrew, This the second version of the patch (the first post is http://lkml.org/lkml/2005/6/10/119). The new version is based on current linux-2.6.git, and assumes the "add Freescale MPC86xADS boards support" patch I've sent few minutes ago is applied first. Otherwise the patch is the same as the first version. Please, consider applying. Thanks, Andrei -- next part -- An embedded and charset-unspecified text was scrubbed... Name: mpc885ads.20050623.diff Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050623/08fd759b/attachment.txt
[PATCH] ppc32: add Freescale MPC86xADS boards support
Andrew, This the second version of the patch (the first post is http://ozlabs.org/pipermail/linuxppc-embedded/2005-June/018781.html). The new version is based on current linux-2.6.git, and this is the only difference from the previous patch. Please, consider applying. Thanks, Andrei -- next part -- An embedded and charset-unspecified text was scrubbed... Name: mpc86xads.20050623.diff Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050623/204e463e/attachment.txt
[PATCH] ppc32: add Freescale MPC885ADS board support
On Thu, Jun 23, 2005 at 05:03:01PM -0300, Marcelo Tosatti wrote: > On Thu, Jun 23, 2005 at 12:48:56PM -0700, Eugene Surovegin wrote: > > On Thu, Jun 23, 2005 at 11:05:22AM -0300, Marcelo Tosatti wrote: > > > > > > Hi Andrei, > > > > > > On Thu, Jun 23, 2005 at 07:38:54PM +0400, Andrei Konovalov wrote: > > > > > > > > > > diff --git a/arch/ppc/syslib/m8xx_setup.c b/arch/ppc/syslib/m8xx_setup.c > > > > --- a/arch/ppc/syslib/m8xx_setup.c > > > > +++ b/arch/ppc/syslib/m8xx_setup.c > > > > @@ -369,7 +369,7 @@ m8xx_map_io(void) > > > > #if defined(CONFIG_HTDMSOUND) || defined(CONFIG_RPXTOUCH) || > > > > defined(CONFIG_FB_RPX) > > > > io_block_mapping(HIOX_CSR_ADDR, HIOX_CSR_ADDR, HIOX_CSR_SIZE, > > > > _PAGE_IO); > > > > #endif > > > > -#ifdef CONFIG_FADS > > > > +#if defined(CONFIG_FADS) || defined(CONFIG_MPC885ADS) > > > > io_block_mapping(BCSR_ADDR, BCSR_ADDR, BCSR_SIZE, _PAGE_IO); > > > > #endif > > > > #ifdef CONFIG_PCI > > > > > > I suppose you also want to include CONFIG_MPC885ADS in the > > > io_block_mapping(IO_BASE) > > > here? > > > > I think it'd be great if we _stop_ adding new io_block_mapping users, > > there is ioremap() for stuff like this, let's use it instead. > > (go back after reading previous discussion) > > For that you need ioremap() to handle BATs and CAMs right? Why? BATs or CAMs are just an optimization. You can use ordinary 4K ptes. We don't have BATs on 44x and don't use io_block_mapping also. It's not that difficult - just start using ioremap() instead of io_block_mapping() and fix code which assumes phys_addr == virt_addr. -- Eugene
[PATCH] ppc32: add Freescale MPC885ADS board support
On Thu, Jun 23, 2005 at 12:48:56PM -0700, Eugene Surovegin wrote: > On Thu, Jun 23, 2005 at 11:05:22AM -0300, Marcelo Tosatti wrote: > > > > Hi Andrei, > > > > On Thu, Jun 23, 2005 at 07:38:54PM +0400, Andrei Konovalov wrote: > > > > > > > diff --git a/arch/ppc/syslib/m8xx_setup.c b/arch/ppc/syslib/m8xx_setup.c > > > --- a/arch/ppc/syslib/m8xx_setup.c > > > +++ b/arch/ppc/syslib/m8xx_setup.c > > > @@ -369,7 +369,7 @@ m8xx_map_io(void) > > > #if defined(CONFIG_HTDMSOUND) || defined(CONFIG_RPXTOUCH) || > > > defined(CONFIG_FB_RPX) > > > io_block_mapping(HIOX_CSR_ADDR, HIOX_CSR_ADDR, HIOX_CSR_SIZE, _PAGE_IO); > > > #endif > > > -#ifdef CONFIG_FADS > > > +#if defined(CONFIG_FADS) || defined(CONFIG_MPC885ADS) > > > io_block_mapping(BCSR_ADDR, BCSR_ADDR, BCSR_SIZE, _PAGE_IO); > > > #endif > > > #ifdef CONFIG_PCI > > > > I suppose you also want to include CONFIG_MPC885ADS in the > > io_block_mapping(IO_BASE) > > here? > > I think it'd be great if we _stop_ adding new io_block_mapping users, > there is ioremap() for stuff like this, let's use it instead. (go back after reading previous discussion) For that you need ioremap() to handle BATs and CAMs right? What would be the difficulties with doing that? For 8xx (which lacks BAT's and CAM's) we could try immediately I suppose. Seems to be BenH's plan, along with making the virtual addresses dynamic and not static. While at it, what are the possibilities of making BAT's and/or CAM's available to userspace through hugetlbfs or some other mechanism?
Fast Ethernet device driver for MPC885
Hi Sophie, On Thursday 23 June 2005 06:09, scarayol at assystembrime.com wrote: > Hi all. > > I use a custom board with a MPC885 microprocessor. I want to test the > Ethernet chain on my board so i made an external loopback on the Ethernet > port. I want to transmit datas and read the received datas. > > Which driver have i to use and which name to open it. I don' see any driver > that seems to be the fec one in /dev/.. Well, fec registers as a network device, so you should use the sockets API to access it. >I think i have to use the routines > in pqfec.c instead of fec.c. Don't know about them, sorry. > But I don't know how the driver works. > Which kind of driver is it and how access to the routines from user space > in order to do my tests ? Read above. "man socket" is a good start. HTH, -- Ricardo Scop. \|/ ___ -*- (@ @)/|\ / V \| R SCOP Consult. /( )\ Linux-based communications --^^---^^+-- rscop at matrix.com.br +55 51 999-36-777 Porto Alegre, RS - BRazil -- P. S.: "If you don't have time to do it right, when will you have time to do it over?" -- Penny Hines
Antigen found HTML.Phishbank.RZ virus
Antigen for Exchange found Body of Message infected with HTML.Phishbank.RZ virus. The file is currently Removed. The message, "Urgent PayPal security notification", was sent from linuxppc-embedded-bounces at ozlabs.org and was discovered in SMTP Messages\Inbound located at NDS/NDS-JER/ILEX1.
[PATCH] ppc32: add Freescale MPC885ADS board support
On Thu, Jun 23, 2005 at 11:05:22AM -0300, Marcelo Tosatti wrote: > > Hi Andrei, > > On Thu, Jun 23, 2005 at 07:38:54PM +0400, Andrei Konovalov wrote: > > > > diff --git a/arch/ppc/syslib/m8xx_setup.c b/arch/ppc/syslib/m8xx_setup.c > > --- a/arch/ppc/syslib/m8xx_setup.c > > +++ b/arch/ppc/syslib/m8xx_setup.c > > @@ -369,7 +369,7 @@ m8xx_map_io(void) > > #if defined(CONFIG_HTDMSOUND) || defined(CONFIG_RPXTOUCH) || > > defined(CONFIG_FB_RPX) > > io_block_mapping(HIOX_CSR_ADDR, HIOX_CSR_ADDR, HIOX_CSR_SIZE, _PAGE_IO); > > #endif > > -#ifdef CONFIG_FADS > > +#if defined(CONFIG_FADS) || defined(CONFIG_MPC885ADS) > > io_block_mapping(BCSR_ADDR, BCSR_ADDR, BCSR_SIZE, _PAGE_IO); > > #endif > > #ifdef CONFIG_PCI > > I suppose you also want to include CONFIG_MPC885ADS in the > io_block_mapping(IO_BASE) > here? I think it'd be great if we _stop_ adding new io_block_mapping users, there is ioremap() for stuff like this, let's use it instead. -- Eugene
booting linux on powerpc 405
Hi I have the same problem. But when I starting the kernel again, twice times, the error massage go away. For info: I use nfsroot. best regards
[OT?] recommendations for a small footprint DB for PPC system?
Robert P. J. Day wrote: > any recommendations for a small, relational database that can be >cross-compiled with ELDK 3.1.1 for a PPC system? it's not going to be >holding a lot of records (about 1000, more or less), and will be >initialized and loaded at system boot time, at which point the >majority of operations will be read, with only occasional writes. For a simple database, what about libdb ? Otherwise there's http://freshmeat.net/projects/sqlite/ Regards, -- Stephane
Fast Ethernet device driver for MPC885
Hi all. I use a custom board with a MPC885 microprocessor. I want to test the Ethernet chain on my board so i made an external loopback on the Ethernet port. I want to transmit datas and read the received datas. Which driver have i to use and which name to open it. I don' see any driver that seems to be the fec one in /dev/.. I think i have to use the routines in pqfec.c instead of fec.c. But I don't know how the driver works. Which kind of driver is it and how access to the routines from user space in order to do my tests ? Thank you really for your help. Sophie CARAYOL
[PATCH] ppc32: add Freescale MPC885ADS board support
Hi Andrei, On Thu, Jun 23, 2005 at 07:38:54PM +0400, Andrei Konovalov wrote: > diff --git a/arch/ppc/syslib/m8xx_setup.c b/arch/ppc/syslib/m8xx_setup.c > --- a/arch/ppc/syslib/m8xx_setup.c > +++ b/arch/ppc/syslib/m8xx_setup.c > @@ -369,7 +369,7 @@ m8xx_map_io(void) > #if defined(CONFIG_HTDMSOUND) || defined(CONFIG_RPXTOUCH) || > defined(CONFIG_FB_RPX) > io_block_mapping(HIOX_CSR_ADDR, HIOX_CSR_ADDR, HIOX_CSR_SIZE, _PAGE_IO); > #endif > -#ifdef CONFIG_FADS > +#if defined(CONFIG_FADS) || defined(CONFIG_MPC885ADS) > io_block_mapping(BCSR_ADDR, BCSR_ADDR, BCSR_SIZE, _PAGE_IO); > #endif > #ifdef CONFIG_PCI I suppose you also want to include CONFIG_MPC885ADS in the io_block_mapping(IO_BASE) here?
USB on MPC885 FADS board
Hello, I get m8xxhci.c last release form Brad Parker's page http://www.heeltoe.com/usb/ppc <http://www.heeltoe.com/usb/ppc> and I have modificated to use on the MPC823 FADS board. This drivers has also Roman Weissgaerber changes. I have done the following modifications: 1.- At the begin of the file: #ifdef CONFIG_MYBOARD #define USE_PA5_CLK3_USBCLK /* 48mhz clock via clk3 */ #define USE_TIMER1_FOR_SOF #endif 2.-I have loaded the microcode patch. 3.-I put TIMER 1 output (PA6) in the DRQ0 input and connect it to PC15 After booting Linux I have the following mesages: m8xxhci: initializing controller m8xxhci_setup() usb.c: new USB bus registered, assigned bus number 1 m8xxhci_start_controller() m8xxhci: USING CLK2 for USB clock! m8xxhci: ring sizes: rx 60, tx 10 size 0x18 index 0xa00 size 0x1e0 index 0xa38 size 0x50 index 0xc20 PQUCODE: USB SOF patch installed m8xxhci: enable USB controller m8xxhci_timer_setup() m8xxhci: timer bytes/count 0.25 m8xxhci: USING TIMER1 FOR SOF! m8xxhci: timer1 started m8xxhci: usb bus is NOT idle Product: USB MPC8xx Root Hub SerialNumber: ff000a00 hub.c: USB hub found hub.c: 1 port detected rh_submit_urb() int pipe rh_port_power(1) m8xxhci: initializing done and when i connect a device idle_bus() 1; d+ zero, d- one, connect lo-sp rh_port_reset(1) hub.c: new USB device m8xxhci-1, assigned address 2 usb_control/bulk_msg: timeout unlink_urb(urb=c0552f50,qtype=2) status -115 unlink_urb(urb=c0552f50) done usb.c: USB device not accepting new address=2 (error=-110) m8xxhci_free_dev(usb_dev=c049d600) m8xxhci_free_dev(dev=c049d600) done rh_port_reset(1) hub.c: new USB device m8xxhci-1, assigned address 3 usb_control/bulk_msg: timeout unlink_urb(urb=c0552f50,qtype=2) status -115 unlink_urb(urb=c0552f50) done usb.c: USB device not accepting new address=3 (error=-110) m8xxhci_free_dev(usb_dev=c049d600) m8xxhci_free_dev(dev=c049d600) done rh_port_enable(0) .. may i ask you a few questions about m8xxhci.c driver : 1) what do the define POLL_FOR_HUB stands for and should i use it ? 2) is it correct to include hcd.o + hub.o + usb.o + usb-debug.o to make usbdrv.o in the kernel ? 3)Is the behavior of the driver correct according to the trace above if no data goes out of MPC885 USB pins ? What can prevent data to go out ? 4) is it correct to include your driver in the kernel ? (and not run it as an external module) ? 5) i try this driver with SOF generated by micro-patch : -> should this SOF automaticaly sent on the PPC usb tx data line as soon as a device is connected ? -> when you plug a usb device (keyboard) what is the first thing the driver must do ? send a setup command ? (I try to see when you write this command in a BD but i can't find it ) 6) can this driver drive mass storage device (selected by CONFIG_USB_STORAGE kernel parameter) ? 76) when we use USB_UPATCH how do behave the CPM ? does it generate SOF continuously ? how do we tell the CPM to start or stop the SOF transmission ? Thank you very much for any reply Best regards -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050623/62998d3e/attachment.htm -- next part -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date: 22/06/2005