board-dt.c 920 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2013 STMicroelectronics (R&D) Limited.
  3. * Author(s): Srinivas Kandagatla <srinivas.kandagatla@st.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #include <linux/irq.h>
  10. #include <linux/of_platform.h>
  11. #include <asm/hardware/cache-l2x0.h>
  12. #include <asm/mach/arch.h>
  13. #include "smp.h"
  14. static const char *const stih41x_dt_match[] __initconst = {
  15. "st,stih415",
  16. "st,stih416",
  17. "st,stih407",
  18. "st,stih410",
  19. "st,stih418",
  20. NULL
  21. };
  22. DT_MACHINE_START(STM, "STiH415/416 SoC with Flattened Device Tree")
  23. .dt_compat = stih41x_dt_match,
  24. .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE |
  25. L310_AUX_CTRL_DATA_PREFETCH |
  26. L310_AUX_CTRL_INSTR_PREFETCH |
  27. L2C_AUX_CTRL_WAY_SIZE(4),
  28. .l2c_aux_mask = 0xc0000fff,
  29. .smp = smp_ops(sti_smp_ops),
  30. MACHINE_END