From: "Łukasz Dałek" <luk0104@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] pxa25x: Add UDC registers definitions
Date: Fri, 17 Aug 2012 23:44:38 +0200 [thread overview]
Message-ID: <502EBB46.6090307@gmail.com> (raw)
In-Reply-To: <201208172250.40321.marex@denx.de>
On 17.08.2012 22:50, Marek Vasut wrote:
> Dear ?ukasz Da?ek,
>
>> + /* UDC Endpoint Control/Status Registers */
>> + uint32_t udccs0; /* 0x010 */
>> + uint32_t udccs1; /* 0x014 */
>> + uint32_t udccs2; /* 0x018 */
>> + uint32_t udccs3; /* 0x01c */
>> + uint32_t udccs4; /* 0x020 */
>> + uint32_t udccs5; /* 0x024 */
>> + uint32_t udccs6; /* 0x028 */
>> + uint32_t udccs7; /* 0x02c */
>> + uint32_t udccs8; /* 0x030 */
>> + uint32_t udccs9; /* 0x034 */
>> + uint32_t udccs10; /* 0x038 */
>> + uint32_t udccs11; /* 0x03c */
>> + uint32_t udccs12; /* 0x040 */
>> + uint32_t udccs13; /* 0x044 */
>> + uint32_t udccs14; /* 0x048 */
>> + uint32_t udccs15; /* 0x04c */
> Use array here maybe? ;-)
Yes, array is a good idea.
>> + uint32_t uddr9; /* 0x900 */
>> + uint8_t reserved14[508];
>> + uint32_t uddr11; /* 0xb00 */
>> + uint8_t reserved15[124];
>> + uint32_t uddr12; /* 0xb80 */
>> + uint8_t reserved16[124];
>> + uint32_t uddr13; /* 0xc00 */
>> + uint8_t reserved17[508];
>> + uint32_t uddr14; /* 0xe00 */
>> +
>> +} __packed;
> You don't need this.
Why? GCC on ARM doesn't align structures?
>> +#define UDCCFR_AREN (1<< 7) /* ACK response enable (now) */
>> +#define UDCCFR_ACM (1<< 2) /* ACK control mode (wait for AREN) */
>> +/* latest pxa255 errata define new "must be one" bits in UDCCFR */
>> +#define UDCCFR_MB1 (0xff& ~(UDCCFR_AREN | UDCCFR_ACM))
> What errata and where? Please document it in the comment. Also, is the register
> only 8 bit wide?
Ok, I will document. All registers are 32 bits wide. But some you have to
access like they are 8 bits wide.
?ukasz Da?ek
next prev parent reply other threads:[~2012-08-17 21:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-17 20:31 [U-Boot] [PATCH 1/3] usbether: Fixed bug when using with PXA25X chips Łukasz Dałek
2012-08-17 20:31 ` [U-Boot] [PATCH 2/3] pxa25x: Add UDC registers definitions Łukasz Dałek
2012-08-17 20:50 ` Marek Vasut
2012-08-17 21:44 ` Łukasz Dałek [this message]
2012-08-17 23:24 ` Marek Vasut
2012-08-17 20:31 ` [U-Boot] [PATCH 3/3] pxa25x: Add USB ethernet gadget driver Łukasz Dałek
2012-08-17 20:57 ` Marek Vasut
2012-08-17 21:39 ` Łukasz Dałek
2012-08-17 23:25 ` Marek Vasut
2012-08-17 20:48 ` [U-Boot] [PATCH 1/3] usbether: Fixed bug when using with PXA25X chips Marek Vasut
2012-08-17 22:07 ` Łukasz Dałek
2012-08-17 23:32 ` Marek Vasut
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=502EBB46.6090307@gmail.com \
--to=luk0104@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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