From: Peter Korsgaard <peter.korsgaard@barco•com>
To: linuxppc-embedded@ozlabs•org
Subject: Re: Cypress C67X00 driver question
Date: Thu, 09 Aug 2007 09:08:41 +0200 [thread overview]
Message-ID: <87lkclw5fq.fsf@sleipner.barco.com> (raw)
In-Reply-To: <939D37AEB47F1F49B88FAB6599B6023501A17257@hsv1dafpew02.das.gov.sanm.corp> (Joseph M. Robertson's message of "Wed, 8 Aug 2007 15:34:45 -0500")
>>>>> "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
next prev parent reply other threads:[~2007-08-09 7:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 20:34 Cypress C67X00 driver question Robertson, Joseph M.
2007-08-09 7:08 ` Peter Korsgaard [this message]
[not found] ` <939D37AEB47F1F49B88FAB6599B6023501A1726C@hsv1dafpew02.das.gov.sanm.corp>
2007-08-15 19:47 ` FW: " Robertson, Joseph M.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lkclw5fq.fsf@sleipner.barco.com \
--to=peter.korsgaard@barco$(echo .)com \
--cc=linuxppc-embedded@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox