Skip to content

RFC misc: pl310: add a dm cache driver

Dinh Nguyen u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3misc: pl310: add a misc driver for the pl310 cache controllerarch/arm/include/asm/pl310.h drivers/misc/Kconfig drivers/misc/Makefile +1 more+95 -01 reply
1/3misc: pl310: add a misc driver for the pl310 cache controller+0 -01 reply
2/3defconfig: socfpga_sockit_defconfig: enable L2X0_CACHE driverconfigs/socfpga_sockit_defconfig+2 -01 reply
2/3defconfig: socfpga_sockit_defconfig: enable L2X0_CACHE driver+0 -01 reply
3/3ARM: socfpga: let the pl310 driver configure the cache settingsarch/arm/mach-socfpga/misc.c+2 -131 reply
3/3ARM: socfpga: let the pl310 driver configure the cache settings+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC PATCHv1 0/3] misc: pl310: add a dm cache driver

Hello,

I'm soliciting comments of this patchset. The patchset adds a driver for the cache controller(specifically the PL310). This cache controller can be found on many ARMv7 SoCs. I don't think it's used on ARMv8 platforms.

This driver will retrieve the cache properties from the board DTS files and set the corresponding bits in cache controller.

I think we can do something similar without make this driver and placing the file in /arch/arm/cpu/armv7, but wanted to get feedback.

To-dos:
- Add error checking
- Add more cache properties

Thanks,

Dinh Nguyen (3):
misc: pl310: add a misc driver for the pl310 cache controller
defconfig: socfpga_sockit_defconfig: enable L2X0_CACHE driver
ARM: socfpga: let the pl310 driver configure the cache settings

 arch/arm/include/asm/pl310.h     |  3 ++
 arch/arm/mach-socfpga/misc.c     | 15 +-----
 configs/socfpga_sockit_defconfig |  2 +
 drivers/misc/Kconfig             |  7 +++
 drivers/misc/Makefile            |  1 +
 drivers/misc/cache-l2x0.c        | 84 ++++++++++++++++++++++++++++++++
 6 files changed, 99 insertions(+), 13 deletions(-)
 create mode 100644 drivers/misc/cache-l2x0.c
Signature · 1 line
2.20.0