board_bcm2835.c 992 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2010 Broadcom
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #include <linux/init.h>
  15. #include <linux/irqchip.h>
  16. #include <linux/of_address.h>
  17. #include <asm/mach/arch.h>
  18. #include <asm/mach/map.h>
  19. #include "platsmp.h"
  20. static const char * const bcm2835_compat[] = {
  21. #ifdef CONFIG_ARCH_MULTI_V6
  22. "brcm,bcm2835",
  23. #endif
  24. #ifdef CONFIG_ARCH_MULTI_V7
  25. "brcm,bcm2836",
  26. "brcm,bcm2837",
  27. #endif
  28. NULL
  29. };
  30. DT_MACHINE_START(BCM2835, "BCM2835")
  31. .dt_compat = bcm2835_compat,
  32. .smp = smp_ops(bcm2836_smp_ops),
  33. MACHINE_END