berlin.c 909 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Device Tree support for Marvell Berlin SoCs.
  3. *
  4. * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
  5. *
  6. * based on GPL'ed 2.6 kernel sources
  7. * (c) Marvell International Ltd.
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #include <linux/init.h>
  14. #include <linux/io.h>
  15. #include <linux/kernel.h>
  16. #include <linux/of_platform.h>
  17. #include <asm/hardware/cache-l2x0.h>
  18. #include <asm/mach/arch.h>
  19. static const char * const berlin_dt_compat[] = {
  20. "marvell,berlin",
  21. NULL,
  22. };
  23. DT_MACHINE_START(BERLIN_DT, "Marvell Berlin")
  24. .dt_compat = berlin_dt_compat,
  25. /*
  26. * with DT probing for L2CCs, berlin_init_machine can be removed.
  27. * Note: 88DE3005 (Armada 1500-mini) uses pl310 l2cc
  28. */
  29. .l2c_aux_val = 0x30c00000,
  30. .l2c_aux_mask = 0xfeffffff,
  31. MACHINE_END