From: Wolfgang Denk Date: Thu, 05 Feb 2009 13:29:12 +0100 Subject: [U-Boot] [PATCH 4/9] A driver for the S6E63D6 SPI display controller from Samsung In-Reply-To: References: <20090204223346.GB31498@game.jcrosoft.org> Message-ID: <20090205122912.503188322908@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 Guennadi Liakhovetski, In message you wrote: > On Wed, 4 Feb 2009, Jean-Christophe PLAGNIOL-VILLARD wrote: > > > On 17:59 Wed 04 Feb , Guennadi Liakhovetski wrote: > > > + > > > +/* > > > + * Each transfer is performed as: > > > + * 1. chip-select active > > > + * 2. send 8-bit start code > > > + * 3. send 16-bit data > > > + * 4. chip-select inactive > > > + */ > > > +static int send_word(struct spi_slave *spi, u8 rs, u16 data) > > > +{ > > > + u32 buf8 = 0x70 | ID | (rs & 2); > > why? > > That's how the start byte looks like: > > 01110 > > rs is 0 for index or 1 for data, and R/W is 0 for write. Good. Now add this as comment, please? 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 Question: How does one get fresh air into a Russian church? Answer: One clicks on an icon, and a window opens!