public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCHv1 0/3] misc: pl310: add a dm cache driver
@ 2019-03-05 19:03 Dinh Nguyen
  2019-03-05 19:03 ` [U-Boot] [RFC PATCHv1 1/3] misc: pl310: add a misc driver for the pl310 cache controller Dinh Nguyen
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Dinh Nguyen @ 2019-03-05 19:03 UTC (permalink / raw)
  To: u-boot

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

-- 
2.20.0

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-03-05 20:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-05 19:03 [U-Boot] [RFC PATCHv1 0/3] misc: pl310: add a dm cache driver Dinh Nguyen
2019-03-05 19:03 ` [U-Boot] [RFC PATCHv1 1/3] misc: pl310: add a misc driver for the pl310 cache controller Dinh Nguyen
2019-03-05 19:19   ` Marek Vasut
2019-03-05 20:07     ` Dinh Nguyen
2019-03-05 20:57       ` Marek Vasut
2019-03-05 19:03 ` [U-Boot] [RFC PATCHv1 2/3] defconfig: socfpga_sockit_defconfig: enable L2X0_CACHE driver Dinh Nguyen
2019-03-05 19:20   ` Marek Vasut
2019-03-05 20:17     ` Dinh Nguyen
2019-03-05 20:57       ` Marek Vasut
2019-03-05 19:03 ` [U-Boot] [RFC PATCHv1 3/3] ARM: socfpga: let the pl310 driver configure the cache settings Dinh Nguyen
2019-03-05 19:20   ` Marek Vasut
2019-03-05 20:13     ` Dinh Nguyen
2019-03-05 20:57       ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox