FW: Cypress C67X00 driver question

Robertson, Joseph M. joseph.robertson at sanmina-sci.com
Thu Aug 16 05:47:44 EST 2007


Sorry, replied to wrong address...

-----Original Message-----
From: Robertson, Joseph M.
Sent: Wed 8/15/2007 2:18 PM
To: Peter Korsgaard
Subject: RE: Cypress C67X00 driver question
 
Hi,

Ok call me dense, but I still get a problem.  
I put some messages in the driver.  I see the c67x00_drv init, and also udc_init.
But no hdc init and no probing.  And my ports are not powered.
I built the system to use c67x00_hdc, and I want 2 hosts enabled.

RE: The CYPRESS C67300 and ROM.   By the docs, this thing comes up dead.  It comes up HPI, co-processor mode and waits.
All the defaut values are 0 = disabled, off, etc.

Actually I have to get my hardware guys to double-check that, and also my port wiring, but thats another story.

Where does 'platform_device c67x00' go?  That is, should it be sent/used by some init function?  All I could find was c67x00_sie?

Thanks again.

Joe Robertson
Joseph.Robertson at sanmina-sci.com



-----Original Message-----
From: linuxppc-embedded-bounces+joseph.robertson=sanmina-sci.com at ozlabs.org on behalf of Peter Korsgaard
Sent: Thu 8/9/2007 2:08 AM
To: linuxppc-embedded at ozlabs.org
Subject: Re: Cypress C67X00 driver question
 
>>>>> "RJM" == Robertson, Joseph M <joseph.robertson at sanmina-sci.com> writes:

Hi,

RJM> Hi all, First off big thanks to the guys working on the Cypress
RJM> USB C67X00 driver!  Without them I would not even be this far.

You're welcome.

RJM> But my question for them is: How are you guys initializing the
RJM> Cypress chip?  It looks like the driver is expecting the cypress
RJM> to be programmed and ready.

No, you don't need to program anything. The driver only uses he
Cypress BIOS programmed in ROM in the chip.

You just need to register a struct platform_device in your board code
with the base address, IRQ and port configuration - Something like:

#include <linux/usb/c67x00.h

..

static struct resource c67x00_resources[] = {
        [0] = {
                .start  = 0x84000000,
                .end    = 0x8400000f,
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
                .start  = 3,
                .end    = 3,
                .flags  = IORESOURCE_IRQ,
        },
};

static struct c67x00_platform_data c67x00_data = {
        .sie_config             = C67X00_SIE1_HOST | C67X00_SIE2_HOST,
        .hpi_regstep            = 0x02,
};

static struct platform_device c67x00 = {
        .name                   = "c67x00",
        .id                     = 0,
        .num_resources          = ARRAY_SIZE(c67x00_resources),
        .resource               = c67x00_resources,
        .dev.platform_data      = &c67x00_data,
};

-- 
Bye, Peter Korsgaard
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded at ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded



CONFIDENTIALITY
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070815/4f3eee45/attachment-0001.htm 


More information about the Linuxppc-embedded mailing list