Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | #include <asm/mach/arch.h> |
| 3 | #include <asm/hardware/cache-l2x0.h> |
| 4 | #include "smc.h" |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 5 | #include "pm.h" |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | |
| 7 | static void tango_l2c_write(unsigned long val, unsigned int reg) |
| 8 | { |
| 9 | if (reg == L2X0_CTRL) |
| 10 | tango_set_l2_control(val); |
| 11 | } |
| 12 | |
| 13 | static const char *const tango_dt_compat[] = { "sigma,tango4", NULL }; |
| 14 | |
| 15 | DT_MACHINE_START(TANGO_DT, "Sigma Tango DT") |
| 16 | .dt_compat = tango_dt_compat, |
| 17 | .l2c_aux_mask = ~0, |
| 18 | .l2c_write_sec = tango_l2c_write, |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 19 | .init_late = tango_pm_init, |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 20 | MACHINE_END |