setup.c 465 B

1234567891011121314151617181920
  1. #include <asm/mach/arch.h>
  2. #include <asm/hardware/cache-l2x0.h>
  3. #include "smc.h"
  4. #include "pm.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. .init_late = tango_pm_init,
  16. MACHINE_END