Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1307065 > unrolled thread

Re: [PATCH v2 3/3] can: sja1000: of: add compatibility with Technologic Systems version

Started byMarc Kleine-Budde <mkl@pengutronix.de>
First post2016-01-12 09:00 +0100
Last post2016-01-12 17:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 3/3] can: sja1000: of: add compatibility with  Technologic Systems version Marc Kleine-Budde <mkl@pengutronix.de> - 2016-01-12 09:00 +0100
    Re: [PATCH v2 3/3] can: sja1000: of: add compatibility with  Technologic Systems version Damien Riegel <damien.riegel@savoirfairelinux.com> - 2016-01-12 17:00 +0100

#1307065 — Re: [PATCH v2 3/3] can: sja1000: of: add compatibility with Technologic Systems version

FromMarc Kleine-Budde <mkl@pengutronix.de>
Date2016-01-12 09:00 +0100
SubjectRe: [PATCH v2 3/3] can: sja1000: of: add compatibility with Technologic Systems version
Message-ID<qQ21X-6gQ-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On 12/24/2015 06:42 PM, Damien Riegel wrote:
> Technologic Systems provides an IP compatible with the SJA1000,
> instantiated in an FPGA. Because of some bus widths issue, access to
> registers is made through a "window" that works like this:
> 
>     base + 0x0: address to read/write
>     base + 0x2: 8-bit register value

Why do you use io{read,write}16 if it's a 8 bit register?

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

[toc] | [next] | [standalone]


#1307577

FromDamien Riegel <damien.riegel@savoirfairelinux.com>
Date2016-01-12 17:00 +0100
Message-ID<qQ9wv-2Zn-19@gated-at.bofh.it>
In reply to#1307065
On Tue, Jan 12, 2016 at 08:55:38AM +0100, Marc Kleine-Budde wrote:
> On 12/24/2015 06:42 PM, Damien Riegel wrote:
> > Technologic Systems provides an IP compatible with the SJA1000,
> > instantiated in an FPGA. Because of some bus widths issue, access to
> > registers is made through a "window" that works like this:
> > 
> >     base + 0x0: address to read/write
> >     base + 0x2: 8-bit register value
> 
> Why do you use io{read,write}16 if it's a 8 bit register?

8-bit is at the IP level, but the bus between the SoC and the FPGA only
supports 16-bit wide access. The point of the window is to convert
between 16-bit and 8-bit access.

Damien

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web