From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Blackfin: TWI/I2C: implement multibus support
Date: Wed, 5 May 2010 03:13:39 -0400 [thread overview]
Message-ID: <201005050313.40058.vapier@gentoo.org> (raw)
In-Reply-To: <4BE10C42.4000309@denx.de>
On Wednesday 05 May 2010 02:12:18 Heiko Schocher wrote:
> Mike Frysinger wrote:
> > +/* Every register is 32bit aligned, but only 16bits in size */
> > +#define ureg(name) u16 name; u16 __pad_##name;
> > +struct twi_regs {
> > + ureg(clkdiv);
> > + ureg(control);
> > + ureg(slave_ctl);
> > + ureg(slave_stat);
> > + ureg(slave_addr);
> > + ureg(master_ctl);
> > + ureg(master_stat);
> > + ureg(master_addr);
> > + ureg(int_stat);
> > + ureg(int_mask);
> > + ureg(fifo_ctl);
> > + ureg(fifo_stat);
> > + char __pad[0x50];
> > + ureg(xmt_data8);
> > + ureg(xmt_data16);
> > + ureg(rcv_data8);
> > + ureg(rcv_data16);
> > +};
> > +#undef ureg
>
> Your commit message says only "implement multibus support"
> Please add a comment, that you also introduce the "twi_regs"
> struct, thanks.
one doesnt make much sense without the other ...
> bfin_read/write_TWI_* macros uses bfin_read/write16 ... your patch
> don;t longer use this I/O accessors. Is this OK?
in this particular instance, it's fine. there is an old anomaly on some
Blackfin parts where bfin_read/bfin_write must always be used as it includes
appropriate workarounds, but this driver cannot be used on those parts.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100505/717a39a4/attachment.pgp
next prev parent reply other threads:[~2010-05-05 7:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-28 23:32 [U-Boot] [PATCH] Blackfin: TWI/I2C: implement multibus support Mike Frysinger
2010-05-05 6:12 ` Heiko Schocher
2010-05-05 7:13 ` Mike Frysinger [this message]
2010-05-05 7:20 ` [U-Boot] [PATCH v2] " Mike Frysinger
2010-05-05 7:30 ` Mike Frysinger
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=201005050313.40058.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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