* Cypress C67X00 driver question @ 2007-08-08 20:34 Robertson, Joseph M. 2007-08-09 7:08 ` Peter Korsgaard 0 siblings, 1 reply; 3+ messages in thread From: Robertson, Joseph M. @ 2007-08-08 20:34 UTC (permalink / raw) To: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 1922 bytes --] Hi all, First off big thanks to the guys working on the Cypress USB C67X00 driver! Without them I would not even be this far. But my question for them is: How are you guys initializing the Cypress chip? It looks like the driver is expecting the cypress to be programmed and ready. I have a FPGA design with a Cypress C67300 which has no eeprom or cpld, so it just comes up blank in coprocessor mode. I believe I need to 'program' the chip and kick it before the driver loads is that right? Has anyone ever done this before? The Cypress docs do not even begin to provide a simple example of the minimum registers to set before the usb will 'work'. I just need 2 hosts. Thanks, Joe Robertson x8259 Joseph.Robertson@sanmina-sci•com 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. [-- Attachment #2: Type: text/html, Size: 2417 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cypress C67X00 driver question 2007-08-08 20:34 Cypress C67X00 driver question Robertson, Joseph M. @ 2007-08-09 7:08 ` Peter Korsgaard [not found] ` <939D37AEB47F1F49B88FAB6599B6023501A1726C@hsv1dafpew02.das.gov.sanm.corp> 0 siblings, 1 reply; 3+ messages in thread From: Peter Korsgaard @ 2007-08-09 7:08 UTC (permalink / raw) To: linuxppc-embedded >>>>> "RJM" == Robertson, Joseph M <joseph.robertson@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 ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <939D37AEB47F1F49B88FAB6599B6023501A1726C@hsv1dafpew02.das.gov.sanm.corp>]
* FW: Cypress C67X00 driver question [not found] ` <939D37AEB47F1F49B88FAB6599B6023501A1726C@hsv1dafpew02.das.gov.sanm.corp> @ 2007-08-15 19:47 ` Robertson, Joseph M. 0 siblings, 0 replies; 3+ messages in thread From: Robertson, Joseph M. @ 2007-08-15 19:47 UTC (permalink / raw) To: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 4077 bytes --] 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@sanmina-sci•com -----Original Message----- From: linuxppc-embedded-bounces+joseph.robertson=sanmina-sci.com@ozlabs•org on behalf of Peter Korsgaard Sent: Thu 8/9/2007 2:08 AM To: linuxppc-embedded@ozlabs•org Subject: Re: Cypress C67X00 driver question >>>>> "RJM" == Robertson, Joseph M <joseph.robertson@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@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. [-- Attachment #2: Type: text/html, Size: 6349 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-15 19:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-08 20:34 Cypress C67X00 driver question Robertson, Joseph M.
2007-08-09 7:08 ` Peter Korsgaard
[not found] ` <939D37AEB47F1F49B88FAB6599B6023501A1726C@hsv1dafpew02.das.gov.sanm.corp>
2007-08-15 19:47 ` FW: " Robertson, Joseph M.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox