<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>FW: Cypress C67X00 driver question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Sorry, replied to wrong address...<BR>
<BR>
-----Original Message-----<BR>
From: Robertson, Joseph M.<BR>
Sent: Wed 8/15/2007 2:18 PM<BR>
To: Peter Korsgaard<BR>
Subject: RE: Cypress C67X00 driver question<BR>
<BR>
Hi,<BR>
<BR>
Ok call me dense, but I still get a problem.&nbsp;<BR>
I put some messages in the driver.&nbsp; I see the c67x00_drv init, and also udc_init.<BR>
But no hdc init and no probing.&nbsp; And my ports are not powered.<BR>
I built the system to use c67x00_hdc, and I want 2 hosts enabled.<BR>
<BR>
RE: The CYPRESS C67300 and ROM.&nbsp;&nbsp; By the docs, this thing comes up dead.&nbsp; It comes up HPI, co-processor mode and waits.<BR>
All the defaut values are 0 = disabled, off, etc.<BR>
<BR>
Actually I have to get my hardware guys to double-check that, and also my port wiring, but thats another story.<BR>
<BR>
Where does 'platform_device c67x00' go?&nbsp; That is, should it be sent/used by some init function?&nbsp; All I could find was c67x00_sie?<BR>
<BR>
Thanks again.<BR>
<BR>
Joe Robertson<BR>
Joseph.Robertson@sanmina-sci.com<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: linuxppc-embedded-bounces+joseph.robertson=sanmina-sci.com@ozlabs.org on behalf of Peter Korsgaard<BR>
Sent: Thu 8/9/2007 2:08 AM<BR>
To: linuxppc-embedded@ozlabs.org<BR>
Subject: Re: Cypress C67X00 driver question<BR>
<BR>
&gt;&gt;&gt;&gt;&gt; &quot;RJM&quot; == Robertson, Joseph M &lt;joseph.robertson@sanmina-sci.com&gt; writes:<BR>
<BR>
Hi,<BR>
<BR>
RJM&gt; Hi all, First off big thanks to the guys working on the Cypress<BR>
RJM&gt; USB C67X00 driver!&nbsp; Without them I would not even be this far.<BR>
<BR>
You're welcome.<BR>
<BR>
RJM&gt; But my question for them is: How are you guys initializing the<BR>
RJM&gt; Cypress chip?&nbsp; It looks like the driver is expecting the cypress<BR>
RJM&gt; to be programmed and ready.<BR>
<BR>
No, you don't need to program anything. The driver only uses he<BR>
Cypress BIOS programmed in ROM in the chip.<BR>
<BR>
You just need to register a struct platform_device in your board code<BR>
with the base address, IRQ and port configuration - Something like:<BR>
<BR>
#include &lt;linux/usb/c67x00.h<BR>
<BR>
..<BR>
<BR>
static struct resource c67x00_resources[] = {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [0] = {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .start&nbsp; = 0x84000000,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .end&nbsp;&nbsp;&nbsp; = 0x8400000f,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .flags&nbsp; = IORESOURCE_MEM,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1] = {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .start&nbsp; = 3,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .end&nbsp;&nbsp;&nbsp; = 3,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .flags&nbsp; = IORESOURCE_IRQ,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<BR>
};<BR>
<BR>
static struct c67x00_platform_data c67x00_data = {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .sie_config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = C67X00_SIE1_HOST | C67X00_SIE2_HOST,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .hpi_regstep&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0x02,<BR>
};<BR>
<BR>
static struct platform_device c67x00 = {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;c67x00&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .num_resources&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ARRAY_SIZE(c67x00_resources),<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .resource&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = c67x00_resources,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .dev.platform_data&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &amp;c67x00_data,<BR>
};<BR>
<BR>
--<BR>
Bye, Peter Korsgaard<BR>
_______________________________________________<BR>
Linuxppc-embedded mailing list<BR>
Linuxppc-embedded@ozlabs.org<BR>
<A HREF="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</A><BR>
<BR>
<BR>
</FONT>
</P>


<BR>
CONFIDENTIALITY<BR>
This e-mail message and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail message, you are hereby notified that any dissemination, distribution or copying of this e-mail message, and any attachments thereto, is strictly prohibited.  If you have received this e-mail message in error, please immediately notify the sender and permanently delete the original and any copies of this email and any prints thereof.<BR>
ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING.  Notwithstanding the Uniform Electronic Transactions Act or the applicability of any other law of similar substance and effect, absent an express statement to the contrary hereinabove, this e-mail message its contents, and any attachments hereto are not intended to represent an offer or acceptance to enter into a contract and are not otherwise intended to bind the sender, Sanmina-SCI Corporation (or any of its subsidiaries), or any other person or entity.<BR>
</BODY>
</HTML>