mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
sunxi: Also set Auxiliary Ctl SMP bit in SPL
There is no reason not to and this make the #ifdef-ery easier to read. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
dcfa530f09
commit
92bcc6cb1e
1 changed files with 3 additions and 2 deletions
|
@ -94,8 +94,9 @@ void s_init(void)
|
||||||
* access gets messed up (seems cache related) */
|
* access gets messed up (seems cache related) */
|
||||||
setbits_le32(SUNXI_SRAMC_BASE + 0x44, 0x1800);
|
setbits_le32(SUNXI_SRAMC_BASE + 0x44, 0x1800);
|
||||||
#endif
|
#endif
|
||||||
#if !defined CONFIG_SPL_BUILD && (defined CONFIG_MACH_SUN7I || \
|
#if defined CONFIG_MACH_SUN6I || \
|
||||||
defined CONFIG_MACH_SUN6I || defined CONFIG_MACH_SUN8I)
|
defined CONFIG_MACH_SUN7I || \
|
||||||
|
defined CONFIG_MACH_SUN8I
|
||||||
/* Enable SMP mode for CPU0, by setting bit 6 of Auxiliary Ctl reg */
|
/* Enable SMP mode for CPU0, by setting bit 6 of Auxiliary Ctl reg */
|
||||||
asm volatile(
|
asm volatile(
|
||||||
"mrc p15, 0, r0, c1, c0, 1\n"
|
"mrc p15, 0, r0, c1, c0, 1\n"
|
||||||
|
|
Loading…
Reference in a new issue