cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

sama5.c (1394B)


      1// SPDX-License-Identifier: GPL-2.0-or-later
      2/*
      3 *  Setup code for SAMA5
      4 *
      5 *  Copyright (C) 2013 Atmel,
      6 *                2013 Ludovic Desroches <ludovic.desroches@atmel.com>
      7 */
      8
      9#include <linux/of.h>
     10#include <linux/of_platform.h>
     11
     12#include <asm/mach/arch.h>
     13#include <asm/mach/map.h>
     14#include <asm/system_misc.h>
     15
     16#include "generic.h"
     17#include "sam_secure.h"
     18
     19static void __init sama5_dt_device_init(void)
     20{
     21	of_platform_default_populate(NULL, NULL, NULL);
     22	sama5_pm_init();
     23}
     24
     25static const char *const sama5_dt_board_compat[] __initconst = {
     26	"atmel,sama5",
     27	NULL
     28};
     29
     30DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
     31	/* Maintainer: Atmel */
     32	.init_machine	= sama5_dt_device_init,
     33	.dt_compat	= sama5_dt_board_compat,
     34MACHINE_END
     35
     36static const char *const sama5_alt_dt_board_compat[] __initconst = {
     37	"atmel,sama5d4",
     38	NULL
     39};
     40
     41DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
     42	/* Maintainer: Atmel */
     43	.init_machine	= sama5_dt_device_init,
     44	.dt_compat	= sama5_alt_dt_board_compat,
     45	.l2c_aux_mask	= ~0UL,
     46MACHINE_END
     47
     48static void __init sama5d2_init(void)
     49{
     50	of_platform_default_populate(NULL, NULL, NULL);
     51	sam_secure_init();
     52	sama5d2_pm_init();
     53}
     54
     55static const char *const sama5d2_compat[] __initconst = {
     56	"atmel,sama5d2",
     57	NULL
     58};
     59
     60DT_MACHINE_START(sama5d2, "Atmel SAMA5")
     61	/* Maintainer: Atmel */
     62	.init_machine	= sama5d2_init,
     63	.dt_compat	= sama5d2_compat,
     64	.l2c_aux_mask	= ~0UL,
     65MACHINE_END