• Serge Semin's avatar
    bus: Add Baikal-T1 APB-bus driver · 8f93662d
    Serge Semin authored
    Baikal-T1 AXI-APB bridge is used to access the SoC subsystem CSRs.
    IO requests are routed to this bus by means of the DW AMBA 3 AXI
    Interconnect. In case if an attempted APB transaction stays with no
    response for a pre-defined time an interrupt occurs and the bus gets
    freed for a next operation. This driver provides the interrupt handler
    to detect the erroneous address, prints an error message about the
    address fault, updates an errors counter. The counter and the APB-bus
    operations timeout can be accessed via corresponding sysfs nodes.
    A dedicated sysfs-node can be also used to artificially cause the
    bus errors described above.
    
    [arnd: fix build warnings for missing includes and wrong return types]
    
    Link: https://lore.kernel.org/r/20200526125928.17096-6-Sergey.Semin@baikalelectronics.ruSigned-off-by: default avatarSerge Semin <Sergey.Semin@baikalelectronics.ru>
    Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
    Cc: Paul Burton <paulburton@kernel.org>
    Cc: Olof Johansson <olof@lixom.net>
    Cc: Rob Herring <robh+dt@kernel.org>
    Cc: linux-mips@vger.kernel.org
    Cc: soc@kernel.org
    Cc: devicetree@vger.kernel.org
    Reported-by: default avatarkbuild test robot <lkp@intel.com>
    Reported-by: default avatarkbuild test robot <lkp@intel.com>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    8f93662d
Kconfig 7.6 KB