blob: 677dd7b5efd9007412a5e7047573f02594337ef4 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001// SPDX-License-Identifier: GPL-2.0
2#include <asm/mach/arch.h>
3#include <asm/hardware/cache-l2x0.h>
4#include "smc.h"
5
6static void tango_l2c_write(unsigned long val, unsigned int reg)
7{
8 if (reg == L2X0_CTRL)
9 tango_set_l2_control(val);
10}
11
12static const char *const tango_dt_compat[] = { "sigma,tango4", NULL };
13
14DT_MACHINE_START(TANGO_DT, "Sigma Tango DT")
15 .dt_compat = tango_dt_compat,
16 .l2c_aux_mask = ~0,
17 .l2c_write_sec = tango_l2c_write,
18MACHINE_END