Skip to content

Fixed ioremap

Matt Fleming linux-sh 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sh: Add fixed ioremap supportarch/sh/include/asm/fixmap.h arch/sh/include/asm/io.h arch/sh/kernel/setup.c +2 more+225 -10 replies
2/3sh: Use ioremap_fixmed to map the SM501 DRAM config registerarch/sh/boards/board-sh7785lcr.c+9 -20 replies
3/3sh: Use ioremap_fixed() to implement SH-5 ioremap()arch/sh/mm/ioremap_64.c+4 -2860 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Fixed ioremap

Hi,

this patch series provides and uses a new early ioremap implementation using fixmaps. ioremap_fixed() is useful when you need to map some physical address range really early in boot. See PATCH 2/3 for an example. It's based on x86's early_ioremap().

Paul, as I don't have an sh64 compiler or board I've been unable to test PATCH 3/3. If you (or anyone else) could give it a go, that'd be great. Also, it's possible that some of the MMU code that is in iroemap_fixed.c is SH4/SH4-A specific. I've done the best I could from code inspection to make sure that it would work on non-SH4 boards, but I could have missed something, and some SH4 quirks may have slipped in.

Matt Fleming (3):
sh: Add fixed ioremap support
sh: Use ioremap_fixmed to map the SM501 DRAM config register
sh: Use ioremap_fixed() to implement SH-5 ioremap()

 arch/sh/boards/board-sh7785lcr.c |   11 ++-
 arch/sh/include/asm/fixmap.h     |    8 +
 arch/sh/include/asm/io.h         |    4 +
 arch/sh/kernel/setup.c           |    2 +
 arch/sh/mm/Makefile              |    3 +-
 arch/sh/mm/ioremap_64.c          |  290 +-------------------------------------
 arch/sh/mm/ioremap_fixed.c       |  209 +++++++++++++++++++++++++++
 7 files changed, 238 insertions(+), 289 deletions(-)
 create mode 100644 arch/sh/mm/ioremap_fixed.c