From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Scholz Date: Thu, 25 Aug 2005 09:07:33 +0200 Subject: [U-Boot-Users] [PATCH 1/5][RESEND] CSB637 - add KB920x support In-Reply-To: <000401c5a8ff$7ae12730$b50196c0@denxp> References: <000401c5a8ff$7ae12730$b50196c0@denxp> Message-ID: <430D6E35.7030909@imc-berlin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? > Steven Scholz schreibt: >>>+#ifdef CONFIG_KB920x >>>+ twi->TWI_IADR = addr; >>>+#else >>> /* Set TWI Internal Address Register with first messages data > > field */ > >>> /* only one address byte is supported */ >>> if (alen > 0) >>> twi->TWI_IADR = addr & 0xff; >>>+#endif >> >>Why is this required? IMHO we should avoid putting board dependend >>DEFINES in common code. kb_admin wrote: > We used the conditional because our board supports more than a single > byte for the TWI address and we didn't want to break other targets. > Please let me the best solution to this goal as we don't want to use > target-specific conditionals, if possible. The better way would be the fix the at91-i2c driver to support multio byte addresses! > Also, we have updated two constants in the patch. I'm including the > original patch modified with the changes. :-( gzip isn't exactly human readable! Whcih constants did you change? -- Steven