Forum Discussion

19 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    to hippo:

    The uClinux driver about usb host is a common driver,or not?

    Is this driver only support the USB2.0 IP core ? Can this driver driver the usb host on ARM?

    If i want to write the Registers of USB2.0 IP core,iit means that i can find such case"IOWR(base, REG, data)" on the driver. but i can't.

    Do you know how the ucliux solve this?

    Thank you!!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by feng8126@Jan 4 2007, 08:17 PM

    to hippo:

    the uclinux driver about usb host is a common driver,or not?

    is this driver only support the usb2.0 ip core ? can this driver driver the usb host on arm?

    if i want to write the registers of usb2.0 ip core,iit means that i can find such case"iowr(base, reg, data)" on the driver. but i can't.

    do you know how the ucliux solve this?

    thank you!!

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20353)

    --- quote end ---

    --- Quote End ---

    The ISP1761 dose not need USB 2.0 IP core. They are two different things.

    The USB has two functions, host and device. You need to know which one you want.

    The ISP1761 is a common part, which you can use on most embeded processors, including ARM, BF etc. There is a Linux host and device driver on sourceforge from the vendor , NPX.

    I don&#39;t know which USB 2.0 IP core you are refering, but it is not easy to write a USB driver.

    The port io functions are defined in linux-2.6.x/include/asm-nios2nommu/io.h .
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    To hippo:

    Because the address of any devices on NIOS is not certain,so we need the .ptf file which come from the sopcbuilder for building the uclinux,I think i can find something about the .ptf file in the ucliux source.

    Could you understand me?

    Thank you very much!!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by liuxiaoping@Jan 5 2007, 09:59 AM

    to hippo:

    because the address of any devices on nios is not certain,so we need the .ptf file which come from the sopcbuilder for building the uclinux,i think i can find something about the .ptf file in the ucliux source.

    could you understand me?

    thank you very much!!

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20373)

    --- quote end ---

    --- Quote End ---

    The io ports address is generated from ptf file, in the hwselect perl script.

    We run "make vendor_hwselect SYSPTF=your_ptf_path" in uClinux-dist, (or make hwselect in the kernel tree).

    The port definition will be created in linux-2.6.x/include/nios2_system.h .
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    to hippo:

    Because of your help,now,i know of something,thank you!

    It means that the nios2_system.h is included in the device driver source.

    If i use two ps/2 ip for mouse and keyboard, in the nios2_system.h file ,there will be two defines.The problem is how i know whitch is for mouse and whitch is for keyboard in the uclinux.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by liuxiaoping@Jan 5 2007, 10:49 AM

    to hippo:

    because of your help,now,i know of something,thank you!

    it means that the nios2_system.h is included in the device driver source.

    if i use two ps/2 ip for mouse and keyboard, in the nios2_system.h file ,there will be two defines.the problem is how i know whitch is for mouse and whitch is for keyboard in the uclinux.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20376)

    --- quote end ---

    --- Quote End ---

    It is off topic.

    You should start a new topic next time.

    In hardware, you can assign the ports usage, eg, ps2_0 for keyboard, ps2_1 for mouse.

    In software, you can query the devices to get device type.

    You will need to write serio driver for your PS/2 hardware. The kbd and mouse drivers will use it.

    linux-2.6.x/drivers/input/serio

    linux-2.6.x/Documents/input
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello mr. hippo!

    I need to rewrite isp1761_hcd linux driver under blackfin and uClinux.

    Is it enough to change two HAL files (hal_x86.c and hal_x86.h) ?

    Or I should rewrite pehci.c too, to get rid of PCI bus?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by konstantin@Jan 9 2007, 04:04 PM

    hello mr. hippo!

    i need to rewrite isp1761_hcd linux driver under blackfin and uclinux.

    is it enough to change two hal files (hal_x86.c and hal_x86.h) ?

    or i should rewrite pehci.c too, to get rid of pci bus?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20429)

    --- quote end ---

    --- Quote End ---

    Bernard ported the driver to a PXA255 running 2.6.17. It&#39;s at http://dagobah.ucc.asn.au/isp1761/ (http://dagobah.ucc.asn.au/isp1761/). See http://sourceforge.net/mailarchive/forum.p...&forum_id=38940 (http://sourceforge.net/mailarchive/forum.p...&forum_id=38940) for more info.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi hippo,

    I also want to use ISP1761 for altera startix3 DE3. The Bernard link is not active anymore. Do you happen to have the driver.

    Thank you.