board-dt-8960.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Copyright (c) 2012, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/irqchip.h>
  14. #include <linux/of_platform.h>
  15. #include <asm/mach/arch.h>
  16. #include "common.h"
  17. static void __init msm_dt_init(void)
  18. {
  19. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  20. }
  21. static const char * const msm8960_dt_match[] __initconst = {
  22. "qcom,msm8960-cdp",
  23. NULL
  24. };
  25. DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)")
  26. .smp = smp_ops(msm_smp_ops),
  27. .map_io = msm_map_msm8960_io,
  28. .init_irq = irqchip_init,
  29. .init_time = msm_dt_timer_init,
  30. .init_machine = msm_dt_init,
  31. .dt_compat = msm8960_dt_match,
  32. MACHINE_END