From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sun, 01 Jun 2008 22:22:07 +0200 Subject: [U-Boot-Users] [PATCH] Blackfin: unify common ADI board settings In-Reply-To: Your message of "Sun, 01 Jun 2008 09:11:48 EDT." <1212325908-7969-2-git-send-email-vapier@gentoo.org> Message-ID: <20080601202207.B0706247CC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1212325908-7969-2-git-send-email-vapier@gentoo.org> you wrote: > Rather than duplicate the same ADI settings in every ADI board, create a > common ADI config header and have all ADI boards start using that. This > will also make merging the ~10 boards I have to forward port a lot easier. ... > +#define SMC91111_EEPROM_INIT() { *pFIO_DIR = 0x01; *pFIO_FLAG_S = 0x01; SSYNC(); } ... > +#define I2C_ACTIVE do { *pFIO_DIR |= PF_SDA; *pFIO_INEN &= ~PF_SDA; SSYNC(); } while (0) > +#define I2C_TRISTATE do { *pFIO_DIR &= ~PF_SDA; *pFIO_INEN |= PF_SDA; SSYNC(); } while (0) ... > +#define CFG_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for monitor */ > +#define CFG_MALLOC_LEN (384 * 1024) /* Reserve 384 kB for malloc() (video/spi are big) */ etc. Many lines are much too long... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Peace was the way. -- Kirk, "The City on the Edge of Forever", stardate unknown