memory: Add Baikal-T1 L2-cache Control Block driver
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Tue, 26 May 2020 12:59:28 +0000 (15:59 +0300)
committerArnd Bergmann <arnd@arndb.de>
Thu, 28 May 2020 12:17:41 +0000 (14:17 +0200)
commit83ca8b3e8f213f49cc68b5c1fbcf88ebb24671eb
treebd2e9caa7cf5294ac4906ac560abdddda5cd3dc3
parent8f93662d8324940e8925a0e492c587dbcf7c7fee
memory: Add Baikal-T1 L2-cache Control Block driver

Baikal-T1 SoC provides a way to tune the MIPS P5600 CM2 L2-cache
performance up. It can be done by changing the L2-RAM Data/Tag/WS
latencies in a dedicated register exposed by the system controller.
The driver added by this commit provides a dts properties-based and
sysfs-based interface for it. The device DT node is supposed to be a
child of Baikal-T1 System Controller node.

Link: https://lore.kernel.org/r/20200526125928.17096-7-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Serge 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
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/memory/Kconfig
drivers/memory/Makefile
drivers/memory/bt1-l2-ctl.c [new file with mode: 0644]