MPC8555 8280/8270 USB host support

2005-12-01 Thread Hans Schillstrom
Hi Mike
I've made some modifications due to the difference between mpc8272 and
mpc8270. MPC8272 use SCC3 and MPC8270 use SCC4.
Added some more clock configuration options ...

I think the changes are quite generic.

The driver seems to work with a 2.6.13 kernel.
Only some basic tests is performed with
- serial ftdi_sio to ports ttyUSB0  ttyUSB1
- storage i.e. some kind of no name usb-memory 
- 3 1/4 floppy drive
- Nokia hub.


Don't you think u-boot should take care of clock setup
i.e. as much as possible of all board dependent stuff ?


Regards 
Hans Schillstrom

On Tue, 2005-11-15 at 07:59, Mike Rapoport wrote:
 Hans Schillstrom wrote:
 
 Hi Mike
 I'm working with a 8270 board and 2.6.12 kernel and searching for USB
 drivers.
 
 Could you help me finding the files ?
   
 
 I've opened a project on the SourceForge, 
 http://cpm2usb.sourceforge.net. The file containing patch against 
 2.6.12.3 can be downloaded at http://sourceforge.net/projects/cpm2usb.
 
 I can help you with the testing.
 What status do they have right now ?
   
 
 The driver was developed on MPC8272ADS, but should go as well on 8270 
 since they have the same USB host controller AFAIK.
 Currently, as far as I tested it works fine with full-speed single 
 device attached through hub, but fails is there are transfers from/to 
 several devices simultaneously.
 As for the code itself, it's far from being perfect.
 
 Regards 
 Hans
   
 
 
-- next part --
A non-text attachment was scrubbed...
Name: m8270usb.patch
Type: text/x-patch
Size: 6861 bytes
Desc: not available
Url : 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20051201/b9ac91c3/attachment.bin
 


MPC8555 8280/8270 USB host support

2005-12-01 Thread Mike Rapoport
Hans Schillstrom wrote:

Hi Mike
I've made some modifications due to the difference between mpc8272 and
mpc8270. MPC8272 use SCC3 and MPC8270 use SCC4.
Added some more clock configuration options ...
  

Thanks a lot.
I've added your patch as is to the SF page.


Don't you think u-boot should take care of clock setup
i.e. as much as possible of all board dependent stuff ?
  

I think you're right, but then it was easier to make all these setups in 
the driver itself.


Regards 
Hans Schillstrom

  


-- 
Sincerely yours,
Mike Rapoport





MPC8555 8280/8270 USB host support

2005-12-01 Thread Wolfgang Denk
In message 1133439981.8518.237.camel at hawk.pwav.net you wrote:
 
 Don't you think u-boot should take care of clock setup
 i.e. as much as possible of all board dependent stuff ?

No, it should not. A river should not make any assumptions about  the
state of the hardware, but initialize everything it needs for correct
operation itself.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Save yourself!  Reboot in 5 seconds!



MPC8555 8280/8270 USB host support

2005-12-01 Thread Nathael PAJANI
Hi

 
 
 Don't you think u-boot should take care of clock setup
 i.e. as much as possible of all board dependent stuff ?
 
 
 I think you're right, but then it was easier to make all these setups 
 in the driver itself.
 

If u-boot is the boot loader of your board (the stuff running on it 
--before-- we see this:

loaded at: 0040 005153B4
board data at: 00513130 00513334
relocated to:  00405090 00405294
zimage at: 00405A85 00512099
avail ram: 00516000 0800

Linux/PPC load: rw console=ttyS0 root=/dev/nfs ip=on

Uncompressing Linux...done)


Then I would say NO




If u-boot is this exact stuff (the files in arch/ppc/boot/simple/... 
misc-embedded.c for example)

then, yes, this is somehow better.
But (tell me if I'm wrong) this is not really Linux code, and this 
should be done by Linux.


What I think should be good also is the platform files 
(arch/ppc/platforms/) for this is the place where all the board 
dependant stuff stays.




Maybe I'm completely mistaken.
Feel free to tell me (and explain please !)

Have fun.





MPC8555 8280/8270 USB host support

2005-12-01 Thread Wolfgang Denk
In message 438F198F.9020606 at cpe.fr you wrote:
 
 If u-boot is the boot loader of your board (the stuff running on it 
 --before-- we see this:
 
 loaded at: 0040 005153B4
 board data at: 00513130 00513334
 relocated to:  00405090 00405294
 zimage at: 00405A85 00512099
 avail ram: 00516000 0800

If U-Boot is your boot load, *and* you see this, than you  made  some
serious  mistake.  U-Boot  is  supposed  to boot the uImage images,
which do not issue such messages.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The shortest unit of time in the multiverse is the News York  Second,
defined  as  the  period  of  time between the traffic lights turning
green and the cab behind you honking.
- Terry Pratchett, _Lords and Ladies_