board-dt.c 763 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2013 STMicroelectronics (R&D) Limited.
  4. * Author(s): Srinivas Kandagatla <[email protected]>
  5. */
  6. #include <linux/irq.h>
  7. #include <linux/of_platform.h>
  8. #include <asm/hardware/cache-l2x0.h>
  9. #include <asm/mach/arch.h>
  10. #include "smp.h"
  11. static const char *const stih41x_dt_match[] __initconst = {
  12. "st,stih415",
  13. "st,stih416",
  14. "st,stih407",
  15. "st,stih410",
  16. "st,stih418",
  17. NULL
  18. };
  19. DT_MACHINE_START(STM, "STi SoC with Flattened Device Tree")
  20. .dt_compat = stih41x_dt_match,
  21. .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE |
  22. L310_AUX_CTRL_DATA_PREFETCH |
  23. L310_AUX_CTRL_INSTR_PREFETCH |
  24. L2C_AUX_CTRL_WAY_SIZE(4),
  25. .l2c_aux_mask = 0xc0000fff,
  26. .smp = smp_ops(sti_smp_ops),
  27. MACHINE_END