Message ID | 1416896510-24612-1-git-send-email-khilman@kernel.org |
---|---|
State | New |
Headers | show |
On Mon, Jun 15, 2015 at 3:49 PM, Przemyslaw Marczak <p.marczak@samsung.com> wrote: > Hello Krzysztof, > > > On 06/14/2015 10:56 AM, Krzysztof Kozłowski wrote: <snip> > I'm trying port the hardkernel's SPL to the mainline U-Boot at present. The > mainline SPL is implemented for E5420 and E5800. But there are few > differences: > - different DRAM > - different clocks > - different boot core (peach-pi boots from A15) > - bl2 signature > - hdk's SPL uses smc calls > ... and some more. This is really good news! Would this work leave CCI control to Linux so that we may use MCPM to manage cpu and cluster OFF? > The BL1 keeps signature key and some part of code, but it's code is > proprietary - but we should be able to setup the secondary cores in BL2. > > When, I get the basic setup working, then I'm going to focus on the > secondary CPU's init. I don't have the documentation for iROM code, so > everything takes a while. > > If you looking for the lowlevel code, which is executed after wakeup, > please check this : > https://github.com/hardkernel/u-boot/blob/odroidxu3-v2012.07/board/samsung/smdk5422/lowlevel_init.S > > The 'lowlevel_init' label is always executed on boot. -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-exynos/mcpm-exynos.c b/arch/arm/mach-exynos/mcpm-exynos.c index b0d3c2e876fb..612a770d5284 100644 --- a/arch/arm/mach-exynos/mcpm-exynos.c +++ b/arch/arm/mach-exynos/mcpm-exynos.c @@ -88,6 +88,8 @@ static int exynos_power_up(unsigned int cpu, unsigned int cluster) cluster >= EXYNOS5420_NR_CLUSTERS) return -EINVAL; + pmu_raw_writel(0x1, S5P_PMU_SPARE2); + /* * Since this is called with IRQs enabled, and no arch_spin_lock_irq * variant exists, we need to disable IRQs manually here. diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h index b5f4406fc1b5..70d9eb5a4fcc 100644 --- a/arch/arm/mach-exynos/regs-pmu.h +++ b/arch/arm/mach-exynos/regs-pmu.h @@ -49,6 +49,7 @@ #define S5P_INFORM5 0x0814 #define S5P_INFORM6 0x0818 #define S5P_INFORM7 0x081C +#define S5P_PMU_SPARE2 0x0908 #define S5P_PMU_SPARE3 0x090C #define EXYNOS_IROM_DATA2 0x0988