* [U-Boot] [PATCHv2] ARM: socfpga: fix data and tag latency values for pl310 cache controller
@ 2019-03-03 17:02 Dinh Nguyen
2019-03-03 17:31 ` Marek Vasut
0 siblings, 1 reply; 2+ messages in thread
From: Dinh Nguyen @ 2019-03-03 17:02 UTC (permalink / raw)
To: u-boot
The values for the data and tag latency settings on the PL310 caches
controller is an (n-1). For example, the "arm,tag-latency" is specified
as <1 1 1>, so the values that should be written to register should be
0x000. And for the "arm,data-latency" specified as <2 1 1>, the register
value should be 0x010.
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
arch/arm/mach-socfpga/misc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c
index fcf211d62b..ec8339e045 100644
--- a/arch/arm/mach-socfpga/misc.c
+++ b/arch/arm/mach-socfpga/misc.c
@@ -62,8 +62,8 @@ void v7_outer_cache_enable(void)
/* Disable the L2 cache */
clrbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
- writel(0x111, &pl310->pl310_tag_latency_ctrl);
- writel(0x121, &pl310->pl310_data_latency_ctrl);
+ writel(0x0, &pl310->pl310_tag_latency_ctrl);
+ writel(0x10, &pl310->pl310_data_latency_ctrl);
/* enable BRESP, instruction and data prefetch, full line of zeroes */
setbits_le32(&pl310->pl310_aux_ctrl,
--
2.20.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCHv2] ARM: socfpga: fix data and tag latency values for pl310 cache controller
2019-03-03 17:02 [U-Boot] [PATCHv2] ARM: socfpga: fix data and tag latency values for pl310 cache controller Dinh Nguyen
@ 2019-03-03 17:31 ` Marek Vasut
0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2019-03-03 17:31 UTC (permalink / raw)
To: u-boot
On 3/3/19 6:02 PM, Dinh Nguyen wrote:
> The values for the data and tag latency settings on the PL310 caches
> controller is an (n-1). For example, the "arm,tag-latency" is specified
> as <1 1 1>, so the values that should be written to register should be
> 0x000. And for the "arm,data-latency" specified as <2 1 1>, the register
> value should be 0x010.
>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
> ---
> arch/arm/mach-socfpga/misc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c
> index fcf211d62b..ec8339e045 100644
> --- a/arch/arm/mach-socfpga/misc.c
> +++ b/arch/arm/mach-socfpga/misc.c
> @@ -62,8 +62,8 @@ void v7_outer_cache_enable(void)
> /* Disable the L2 cache */
> clrbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
>
> - writel(0x111, &pl310->pl310_tag_latency_ctrl);
> - writel(0x121, &pl310->pl310_data_latency_ctrl);
> + writel(0x0, &pl310->pl310_tag_latency_ctrl);
> + writel(0x10, &pl310->pl310_data_latency_ctrl);
>
> /* enable BRESP, instruction and data prefetch, full line of zeroes */
> setbits_le32(&pl310->pl310_aux_ctrl,
>
Applied, thanks.
--
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-03 17:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-03 17:02 [U-Boot] [PATCHv2] ARM: socfpga: fix data and tag latency values for pl310 cache controller Dinh Nguyen
2019-03-03 17:31 ` Marek Vasut
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.