summaryrefslogtreecommitdiffstats
path: root/lib/smp_processor_id.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2022-05-09 19:56:09 +0200
committerMark Brown <broonie@kernel.org>2022-05-16 13:59:16 +0200
commit9da06d7bdec7dad8018c23b180e410ef2e7a4367 (patch)
tree2114ecf84384a9bf24965c07fdf919fc079ebd10 /lib/smp_processor_id.c
parentspi: spi-mem: Convert Aspeed SMC driver to spi-mem (diff)
downloadlinux-9da06d7bdec7dad8018c23b180e410ef2e7a4367.tar.xz
linux-9da06d7bdec7dad8018c23b180e410ef2e7a4367.zip
spi: aspeed: Add support for direct mapping
Use direct mapping to read the flash device contents. This operation mode is called "Command mode" on Aspeed SoC SMC controllers. It uses a Control Register for the settings to apply when a memory operation is performed on the flash device mapping window. If the window is not big enough, fall back to the "User mode" to perform the read. Direct mapping for writes will come later when validated. Reviewed-by: Joel Stanley <joel@jms.id.au> Tested-by: Joel Stanley <joel@jms.id.au> Tested-by: Tao Ren <rentao.bupt@gmail.com> Tested-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> Link: https://lore.kernel.org/r/20220509175616.1089346-5-clg@kaod.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/smp_processor_id.c')
0 files changed, 0 insertions, 0 deletions