Merge branch 'work.const-qstr' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[deliverable/linux.git] / arch / arm / mach-sti / board-dt.c
CommitLineData
65ebcc11
SK
1/*
2 * Copyright (C) 2013 STMicroelectronics (R&D) Limited.
3 * Author(s): Srinivas Kandagatla <srinivas.kandagatla@st.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9
65ebcc11 10#include <linux/irq.h>
28fbb151 11#include <linux/of_platform.h>
65ebcc11
SK
12#include <asm/hardware/cache-l2x0.h>
13#include <asm/mach/arch.h>
14
15#include "smp.h"
16
19c233b7 17static const char *const stih41x_dt_match[] __initconst = {
65ebcc11 18 "st,stih415",
15969b45 19 "st,stih416",
c6594025 20 "st,stih407",
60b3c7ed 21 "st,stih410",
dd548cf9 22 "st,stih418",
65ebcc11
SK
23 NULL
24};
25
7b8e0188
PC
26static void sti_l2_write_sec(unsigned long val, unsigned reg)
27{
28 /*
29 * We can't write to secure registers as we are in non-secure
30 * mode, until we have some SMI service available.
31 */
32}
33
50fdda70 34DT_MACHINE_START(STM, "STi SoC with Flattened Device Tree")
65ebcc11 35 .dt_compat = stih41x_dt_match,
4d6229f6
RK
36 .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE |
37 L310_AUX_CTRL_DATA_PREFETCH |
38 L310_AUX_CTRL_INSTR_PREFETCH |
39 L2C_AUX_CTRL_WAY_SIZE(4),
40 .l2c_aux_mask = 0xc0000fff,
41 .smp = smp_ops(sti_smp_ops),
7b8e0188 42 .l2c_write_sec = sti_l2_write_sec,
65ebcc11 43MACHINE_END
This page took 0.162646 seconds and 5 git commands to generate.