From: Wolfgang Denk Date: Wed, 07 Sep 2011 23:36:23 +0200 Subject: [U-Boot] [PATCH v4] ns16550: change to allow 32 bit access to registers In-Reply-To: <1314953234-3977-1-git-send-email-fovsoft@gmail.com> References: <1314953234-3977-1-git-send-email-fovsoft@gmail.com> Message-ID: <20110907213623.08733140875D@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 Dear Dave Aldridge, In message <1314953234-3977-1-git-send-email-fovsoft@gmail.com> you wrote: > If CONFIG_SYS_NS16550_MEM32 is defined then 32 bit memory > mapped access will be used to read/write the uart registers. ... > +#elif defined(CONFIG_SYS_NS16550_MEM32) && (CONFIG_SYS_NS16550_REG_SIZE > 0) > +#define serial_out(x,y) out_be32(y,x) > +#define serial_in(y) in_be32(y) > +#elif defined(CONFIG_SYS_NS16550_MEM32) && (CONFIG_SYS_NS16550_REG_SIZE < 0) Please see comment to previous version. 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@denx.de For every complex problem, there is a solution that is simple, neat, and wrong. - Mark Twain