Re: [U-Boot] [PATCHv1 1/4] ARM: pl310: Add macro's for handling tag and data latency mask

2019-03-08 Thread Marek Vasut
On 3/8/19 5:16 PM, Dinh Nguyen wrote:
> Add the PL310 macros for latency control setup, read and write bits.
> 
> Signed-off-by: Dinh Nguyen 
> ---
>  arch/arm/include/asm/pl310.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/include/asm/pl310.h b/arch/arm/include/asm/pl310.h
> index b83978b1cc..f69e9e45f8 100644
> --- a/arch/arm/include/asm/pl310.h
> +++ b/arch/arm/include/asm/pl310.h
> @@ -18,6 +18,9 @@
>  #define L310_SHARED_ATT_OVERRIDE_ENABLE  (1 << 22)
>  #define L310_AUX_CTRL_DATA_PREFETCH_MASK (1 << 28)
>  #define L310_AUX_CTRL_INST_PREFETCH_MASK (1 << 29)
> +#define L310_LATENCY_CTRL_SETUP(n)   ((n) << 0)
> +#define L310_LATENCY_CTRL_RD(n)  ((n) << 4)
> +#define L310_LATENCY_CTRL_WR(n)  ((n) << 8)
>  
>  #define L2X0_CACHE_ID_PART_MASK (0xf << 6)
>  #define L2X0_CACHE_ID_PART_L310 (3 << 6)
> 

Reviewed-by: Marek Vasut 

-- 
Best regards,
Marek Vasut
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCHv1 1/4] ARM: pl310: Add macro's for handling tag and data latency mask

2019-03-08 Thread Dinh Nguyen
Add the PL310 macros for latency control setup, read and write bits.

Signed-off-by: Dinh Nguyen 
---
 arch/arm/include/asm/pl310.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/include/asm/pl310.h b/arch/arm/include/asm/pl310.h
index b83978b1cc..f69e9e45f8 100644
--- a/arch/arm/include/asm/pl310.h
+++ b/arch/arm/include/asm/pl310.h
@@ -18,6 +18,9 @@
 #define L310_SHARED_ATT_OVERRIDE_ENABLE(1 << 22)
 #define L310_AUX_CTRL_DATA_PREFETCH_MASK   (1 << 28)
 #define L310_AUX_CTRL_INST_PREFETCH_MASK   (1 << 29)
+#define L310_LATENCY_CTRL_SETUP(n) ((n) << 0)
+#define L310_LATENCY_CTRL_RD(n)((n) << 4)
+#define L310_LATENCY_CTRL_WR(n)((n) << 8)
 
 #define L2X0_CACHE_ID_PART_MASK (0xf << 6)
 #define L2X0_CACHE_ID_PART_L310 (3 << 6)
-- 
2.20.0

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot