]> 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)
commit24724bffb68c764e43cfd4d2962b3462bc648c3f
tree5fc6840884547349996a7b8bf50e4dbfe4b21029
parent3d092b33be0e0a037d0bcd4d6c189ae5886d91bf
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