public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] EHCI last patch
@ 2008-12-12  9:57 michael
  2008-12-12 10:05 ` Stefan Roese
  0 siblings, 1 reply; 4+ messages in thread
From: michael @ 2008-12-12  9:57 UTC (permalink / raw)
  To: u-boot

Hi all,

In the last ehci patch I add myself in the author of the code. I'm not 
sure if it possible. I change
the codes and test it but I don't know if the change are sufficient.

Regards Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] EHCI last patch
  2008-12-12  9:57 [U-Boot] EHCI last patch michael
@ 2008-12-12 10:05 ` Stefan Roese
  2008-12-17 13:08   ` michael
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Roese @ 2008-12-12 10:05 UTC (permalink / raw)
  To: u-boot

Hi Michael,

On Friday 12 December 2008, michael wrote:
> In the last ehci patch I add myself in the author of the code. I'm not
> sure if it possible. I change
> the codes and test it but I don't know if the change are sufficient.

You added yourself not as author but you added your Copyright. With all the 
work you have done to this code lately I'm pretty sure that this is ok.

Thanks for all your work on this. And please don't forget to add the EHCI-PCI 
support as well.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] EHCI last patch
  2008-12-12 10:05 ` Stefan Roese
@ 2008-12-17 13:08   ` michael
  2008-12-17 15:05     ` Stefan Roese
  0 siblings, 1 reply; 4+ messages in thread
From: michael @ 2008-12-17 13:08 UTC (permalink / raw)
  To: u-boot

Hi all,

Stefan Roese wrote:
> Hi Michael,
>
> On Friday 12 December 2008, michael wrote:
>   
>> In the last ehci patch I add myself in the author of the code. I'm not
>> sure if it possible. I change
>> the codes and test it but I don't know if the change are sufficient.
>>     
>
> You added yourself not as author but you added your Copyright. With all the 
> work you have done to this code lately I'm pretty sure that this is ok.
>
> Thanks for all your work on this. And please don't forget to add the EHCI-PCI 
> support as well.
>   
I have rewrite and clean the support for ehci-pci but I don't have any 
hardware to test on it. My
code is like this:

int ehci_hcd_init(void)
{
        pci_dev_t pdev;
        uint32_t addr;

        pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
        if (dev == -1) {
                printf("EHCI host controller not found\n");
                return -1;
        }

        pci_read_config_dword(dev, PCI_BASE_ADDRESS_0, &addr);
        hccr = (struct ehci_hccr *)addr;
        hcor = (struct ehci_hcor *)((uint32_t) hccr +
                        HC_LENGTH(ehci_readl(&hccr->cr_capbase)));

        return 0;
}

and the CONFIG_PCI_EHCI_DEVICE. I notice that there is a table in 
usb_ohci too. Is there any
reason?

#ifdef CONFIG_PCI_EHCI_DEVICE
static struct pci_device_id ehci_pci_ids[] = {
        /* Please add supported PCI EHCI controller ids here */
        {0, 0}
};
#endif

It is very simple. The problem is thath currently I don't have any other 
hardware to test the code.
I have done some cleanup and I have the ixp4xx usb host support ready 
too. Are there people with ehci
hardware running u-boot?

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] EHCI last patch
  2008-12-17 13:08   ` michael
@ 2008-12-17 15:05     ` Stefan Roese
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2008-12-17 15:05 UTC (permalink / raw)
  To: u-boot

Hi Michael,

On Wednesday 17 December 2008, michael wrote:
> I have rewrite and clean the support for ehci-pci but I don't have any
> hardware to test on it. My
> code is like this:
>
> int ehci_hcd_init(void)
> {
>         pci_dev_t pdev;
>         uint32_t addr;
>
>         pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
>         if (dev == -1) {
>                 printf("EHCI host controller not found\n");
>                 return -1;
>         }
>
>         pci_read_config_dword(dev, PCI_BASE_ADDRESS_0, &addr);
>         hccr = (struct ehci_hccr *)addr;
>         hcor = (struct ehci_hcor *)((uint32_t) hccr +
>                         HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
>
>         return 0;
> }
>
> and the CONFIG_PCI_EHCI_DEVICE. I notice that there is a table in
> usb_ohci too. Is there any
> reason?
>
> #ifdef CONFIG_PCI_EHCI_DEVICE
> static struct pci_device_id ehci_pci_ids[] = {
>         /* Please add supported PCI EHCI controller ids here */
>         {0, 0}
> };
> #endif
>
> It is very simple. The problem is thath currently I don't have any other
> hardware to test the code.

That's ok for now. I will test on one of my systems and add the needed PCI 
ID(s).

> I have done some cleanup and I have the ixp4xx usb host support ready
> too. Are there people with ehci
> hardware running u-boot?

There are many, I'm sure. For example some PPC4xx variants which could use 
this EHCI support. So I'm pretty sure that patches for supporting other EHCI 
controllers will follow soon once your patches hit mainline (next merge 
window I suspect).

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-17 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-12  9:57 [U-Boot] EHCI last patch michael
2008-12-12 10:05 ` Stefan Roese
2008-12-17 13:08   ` michael
2008-12-17 15:05     ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox