RapidIO Direct I/O Support?

2011-12-18 Thread Daniel Ng
Hi, Is there RapidIO Direct Memory I/O Support in the latest kernel? I've seen these patches from Freescale, but it seems they were never integrated- http://kerneltrap.org/mailarchive/linux-netdev/2009/5/12/5686954 Does anyone know why these weren't integrated? What is the latest state of these

Re: How to bring up fs_enet on 2.6.27?

2009-02-18 Thread Daniel Ng
On Thu, Jan 29, 2009 at 12:16 PM, Mike Ditto wrote: > But I can't explain why the driver isn't attaching for you. Did you > try it built-in instead of as a module? > Hi Mike et al, I am trying it built-in at the moment (ie. not as a module). I've stuck a whole bunch of printks() in. This is wh

Re: How to bring up fs_enet on 2.6.27?

2009-02-19 Thread Daniel Ng
On Fri, Feb 20, 2009 at 5:44 AM, Scott Wood wrote: > See this thread: > http://ozlabs.org/pipermail/linuxppc-dev/2009-February/068467.html > Great, that's helped. Thanks Scott. Now, I'm seeing these boot messages: f0010d40:00 not found eth0: Could not attach to PHY IP-Config: Failed to open eth

Re: How to bring up fs_enet on 2.6.27?

2009-02-24 Thread Daniel Ng
Hi guys, I was hoping to have gotten some form of comment by now... Can anyone help out here, please? Daniel On Fri, Feb 20, 2009 at 4:01 PM, Daniel Ng wrote: > > Now, I'm seeing these boot messages: > > f0010d40:00 not found > eth0: Could not attach to PHY > IP-Conf

Re: How to bring up fs_enet on 2.6.27?

2009-02-26 Thread Daniel Ng
On Wed, Feb 25, 2009 at 8:25 PM, Mike Ditto wrote: > Daniel Ng wrote: >>> f0010d40:00 not found >>> eth0: Could not attach to PHY > These messages are typical of having the wrong GPIO pins in the mdio > node or the wrong MDIO address (reg property) in the ethernet-phy

GPIO and SPI on CPM2 (8260)?

2009-03-04 Thread Daniel Ng
Hi, I'm trying to get GPIO and SPI working on my 8272-based board. Would anyone know if the following exists?- 1) SPI driver for CPM2-based platforms? 2) GPIO driver for CPM2-based platforms? Also, has anyone used the gpiolib functionality on the CPM2-based platforms? Cheers, Daniel __

Re: GPIO and SPI on CPM2 (8260)?

2009-03-09 Thread Daniel Ng
Hi Sergej, On Fri, Mar 6, 2009 at 9:07 PM, Stepanov, Sergej wrote: > gpio - driver functions pretty well for a pin-setup, but > uninitialized/unexported pins have undefined states -did you achieve this using gpiolib.c? If not, then what files and what kernel are you using? We are trying to get

spidev.c driver on the ppc8247 (kernel 2.6.27.19)

2009-03-18 Thread Daniel Ng
Hi, I'm trying to get the spidev.c driver working in Kernel 2.6.27.19 on a ppc8247. Firstly, would I need to convert it to an 'of'-style driver? Assuming this is the case, I've changed spidev_init() to use of_register_platform_driver() with what I think is an appropriate parameter: static struc

Re: spidev.c driver on the ppc8247 (kernel 2.6.27.19)

2009-03-19 Thread Daniel Ng
Hi Sergej, On Wed, Mar 18, 2009 at 7:30 PM, Stepanov, Sergej wrote: > in the attachment i send a spi driver (little bit "of") done by myself Thanks for your driver. I've already got a SPI Controller driver, I just want to hook it up to spidev.c so that it is has a Userspace interface via /dev/sp

Re: spidev.c driver on the ppc8247 (kernel 2.6.27.19)

2009-03-19 Thread Daniel Ng
On Thu, Mar 19, 2009 at 7:32 PM, Daniel Ng wrote: > > So, I tried to call spidev_probe() directly from the probe() function > of my SPI Controller driver. However in this case spidev_probe() > failed because its call to device_create_drvdata() failed with error > code ENODEV. Wh

Re: spidev.c driver on the ppc8247 (kernel 2.6.27.19)

2009-03-23 Thread Daniel Ng
The solution is in Documentation/spi/spidev: -in the slave device spi_board_info struct, specify 'spidev' for the 'modalias' of *every* SPI slave. I wonder what magic was involved to set this up!!? ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org h

How to submit patches?

2009-03-26 Thread Daniel Ng
Hi, What are the current requirements for submitting a patch? I have created a patch which provides an SPI_LSB_FIRST option for the SPI Bit-banging driver. The SPI Bit-banging driver currently only supports MSB-first data transmission (see include/linux/spi/spi_bitbang.h). If someone could poin

PPP over Synchronous HDLC in the Linux Kernel

2009-04-17 Thread Daniel Ng
Hi, Is there a way to integrate PPP over Synchronous HDLC using the existing kernel code? We are currently using 2.6.27 on an 8272 ppc board. In the past, we have had this working on 2.6.14 by porting across Dan Eble's PPC kernel patches, detailed below. However, it seems these patches were neve

