]> git.baikalelectronics.ru Git - kernel.git/commit
can: sja1000: of: add compatibility with Technologic Systems version
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Tue, 12 Jan 2016 22:31:20 +0000 (17:31 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 20 Feb 2016 13:56:00 +0000 (14:56 +0100)
commit20ddfa8160451caf0af0e06aa71f73a11d0de703
tree5fc6840884547349996a7b8bf50e4dbfe4b21029
parenta12e288c0ce4a6e94524e468d8241553ddcf1a64
can: sja1000: of: add compatibility with Technologic Systems version

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

This commit adds a new compatible device, "technologic,sja1000", with
read and write functions using the window mechanism.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/sja1000_platform.c