]> git.baikalelectronics.ru Git - uboot.git/commit
driver: cache: cache-v5l2: Update memory-mapped scheme to support Gen2 platform
authorYu Chien Peter Lin <peterlin@andestech.com>
Mon, 6 Feb 2023 08:10:46 +0000 (16:10 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 17 Feb 2023 11:07:48 +0000 (19:07 +0800)
commita17fb5669465925c74e7ada7228dfd120bfbcd95
tree6f173568d9d12c2dfc77747f2f3e48144782d080
parentbf2ec5f7b3b45eba54ac3262491c13c3d7282f65
driver: cache: cache-v5l2: Update memory-mapped scheme to support Gen2 platform

The L2C configuration register has MAP field to indicate its version
is v0 (Gen1) or v1 (Gen2) L2-cache. This patch makes the driver
compatible with both memory-mapped scheme.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Rick Chen <rick@andestech.com>
drivers/cache/cache-v5l2.c