From: Tony Lindgren <tony@atomide.com>
To: "Syed Mohammed, Khasim" <x0khasim@ti.com>
Cc: Linux OMAP <linux-omap-open-source@linux.omap.com>
Subject: Re: [PATCH 7 / 12] Proc V7 updating for OMAP3
Date: Thu, 14 Jun 2007 04:47:56 -0700 [thread overview]
Message-ID: <20070614114755.GG28804@atomide.com> (raw)
In-Reply-To: <9C23CDD79DA20A479D4615857B2E2C47011E6096@dlee13.ent.ti.com>
* Syed Mohammed, Khasim <x0khasim@ti.com> [070613 22:04]:
> Accessing Trust Zone for OMAP3
>
> Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
>
> Files:
> arm/mm/proc-v7.S
> =======================================================================
> diff -purN linux-omap/arch/arm/mm/proc-v7.S val_3430_GIT/arch/arm/mm/proc-v7.S
> --- linux-omap/arch/arm/mm/proc-v7.S 2007-06-12 15:08:45.000000000 -0500
> +++ val_3430_GIT/arch/arm/mm/proc-v7.S 2007-06-12 15:12:08.000000000 -0500
> @@ -176,6 +176,38 @@ __v7_setup:
> mcr p15, 0, r4, c2, c0, 1 @ load TTB1
> mov r10, #0x1f @ domains 0, 1 = manager
> mcr p15, 0, r10, c3, c0, 0 @ load domain access register
> +
> +#if defined(CONFIG_ARCH_OMAP3)
> +
> +#ifndef CONFIG_CPU_L2CACHE_DISABLE
> + @ L2 cache is enabled in the aux control register
> + mrc p15, 0, r0, c1, c0, 1
> + orr r0, r0, #0x13 @ speculative+enable+no-alais protection
> + mov r10, r12 @ r12 is this function's sp. back it up.
> + mov r12, #0x3 @ AUXCR service
> + .word 0xE1600070 @ Call OMAP SMI monitor service
> + mov r12, r10 @ restore r12.
> +#endif
> + adr r5, v7_crval
> + ldmia r5, {r5, r6}
> + mrc p15, 0, r0, c1, c0, 0 @ read control register
> + bic r0, r0, r5 @ clear bits them
> + orr r0, r0, r6 @ set them
> + mov pc, lr @ return to head.S:__ret
> +
> + /*
> + * TAT N EV F H R
> + * .EFR M.EE .UI. ..A. .RVI Z... B... .CAM
> + * 0xxx x0xx 11x0 01x1 0xxx x000 0111 1xxx < forced typical
> + * r rr rr r rr r r rrr rrrr r < always read only
> + * .000 ..00 ..0. ..0. .011 1... .... .101 < we want
> + */
> + .type v7_crval, #object
> +v7_crval:
> + crval clear=0x7322f006, mmuset=0x00003805, ucset=0x00001804
> +
> +#else
> +
> #ifndef CONFIG_CPU_L2CACHE_DISABLE
> @ L2 cache configuration in the L2 aux control register
> mrc p15, 1, r10, c9, c0, 2
> @@ -205,6 +237,7 @@ cr1_clear:
> .word 0x0120c302
> cr1_set:
> .word 0x00c0387d
> +#endif
>
> __v7_setup_stack:
> .space 4 * 11 @ 11 registers
This one should also be posted to linux-arm-kernel list for comments.
Tony
next prev parent reply other threads:[~2007-06-14 11:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-14 5:01 [PATCH 7 / 12] Proc V7 updating for OMAP3 Syed Mohammed, Khasim
2007-06-14 11:47 ` Tony Lindgren [this message]
2007-06-14 19:48 ` Syed Mohammed, Khasim
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=20070614114755.GG28804@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=x0khasim@ti.com \
/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 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.