From: HeungJun, Kim <riverful@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Move L2-cache enable/disable function to soc dependent code
Date: Sat, 30 May 2009 20:34:31 +0900 [thread overview]
Message-ID: <4a2119ca.20018e0a.51f2.2ee2@mx.google.com> (raw)
Ok. Jean.
Very thanks to review.
I have a question about one thing you pointed out.
===
as it's nearly only in asm implement it in assembly olny will be better
> + /* ES2 onwards we can disable/enable L2 ourselves */
> + if (get_cpu_rev() >= CPU_3XX_ES20) {
> + __asm__ __volatile__("mrc p15, 0, %0, c1, c0, 1":"=r"(i));
> + __asm__ __volatile__("orr %0, %0, #0x2":"=r"(i));
===
I think you tell me the position is in the assembly code like lowlevel_init.S. Is it right?
Can you explain more detailed about this part, plz? :)
If my thinking is alright, I'll re-update this patch soon.
Best Regards,
Riverful
----- ?? ??? -----
?? ??: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
?? ??: 2009? 5? 30? ??? ?? 6:46
?? ??: Kim, Heung Jun <riverful@gmail.com>
??: u-boot at lists.denx.de; Dirk Behme <dirk.behme@googlemail.com>; riverful.kim at samsung.com; inki.dae at samsung.com; mk7.kang at samsung.com; kyungmin.park at samsung.com; bhmin at samsung.com; jh106.choi at samsung.com
??: Re: [U-Boot] [PATCH] Move L2-cache enable/disable function to soc dependent code
On 20:27 Fri 29 May , Kim, Heung Jun wrote:
> The L2 cache enable/disable function in the cpu/arm_cortexa8/cpu.c moved
> to cpu/arm_cortexa8/omap3/cache.c.
please mention omap3 in the title too
>
> Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
> ---
> + * (C) Copyright 2002
> + * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +/*
> + * L2 cache specific code
> + */
> +
> +#include <common.h>
> +#include <command.h>
> +#include <asm/arch/sys_proto.h>
> +
> +void l2_cache_enable()
> +{
> + unsigned long i;
> + volatile unsigned int j;
> +
as it's nearly only in asm implement it in assembly olny will be better
> + /* ES2 onwards we can disable/enable L2 ourselves */
> + if (get_cpu_rev() >= CPU_3XX_ES20) {
> + __asm__ __volatile__("mrc p15, 0, %0, c1, c0, 1":"=r"(i));
> + __asm__ __volatile__("orr %0, %0, #0x2":"=r"(i));
<snip>
> diff --git a/include/asm-arm/arch-omap3/sys_proto.h
> b/include/asm-arm/arch-omap3/sys_proto.h
> index 7361d08..4f43aef 100644
> --- a/include/asm-arm/arch-omap3/sys_proto.h
> +++ b/include/asm-arm/arch-omap3/sys_proto.h
> @@ -63,5 +63,7 @@ void make_cs1_contiguous(void);
> void omap_nand_switch_ecc(int);
> void power_init_r(void);
> void dieid_num_r(void);
> +void l2_cache_disable();
> +void l2_cache_enable();
please move these two funtcions in
include/asm-arm/cache.h
please rebase it against the u-boot-arm/next
Best Regards,
J.
next reply other threads:[~2009-05-30 11:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-30 11:34 HeungJun, Kim [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-05-29 11:27 [U-Boot] [PATCH] Move L2-cache enable/disable function to soc dependent code Kim, Heung Jun
2009-05-29 21:46 ` Jean-Christophe PLAGNIOL-VILLARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4a2119ca.20018e0a.51f2.2ee2@mx.google.com \
--to=riverful@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox