Home | History | Annotate | Line # | Download | only in samsung
exynos_platform.c revision 1.9.2.1
      1  1.9.2.1  christos /* $NetBSD: exynos_platform.c,v 1.9.2.1 2019/06/10 22:05:56 christos Exp $ */
      2      1.1  jmcneill 
      3      1.1  jmcneill /*-
      4      1.1  jmcneill  * Copyright (c) 2017 Jared D. McNeill <jmcneill (at) invisible.ca>
      5      1.1  jmcneill  * All rights reserved.
      6      1.1  jmcneill  *
      7      1.1  jmcneill  * Redistribution and use in source and binary forms, with or without
      8      1.1  jmcneill  * modification, are permitted provided that the following conditions
      9      1.1  jmcneill  * are met:
     10      1.1  jmcneill  * 1. Redistributions of source code must retain the above copyright
     11      1.1  jmcneill  *    notice, this list of conditions and the following disclaimer.
     12      1.1  jmcneill  * 2. Redistributions in binary form must reproduce the above copyright
     13      1.1  jmcneill  *    notice, this list of conditions and the following disclaimer in the
     14      1.1  jmcneill  *    documentation and/or other materials provided with the distribution.
     15      1.1  jmcneill  *
     16      1.1  jmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17      1.1  jmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18      1.1  jmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19      1.1  jmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20      1.1  jmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     21      1.1  jmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     22      1.1  jmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
     23      1.1  jmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     24      1.1  jmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     25      1.1  jmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     26      1.1  jmcneill  * SUCH DAMAGE.
     27      1.1  jmcneill  */
     28      1.1  jmcneill 
     29  1.9.2.1  christos #include "opt_arm_debug.h"
     30  1.9.2.1  christos #include "opt_console.h"
     31      1.1  jmcneill #include "opt_exynos.h"
     32      1.1  jmcneill #include "opt_multiprocessor.h"
     33  1.9.2.1  christos #include "opt_console.h"
     34      1.1  jmcneill 
     35      1.1  jmcneill #include "ukbd.h"
     36      1.1  jmcneill 
     37      1.1  jmcneill #include <sys/cdefs.h>
     38  1.9.2.1  christos __KERNEL_RCSID(0, "$NetBSD: exynos_platform.c,v 1.9.2.1 2019/06/10 22:05:56 christos Exp $");
     39      1.1  jmcneill 
     40      1.1  jmcneill #include <sys/param.h>
     41      1.1  jmcneill #include <sys/bus.h>
     42      1.1  jmcneill #include <sys/cpu.h>
     43      1.1  jmcneill #include <sys/device.h>
     44      1.1  jmcneill #include <sys/termios.h>
     45      1.1  jmcneill 
     46      1.1  jmcneill #include <dev/fdt/fdtvar.h>
     47      1.1  jmcneill 
     48      1.1  jmcneill #include <uvm/uvm_extern.h>
     49      1.1  jmcneill 
     50      1.1  jmcneill #include <machine/bootconfig.h>
     51      1.1  jmcneill #include <arm/cpufunc.h>
     52      1.1  jmcneill 
     53      1.1  jmcneill #include <arm/samsung/exynos_reg.h>
     54      1.1  jmcneill #include <arm/samsung/exynos_var.h>
     55  1.9.2.1  christos #include <arm/samsung/mct_var.h>
     56  1.9.2.1  christos #include <arm/samsung/sscom_reg.h>
     57      1.1  jmcneill 
     58      1.2  jmcneill #include <evbarm/exynos/platform.h>
     59  1.9.2.1  christos #include <evbarm/fdt/machdep.h>
     60      1.1  jmcneill 
     61      1.1  jmcneill #include <arm/fdt/arm_fdtvar.h>
     62      1.1  jmcneill 
     63  1.9.2.1  christos #include <libfdt.h>
     64      1.6  jmcneill 
     65  1.9.2.1  christos void exynos_platform_early_putchar(char);
     66  1.9.2.1  christos 
     67  1.9.2.1  christos #define	EXYNOS5800_PMU_BASE		0x10040000
     68  1.9.2.1  christos #define	EXYNOS5800_PMU_SIZE		0x20000
     69  1.9.2.1  christos #define	 EXYNOS5800_PMU_SWRESET			0x0400
     70  1.9.2.1  christos #define	  EXYNOS5800_PMU_KFC_ETM_RESET(n)	__BIT(20 + (n))
     71  1.9.2.1  christos #define	  EXYNOS5800_PMU_KFC_CORE_RESET(n)	__BIT(8 + (n))
     72  1.9.2.1  christos #define	 EXYNOS5800_PMU_SPARE2			0x0908
     73  1.9.2.1  christos #define	 EXYNOS5800_PMU_SPARE3			0x090c
     74  1.9.2.1  christos #define	  EXYNOS5800_PMU_SWRESET_KFC_SEL	0x3
     75  1.9.2.1  christos #define	 EXYNOS5800_PMU_CORE_CONFIG(n)		(0x2000 + 0x80 * (n))
     76  1.9.2.1  christos #define	 EXYNOS5800_PMU_CORE_STATUS(n)		(0x2004 + 0x80 * (n))
     77  1.9.2.1  christos #define	  EXYNOS5800_PMU_CORE_POWER_EN		0x3
     78  1.9.2.1  christos #define	 EXYNOS5800_PMU_COMMON_CONFIG(n)	(0x2500 + 0x80 * (n))
     79  1.9.2.1  christos #define	  EXYNOS5800_PMU_COMMON_POWER_EN	0x3
     80  1.9.2.1  christos #define	 EXYNOS5800_PMU_COMMON_OPTION(n)	(0x2508 + 0x80 * (n))
     81  1.9.2.1  christos #define	  EXYNOS5800_PMU_USE_L2_COMMON_UP_STATE		__BIT(30)
     82  1.9.2.1  christos #define	  EXYNOS5800_PMU_USE_ARM_CORE_DOWN_STATE	__BIT(29)
     83  1.9.2.1  christos #define	  EXYNOS5800_PMU_AUTO_CORE_DOWN			__BIT(9)
     84  1.9.2.1  christos 
     85  1.9.2.1  christos #define	EXYNOS5800_SYSRAM_BASE		0x02073000
     86  1.9.2.1  christos #define	EXYNOS5800_SYSRAM_SIZE		0x1000
     87  1.9.2.1  christos #define	 EXYNOS5800_SYSRAM_HOTPLUG		0x001c
     88  1.9.2.1  christos 
     89  1.9.2.1  christos static int
     90  1.9.2.1  christos exynos5800_mpstart(void)
     91      1.1  jmcneill {
     92  1.9.2.1  christos 	int ret = 0;
     93  1.9.2.1  christos #if defined(MULTIPROCESSOR)
     94  1.9.2.1  christos 	bus_space_tag_t bst = &armv7_generic_bs_tag;
     95  1.9.2.1  christos 	bus_space_handle_t pmu_bsh, sysram_bsh;
     96  1.9.2.1  christos 	uint64_t mpidr, bp_mpidr;
     97  1.9.2.1  christos 	uint32_t val, started = 0;
     98  1.9.2.1  christos 	u_int cpuindex, n;
     99  1.9.2.1  christos 	int child;
    100  1.9.2.1  christos 
    101  1.9.2.1  christos 	bus_space_map(bst, EXYNOS5800_PMU_BASE, EXYNOS5800_PMU_SIZE, 0, &pmu_bsh);
    102  1.9.2.1  christos 	bus_space_map(bst, EXYNOS5800_SYSRAM_BASE, EXYNOS5800_SYSRAM_SIZE, 0, &sysram_bsh);
    103  1.9.2.1  christos 
    104  1.9.2.1  christos 	const int cpus = OF_finddevice("/cpus");
    105  1.9.2.1  christos 	if (cpus == -1) {
    106  1.9.2.1  christos 		aprint_error("%s: no /cpus node found\n", __func__);
    107  1.9.2.1  christos 		return ret;
    108  1.9.2.1  christos 	}
    109  1.9.2.1  christos 
    110  1.9.2.1  christos 	/* MPIDR affinity levels of boot processor. */
    111  1.9.2.1  christos 	bp_mpidr = cpu_mpidr_aff_read();
    112  1.9.2.1  christos 
    113  1.9.2.1  christos 	/* Setup KFC reset */
    114  1.9.2.1  christos 	bus_space_write_4(bst, pmu_bsh, EXYNOS5800_PMU_SPARE3, EXYNOS5800_PMU_SWRESET_KFC_SEL);
    115  1.9.2.1  christos 
    116  1.9.2.1  christos 	const uint32_t option = EXYNOS5800_PMU_USE_L2_COMMON_UP_STATE |
    117  1.9.2.1  christos 	    EXYNOS5800_PMU_USE_ARM_CORE_DOWN_STATE |
    118  1.9.2.1  christos 	    EXYNOS5800_PMU_AUTO_CORE_DOWN;
    119  1.9.2.1  christos 	val = bus_space_read_4(bst, pmu_bsh, EXYNOS5800_PMU_COMMON_OPTION(0));
    120  1.9.2.1  christos 	bus_space_write_4(bst, pmu_bsh, EXYNOS5800_PMU_COMMON_OPTION(0), val | option);
    121  1.9.2.1  christos 	val = bus_space_read_4(bst, pmu_bsh, EXYNOS5800_PMU_COMMON_OPTION(1));
    122  1.9.2.1  christos 	bus_space_write_4(bst, pmu_bsh, EXYNOS5800_PMU_COMMON_OPTION(1), val | option);
    123  1.9.2.1  christos 
    124  1.9.2.1  christos 	bus_space_write_4(bst, sysram_bsh, EXYNOS5800_SYSRAM_HOTPLUG, KERN_VTOPHYS((vaddr_t)cpu_mpstart));
    125  1.9.2.1  christos 	arm_dsb();
    126  1.9.2.1  christos 
    127  1.9.2.1  christos 	/* Power on clusters */
    128  1.9.2.1  christos 	bus_space_write_4(bst, pmu_bsh, EXYNOS5800_PMU_COMMON_CONFIG(0),
    129  1.9.2.1  christos 	    EXYNOS5800_PMU_COMMON_POWER_EN);
    130  1.9.2.1  christos 	bus_space_write_4(bst, pmu_bsh, EXYNOS5800_PMU_COMMON_CONFIG(1),
    131  1.9.2.1  christos 	    EXYNOS5800_PMU_COMMON_POWER_EN);
    132  1.9.2.1  christos 
    133  1.9.2.1  christos 	/* Boot APs */
    134  1.9.2.1  christos 	cpuindex = 1;
    135  1.9.2.1  christos 	for (child = OF_child(cpus); child; child = OF_peer(child)) {
    136  1.9.2.1  christos 		if (fdtbus_get_reg64(child, 0, &mpidr, NULL) != 0)
    137  1.9.2.1  christos 			continue;
    138  1.9.2.1  christos 
    139  1.9.2.1  christos 		if (mpidr == bp_mpidr)
    140  1.9.2.1  christos 			continue;	/* BP already started */
    141  1.9.2.1  christos 
    142  1.9.2.1  christos 		const u_int cluster = __SHIFTOUT(mpidr, MPIDR_AFF1);
    143  1.9.2.1  christos 		const u_int aff0 = __SHIFTOUT(mpidr, MPIDR_AFF0);
    144  1.9.2.1  christos 		const u_int cpu = cluster * 4 + aff0;
    145  1.9.2.1  christos 
    146  1.9.2.1  christos 		val = bus_space_read_4(bst, pmu_bsh, EXYNOS5800_PMU_CORE_STATUS(cpu));
    147  1.9.2.1  christos 		bus_space_write_4(bst, pmu_bsh, EXYNOS5800_PMU_CORE_CONFIG(cpu),
    148  1.9.2.1  christos 		    EXYNOS5800_PMU_CORE_POWER_EN);
    149  1.9.2.1  christos 
    150  1.9.2.1  christos 		for (n = 0x100000; n > 0; n--) {
    151  1.9.2.1  christos 			val = bus_space_read_4(bst, pmu_bsh, EXYNOS5800_PMU_CORE_STATUS(cpu));
    152  1.9.2.1  christos 			if ((val & EXYNOS5800_PMU_CORE_POWER_EN) == EXYNOS5800_PMU_CORE_POWER_EN) {
    153  1.9.2.1  christos 				started |= __BIT(cpuindex);
    154  1.9.2.1  christos 				break;
    155  1.9.2.1  christos 			}
    156  1.9.2.1  christos 		}
    157  1.9.2.1  christos 		if (n == 0)
    158  1.9.2.1  christos 			aprint_error("cpu%d: WARNING: AP failed to power on\n", cpuindex);
    159  1.9.2.1  christos 
    160  1.9.2.1  christos 		if (cluster == 1 && __SHIFTOUT(bp_mpidr, MPIDR_AFF1) == 1) {
    161  1.9.2.1  christos 			while (bus_space_read_4(bst, pmu_bsh, EXYNOS5800_PMU_SPARE2) == 0)
    162  1.9.2.1  christos 				;
    163  1.9.2.1  christos 			bus_space_write_4(bst, pmu_bsh, EXYNOS5800_PMU_SWRESET,
    164  1.9.2.1  christos 			    EXYNOS5800_PMU_KFC_CORE_RESET(aff0) |
    165  1.9.2.1  christos 			    EXYNOS5800_PMU_KFC_ETM_RESET(aff0));
    166  1.9.2.1  christos 		}
    167  1.9.2.1  christos 
    168  1.9.2.1  christos 		/* Wait for AP to start */
    169  1.9.2.1  christos 		for (n = 0x100000; n > 0; n--) {
    170  1.9.2.1  christos 			membar_consumer();
    171  1.9.2.1  christos 			if (arm_cpu_hatched & __BIT(cpuindex))
    172  1.9.2.1  christos 				break;
    173  1.9.2.1  christos 		}
    174  1.9.2.1  christos 		if (n == 0) {
    175  1.9.2.1  christos 			ret++;
    176  1.9.2.1  christos 			aprint_error("cpu%d: WARNING: AP failed to start\n", cpuindex);
    177  1.9.2.1  christos 		}
    178      1.1  jmcneill 
    179  1.9.2.1  christos 		cpuindex++;
    180  1.9.2.1  christos 	}
    181  1.9.2.1  christos 
    182  1.9.2.1  christos 	bus_space_unmap(bst, sysram_bsh, EXYNOS5800_SYSRAM_SIZE);
    183  1.9.2.1  christos 	bus_space_unmap(bst, pmu_bsh, EXYNOS5800_PMU_SIZE);
    184  1.9.2.1  christos #endif
    185  1.9.2.1  christos 	return ret;
    186      1.1  jmcneill }
    187      1.1  jmcneill 
    188  1.9.2.1  christos static struct of_compat_data mp_compat_data[] = {
    189  1.9.2.1  christos 	{ "samsung,exynos5800",		(uintptr_t)exynos5800_mpstart },
    190  1.9.2.1  christos 	{ NULL }
    191  1.9.2.1  christos };
    192      1.2  jmcneill 
    193  1.9.2.1  christos static int
    194  1.9.2.1  christos exynos_platform_mpstart(void)
    195      1.1  jmcneill {
    196  1.9.2.1  christos 
    197  1.9.2.1  christos 	int (*mp_start)(void) = NULL;
    198  1.9.2.1  christos 
    199  1.9.2.1  christos 	const struct of_compat_data *cd = of_search_compatible(OF_finddevice("/"), mp_compat_data);
    200  1.9.2.1  christos 	if (cd)
    201  1.9.2.1  christos 		mp_start = (int (*)(void))cd->data;
    202  1.9.2.1  christos 
    203  1.9.2.1  christos 	if (mp_start)
    204  1.9.2.1  christos 		return mp_start();
    205  1.9.2.1  christos 
    206  1.9.2.1  christos 	return 0;
    207      1.1  jmcneill }
    208      1.1  jmcneill 
    209      1.1  jmcneill static void
    210      1.1  jmcneill exynos_platform_init_attach_args(struct fdt_attach_args *faa)
    211      1.1  jmcneill {
    212      1.1  jmcneill 	extern struct bus_space armv7_generic_bs_tag;
    213      1.1  jmcneill 	extern struct bus_space armv7_generic_a4x_bs_tag;
    214      1.9       ryo 	extern struct arm32_bus_dma_tag arm_generic_dma_tag;
    215      1.1  jmcneill 
    216      1.1  jmcneill 	faa->faa_bst = &armv7_generic_bs_tag;
    217      1.1  jmcneill 	faa->faa_a4x_bst = &armv7_generic_a4x_bs_tag;
    218      1.9       ryo 	faa->faa_dmat = &arm_generic_dma_tag;
    219      1.1  jmcneill }
    220      1.1  jmcneill 
    221  1.9.2.1  christos void
    222      1.1  jmcneill exynos_platform_early_putchar(char c)
    223      1.1  jmcneill {
    224  1.9.2.1  christos #ifdef CONSADDR
    225  1.9.2.1  christos #define CONSADDR_VA	(CONSADDR - EXYNOS_CORE_PBASE + EXYNOS_CORE_VBASE)
    226      1.2  jmcneill 
    227  1.9.2.1  christos 	volatile uint32_t *uartaddr = cpu_earlydevice_va_p() ?
    228  1.9.2.1  christos 	    (volatile uint32_t *)CONSADDR_VA :
    229  1.9.2.1  christos 	    (volatile uint32_t *)CONSADDR;
    230  1.9.2.1  christos 
    231  1.9.2.1  christos 	while ((uartaddr[SSCOM_UFSTAT / 4] & UFSTAT_TXFULL) != 0)
    232  1.9.2.1  christos 		;
    233  1.9.2.1  christos 
    234  1.9.2.1  christos 	uartaddr[SSCOM_UTXH / 4] = c;
    235      1.4  jmcneill #endif
    236      1.1  jmcneill }
    237      1.1  jmcneill 
    238      1.1  jmcneill static void
    239      1.1  jmcneill exynos_platform_device_register(device_t self, void *aux)
    240      1.1  jmcneill {
    241      1.1  jmcneill 	exynos_device_register(self, aux);
    242      1.1  jmcneill }
    243      1.1  jmcneill 
    244      1.1  jmcneill static void
    245      1.6  jmcneill exynos5_platform_reset(void)
    246      1.1  jmcneill {
    247      1.6  jmcneill 	bus_space_tag_t bst = &armv7_generic_bs_tag;
    248      1.6  jmcneill 	bus_space_handle_t bsh;
    249      1.6  jmcneill 
    250  1.9.2.1  christos 	bus_space_map(bst, EXYNOS5800_PMU_BASE + EXYNOS5800_PMU_SWRESET, 4, 0, &bsh);
    251      1.6  jmcneill 	bus_space_write_4(bst, bsh, 0, 1);
    252      1.1  jmcneill }
    253      1.1  jmcneill 
    254  1.9.2.1  christos static u_int
    255  1.9.2.1  christos exynos_platform_uart_freq(void)
    256  1.9.2.1  christos {
    257  1.9.2.1  christos 	return EXYNOS_UART_FREQ;
    258  1.9.2.1  christos }
    259  1.9.2.1  christos 
    260  1.9.2.1  christos 
    261  1.9.2.1  christos #if defined(SOC_EXYNOS4)
    262  1.9.2.1  christos static const struct pmap_devmap *
    263  1.9.2.1  christos exynos4_platform_devmap(void)
    264  1.9.2.1  christos {
    265  1.9.2.1  christos 	static const struct pmap_devmap devmap[] = {
    266  1.9.2.1  christos 		DEVMAP_ENTRY(EXYNOS_CORE_VBASE,
    267  1.9.2.1  christos 			     EXYNOS_CORE_PBASE,
    268  1.9.2.1  christos 			     EXYNOS4_CORE_SIZE),
    269  1.9.2.1  christos 		DEVMAP_ENTRY(EXYNOS4_AUDIOCORE_VBASE,
    270  1.9.2.1  christos 			     EXYNOS4_AUDIOCORE_PBASE,
    271  1.9.2.1  christos 			     EXYNOS4_AUDIOCORE_SIZE),
    272  1.9.2.1  christos 		DEVMAP_ENTRY_END
    273  1.9.2.1  christos 	};
    274  1.9.2.1  christos 
    275  1.9.2.1  christos 	return devmap;
    276  1.9.2.1  christos }
    277  1.9.2.1  christos 
    278      1.1  jmcneill static void
    279  1.9.2.1  christos exynos4_platform_bootstrap(void)
    280      1.1  jmcneill {
    281  1.9.2.1  christos 
    282  1.9.2.1  christos 	exynos_bootstrap(4);
    283  1.9.2.1  christos 
    284  1.9.2.1  christos #if defined(MULTIPROCESSOR)
    285  1.9.2.1  christos 	arm_cpu_max = 1 + __SHIFTOUT(armreg_l2ctrl_read(), L2CTRL_NUMCPU);
    286  1.9.2.1  christos #endif
    287      1.1  jmcneill }
    288      1.1  jmcneill 
    289  1.9.2.1  christos static const struct arm_platform exynos4_platform = {
    290  1.9.2.1  christos 	.ap_devmap = exynos4_platform_devmap,
    291  1.9.2.1  christos //	.ap_mpstart = exynos4_mpstart,
    292  1.9.2.1  christos 	.ap_bootstrap = exynos4_platform_bootstrap,
    293  1.9.2.1  christos 	.ap_init_attach_args = exynos_platform_init_attach_args,
    294  1.9.2.1  christos 	.ap_device_register = exynos_platform_device_register,
    295  1.9.2.1  christos 	.ap_reset = exynos5_platform_reset,
    296  1.9.2.1  christos 	.ap_delay = mct_delay,
    297  1.9.2.1  christos 	.ap_uart_freq = exynos_platform_uart_freq,
    298  1.9.2.1  christos };
    299  1.9.2.1  christos 
    300  1.9.2.1  christos ARM_PLATFORM(exynos4, "samsung,exynos4", &exynos4_platform);
    301  1.9.2.1  christos #endif
    302  1.9.2.1  christos 
    303  1.9.2.1  christos 
    304  1.9.2.1  christos #if defined(SOC_EXYNOS5)
    305  1.9.2.1  christos static const struct pmap_devmap *
    306  1.9.2.1  christos exynos5_platform_devmap(void)
    307      1.1  jmcneill {
    308  1.9.2.1  christos 	static const struct pmap_devmap devmap[] = {
    309  1.9.2.1  christos 		DEVMAP_ENTRY(EXYNOS_CORE_VBASE,
    310  1.9.2.1  christos 			     EXYNOS_CORE_PBASE,
    311  1.9.2.1  christos 			     EXYNOS5_CORE_SIZE),
    312  1.9.2.1  christos 		DEVMAP_ENTRY(EXYNOS5_AUDIOCORE_VBASE,
    313  1.9.2.1  christos 			     EXYNOS5_AUDIOCORE_PBASE,
    314  1.9.2.1  christos 			     EXYNOS5_AUDIOCORE_SIZE),
    315  1.9.2.1  christos 		DEVMAP_ENTRY(EXYNOS5_SYSRAM_VBASE,
    316  1.9.2.1  christos 			     EXYNOS5_SYSRAM_PBASE,
    317  1.9.2.1  christos 			     EXYNOS5_SYSRAM_SIZE),
    318  1.9.2.1  christos 		DEVMAP_ENTRY_END
    319  1.9.2.1  christos 	};
    320  1.9.2.1  christos 
    321  1.9.2.1  christos 	return devmap;
    322  1.9.2.1  christos }
    323  1.9.2.1  christos 
    324  1.9.2.1  christos static void
    325  1.9.2.1  christos exynos5_platform_bootstrap(void)
    326  1.9.2.1  christos {
    327  1.9.2.1  christos 
    328  1.9.2.1  christos 	exynos_bootstrap(5);
    329  1.9.2.1  christos 
    330  1.9.2.1  christos 	arm_fdt_cpu_bootstrap();
    331      1.1  jmcneill }
    332      1.1  jmcneill 
    333      1.1  jmcneill static const struct arm_platform exynos5_platform = {
    334  1.9.2.1  christos 	.ap_devmap = exynos5_platform_devmap,
    335  1.9.2.1  christos 	.ap_bootstrap = exynos5_platform_bootstrap,
    336  1.9.2.1  christos 	.ap_mpstart = exynos_platform_mpstart,
    337  1.9.2.1  christos 	.ap_init_attach_args = exynos_platform_init_attach_args,
    338  1.9.2.1  christos 	.ap_device_register = exynos_platform_device_register,
    339  1.9.2.1  christos 	.ap_reset = exynos5_platform_reset,
    340  1.9.2.1  christos 	.ap_delay = mct_delay,
    341  1.9.2.1  christos 	.ap_uart_freq = exynos_platform_uart_freq,
    342      1.1  jmcneill };
    343      1.1  jmcneill 
    344      1.1  jmcneill ARM_PLATFORM(exynos5, "samsung,exynos5", &exynos5_platform);
    345  1.9.2.1  christos #endif
    346