<!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. <BR>
I put some messages in the driver. I see the c67x00_drv init, and also udc_init.<BR>
But no hdc init and no probing. 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. By the docs, this thing comes up dead. 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? That is, should it be sent/used by some init function? 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>
>>>>> "RJM" == Robertson, Joseph M <joseph.robertson@sanmina-sci.com> writes:<BR>
<BR>
Hi,<BR>
<BR>
RJM> Hi all, First off big thanks to the guys working on the Cypress<BR>
RJM> USB C67X00 driver! Without them I would not even be this far.<BR>
<BR>
You're welcome.<BR>
<BR>
RJM> But my question for them is: How are you guys initializing the<BR>
RJM> Cypress chip? It looks like the driver is expecting the cypress<BR>
RJM> 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 <linux/usb/c67x00.h<BR>
<BR>
..<BR>
<BR>
static struct resource c67x00_resources[] = {<BR>
[0] = {<BR>
.start = 0x84000000,<BR>
.end = 0x8400000f,<BR>
.flags = IORESOURCE_MEM,<BR>
},<BR>
[1] = {<BR>
.start = 3,<BR>
.end = 3,<BR>
.flags = IORESOURCE_IRQ,<BR>
},<BR>
};<BR>
<BR>
static struct c67x00_platform_data c67x00_data = {<BR>
.sie_config = C67X00_SIE1_HOST | C67X00_SIE2_HOST,<BR>
.hpi_regstep = 0x02,<BR>
};<BR>
<BR>
static struct platform_device c67x00 = {<BR>
.name = "c67x00",<BR>
.id = 0,<BR>
.num_resources = ARRAY_SIZE(c67x00_resources),<BR>
.resource = c67x00_resources,<BR>
.dev.platform_data = &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>