[U-Boot] [PATCHv3 3/6] dm: cache: Create a uclass for cache
Simon Glass
sjg at chromium.org
Sat Mar 30 21:18:08 UTC 2019
Hi Dinh,
On Mon, 25 Mar 2019 at 09:20, Dinh Nguyen <dinguyen at kernel.org> wrote:
>
> 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.
>
> Signed-off-by: Dinh Nguyen <dinguyen at kernel.org>
> ---
> v3: Add cache_get_info() to check for non-zero value
> Add comments to cache_info struct
> v2: separate out uclass patch from driver and add test
> ---
> drivers/Kconfig | 2 ++
> drivers/Makefile | 1 +
> drivers/cache/Kconfig | 16 +++++++++++++++
> drivers/cache/Makefile | 3 +++
> drivers/cache/cache-uclass.c | 24 ++++++++++++++++++++++
> drivers/cache/sandbox_cache.c | 34 +++++++++++++++++++++++++++++++
> include/cache.h | 38 +++++++++++++++++++++++++++++++++++
> include/dm/uclass-id.h | 1 +
> test/dm/cache.c | 20 ++++++++++++++++++
> 9 files changed, 139 insertions(+)
> create mode 100644 drivers/cache/Kconfig
> create mode 100644 drivers/cache/Makefile
> create mode 100644 drivers/cache/cache-uclass.c
> create mode 100644 drivers/cache/sandbox_cache.c
> create mode 100644 include/cache.h
> create mode 100644 test/dm/cache.c
Reviewed-by: Simon Glass <sjg at chromium.org>
One nit - make sure that cache.h becomes before dm.h in the include order.
Regards,
Simon
More information about the U-Boot
mailing list