]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitdfb86c0d5a9d1c068954d776bf66e3d0b27beb68
tree5fc6840884547349996a7b8bf50e4dbfe4b21029
parent83c26850fc36014f5c13a1b2bf460bfa200af8c9
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