[U-Boot] [PATCH 2/7] zynq: Enable dcache support

Jagan Teki jagannadh.teki at gmail.com
Wed Jan 22 19:27:43 CET 2014


On Wed, Jan 22, 2014 at 2:53 PM, Michal Simek <michal.simek at xilinx.com> wrote:
> Enable dcache.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  arch/arm/cpu/armv7/zynq/cpu.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/cpu/armv7/zynq/cpu.c b/arch/arm/cpu/armv7/zynq/cpu.c
> index 9af340e..c771759 100644
> --- a/arch/arm/cpu/armv7/zynq/cpu.c
> +++ b/arch/arm/cpu/armv7/zynq/cpu.c
> @@ -46,3 +46,11 @@ void reset_cpu(ulong addr)
>         while (1)
>                 ;
>  }
> +
> +#ifndef CONFIG_SYS_DCACHE_OFF
> +void enable_caches(void)
> +{
> +       /* Enable D-cache. I-cache is already enabled in start.S */
> +       dcache_enable();
> +}
> +#endif
> --
> 1.8.2.3

Acked-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>

-- 
Jagan.


More information about the U-Boot mailing list