setup.c 420 B

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