summaryrefslogtreecommitdiffstats
path: root/drivers/cache
Commit message (Collapse)AuthorAgeFilesLines
* dm: cache: add v5l2 cache controller driverRick Chen2019-09-033-0/+196
| | | | | | | | | | | | | Add a v5l2 cache controller driver that is usually found on Andes RISC-V ae350 platform. It will parse the cache settings from the dtb. In this version tag and data ram control timing can be adjusted by the requirement from the dtb. Signed-off-by: Rick Chen <rick@andestech.com> Cc: KC Lin <kclin@andestech.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* dm: cache: Add enable and disable ops for sandbox and testRick Chen2019-09-031-0/+13
| | | | | | | | Add cache enable and disable ops for test coverage. Signed-off-by: Rick Chen <rick@andestech.com> Cc: KC Lin <kclin@andestech.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* dm: cache: Add enable and disable ops for cache uclassRick Chen2019-09-031-0/+20
| | | | | | | | Add cache enable/disable ops to the DM cache uclass driver Signed-off-by: Rick Chen <rick@andestech.com> Cc: KC Lin <kclin@andestech.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* dm: cache: add the pl310 cache controller driverDinh Nguyen2019-05-053-0/+86
| | | | | | | | | | | | | | Add a PL310 cache controller driver that is usually found on ARMv7(32-bit) devices. The driver configures the cache settings that can be found in the device tree files. This initial revision only configures basic settings(data & instruction prefetch, shared-override, data & tag latency). I believe these are the settings that affect performance the most. Comprehensive settings can be done by the OS. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
* dm: cache: Create a uclass for cacheDinh Nguyen2019-05-054-0/+77
The cache UCLASS will be used for configure settings that can be found in a CPU's L2 cache controller. Add a uclass and a test for cache. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>