setup.c 501 B

123456789101112131415161718192021
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <asm/mach/arch.h>
  3. #include <asm/hardware/cache-l2x0.h>
  4. #include "smc.h"
  5. #include "pm.h"
  6. static void tango_l2c_write(unsigned long val, unsigned int reg)
  7. {
  8. if (reg == L2X0_CTRL)
  9. tango_set_l2_control(val);
  10. }
  11. static const char *const tango_dt_compat[] = { "sigma,tango4", NULL };
  12. DT_MACHINE_START(TANGO_DT, "Sigma Tango DT")
  13. .dt_compat = tango_dt_compat,
  14. .l2c_aux_mask = ~0,
  15. .l2c_write_sec = tango_l2c_write,
  16. .init_late = tango_pm_init,
  17. MACHINE_END