setup.c 456 B

123456789101112131415161718
  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. static void tango_l2c_write(unsigned long val, unsigned int reg)
  6. {
  7. if (reg == L2X0_CTRL)
  8. tango_set_l2_control(val);
  9. }
  10. static const char *const tango_dt_compat[] = { "sigma,tango4", NULL };
  11. DT_MACHINE_START(TANGO_DT, "Sigma Tango DT")
  12. .dt_compat = tango_dt_compat,
  13. .l2c_aux_mask = ~0,
  14. .l2c_write_sec = tango_l2c_write,
  15. MACHINE_END