public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs
@ 2020-12-25 14:21 Gabriel Somlo
  2020-12-25 14:21 ` [PATCH v3 1/3] drivers/soc/litex: move generic accessors to litex.h Gabriel Somlo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gabriel Somlo @ 2020-12-25 14:21 UTC (permalink / raw)
  To: shorne, mholenko, kgugala
  Cc: linux-kernel, pczarnecki, f.kermarrec, gregkh, gsomlo

This series expands on commit 22447a99c97e ("drivers/soc/litex: add LiteX
SoC Controller driver"), adding support for handling both 8- and 32-bit
LiteX CSR (MMIO) subregisters, on both 32- and 64-bit CPUs.

Notes v3:
	- split into smaller, more self-explanatory patches
	- more detailed commit blurb for "main payload" (3/3) patch
	- eliminate compiler warning on 32-bit architectures

Notes v2:
	- fix typo (s/u32/u64/) in litex_read64().

Notes v1:
	- LITEX_SUBREG_SIZE now provided by Kconfig.
	- it's not LITEX_REG_SIZE, but rather LITEX_SUBREG_ALIGN!
	- move litex_[get|set]_reg() to include/linux/litex.h and mark
	  them as "static inline";
	- redo litex_[read|write][8|16|32|64]() using litex_[get|set]_reg()
	  (compiler should produce code as efficient as hardcoded shifts,
	   but also automatically matching LITEX_SUBREG_SIZE).

Gabriel Somlo (3):
  drivers/soc/litex: move generic accessors to litex.h
  drivers/soc/litex: separate MMIO from subregister offset calculation
  drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs

 drivers/soc/litex/Kconfig          |  12 +++
 drivers/soc/litex/litex_soc_ctrl.c |  76 +--------------
 include/linux/litex.h              | 149 +++++++++++++++++++----------
 3 files changed, 113 insertions(+), 124 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-12-25 21:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-25 14:21 [PATCH v3 0/3] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs Gabriel Somlo
2020-12-25 14:21 ` [PATCH v3 1/3] drivers/soc/litex: move generic accessors to litex.h Gabriel Somlo
2020-12-25 14:21 ` [PATCH v3 2/3] drivers/soc/litex: separate MMIO from subregister offset calculation Gabriel Somlo
2020-12-25 14:21 ` [PATCH v3 3/3] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs Gabriel Somlo
2020-12-25 19:30   ` Gabriel L. Somlo
2020-12-25 21:47   ` Stafford Horne

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