Re: [PATCH v3 2/4] riscv: lib: introduce a cache_init interface

2021-08-31 Thread Zong Li
On Tue, Aug 31, 2021 at 12:48 PM Sean Anderson wrote: > > On 8/17/21 5:08 AM, Zong Li wrote: > > Add an interface for cache initialization. Each platform can overwrite > > this weak function by their own implementation, such as sifive_cache in > > this patch. > > > > In sifive_cache, it invokes th

Re: [PATCH v3 2/4] riscv: lib: introduce a cache_init interface

2021-08-30 Thread Sean Anderson
On 8/17/21 5:08 AM, Zong Li wrote: Add an interface for cache initialization. Each platform can overwrite this weak function by their own implementation, such as sifive_cache in this patch. In sifive_cache, it invokes the generic cache_enable interface of cache uclass to execute the relative imp

[PATCH v3 2/4] riscv: lib: introduce a cache_init interface

2021-08-17 Thread Zong Li
Add an interface for cache initialization. Each platform can overwrite this weak function by their own implementation, such as sifive_cache in this patch. In sifive_cache, it invokes the generic cache_enable interface of cache uclass to execute the relative implementation in SiFive ccache driver.