SPI Driver for CPM2 8260 (8272 family)

2010-03-23 Thread Daniel Ng
Hi, Is there an SPI Driver in Linux for CPM2 8260-based processors? I'm quite surprised that there doesn't seem to be one. Can someone please explain why this is? Cheers, Daniel ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.

MPC8272- Porting HDLC driver from 2.6.14 to 2.6.27- "no_irq_chip" error

2009-05-28 Thread Daniel Ng
Hi, I'm attempting to port our Ethos HDLC driver from 2.6.14 to 2.6.27, on a MPC8272-based platform. So far, the kernel crashes when the driver tries to open (see below). It seems that the interrupt handler fails to register, with the following condition in setup_irq() in manage.c: desc->chip =

Re: MPC8272- Porting HDLC driver from 2.6.14 to 2.6.27- "no_irq_chip" error

2009-05-28 Thread Daniel Ng
On Thu, May 28, 2009 at 10:33 PM, Wolfram Sang wrote: >> this is an example of how a simple 8313 Periodic Interval Timer (PIT) kernel >> driver >> registers for the PIT IRQ (Interrupt ID 65) >> >> #define PIT_IRQ 65 >> >> virq = irq_create_mapping(NULL, PIT_IRQ); >> set_irq_type(virq, IRQ

Trouble porting a USB gadget serial UDC driver from 2.6.14 to 2.6.27

2009-06-17 Thread Daniel Ng
Hi, I'm having trouble porting our in-house UDC driver to 2.6.27. It originally worked on 2.6.14 as an CDC-ACM driver. The hardware platform is a mpc8272-based board. I notice a lot of changes since 2.6.14. For starters, instead of the single serial.c file, there is now f_serial.c, u_serial.c and

Re: Device Tree setup for 8272-based board

2009-01-15 Thread Daniel Ng
Hi Scott, > Scott Wood freescale.com> writes: > > Yes, if u-boot is providing junk, then you'll probably want to hack up > > the wrapper to ignore it. Or just upgrade u-boot to one that works. So, I've gotten the latest u-boot installed and working. Here's my boot sequence- ## Booting kernel fro

Device Tree setup for 8272-based board

2009-01-15 Thread Daniel Ng
Hi Scott, > Scott Wood freescale.com> writes: > > Yes, if u-boot is providing junk, then you'll probably want to hack up > > the wrapper to ignore it. Or just upgrade u-boot to one that works. So, I've gotten the latest u-boot installed and working. Here's my boot sequence- ## Booting kernel fro

Re: Device Tree setup for 8272-based board

2009-01-18 Thread Daniel Ng
Hi Scott, On Sat, Jan 17, 2009 at 5:14 AM, Scott Wood wrote: > >> /dts-v1/; >> >> / { >> model = "HPXRED"; >> compatible = "fsl,mpc8272ads"; > > Is it 100% compatible? If not, change the compatible to something else > (and make sure your board code matches it). My board is similar to the mpc8272

Re: Device Tree setup for 8272-based board

2009-01-19 Thread Daniel Ng
Hi Scott, By #defining DEBUG in setup-32.c and setting the following in my kernel config- CONFIG_PPC_EARLY_DEBUG=y CONFIG_PPC_EARLY_DEBUG_CPM=y CONFIG_PPC_EARLY_DEBUG_CPM_ADDR=0xf0001ff8 -I have been able to get the following boot messages: ## Booting kernel from Legacy Image at 0020 ...

Re: Device Tree setup for 8272-based board

2009-01-20 Thread Daniel Ng
Hi Scott, On Wed, Jan 21, 2009 at 3:41 AM, Scott Wood wrote: > On Tue, Jan 20, 2009 at 06:23:08PM +1100, Daniel Ng wrote: >> PID hash table entries: 128 (order: 7, 512 bytes) >> time_init: decrementer frequency = 16.50 MHz >> time_init: processor frequency = 330.

Re: Device Tree setup for 8272-based board

2009-01-21 Thread Daniel Ng
On Thu, Jan 22, 2009 at 4:52 AM, Scott Wood wrote: >> 3) In the PIC: interrupt-control...@10c00 node- >> reg = <0x10c00 0x80>; > > Offset and length of PIC registers. Thanks Scott. What is the meaning of the Ethernet reg field?: reg = <0x11300 0x20 0x8400 0x100 0x11390 0x1>; Is it- 0x11300-> G

How to bring up fs_enet on 2.6.27?

2009-01-27 Thread Daniel Ng
Hi, I'm trying to bring the primary Ethernet interface up on my 8272-based board running 2.6.27. Previously, I had this same hardware working with 2.6.14 using the following driver: linux-2.6.14/arch/ppc/8260_io/fcc_enet.c This doesn't exist anymore in 2.6.27. From reading the code comments, I

Re: How to bring up fs_enet on 2.6.27?

2009-01-28 Thread Daniel Ng
Thanks for your help so far Laurent- On Wed, Jan 28, 2009 at 8:50 PM, Laurent Pinchart wrote: > > Make sure FS_ENET_HAS_FCC is set in your kernel configuration. Yep, I've done that... > > [snip] > >> The fs_enet probe() function doesn't seem to get called (I had put a >> panic() in it). Should