board-dt.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (c) 2010-2012,2013 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/of.h>
  14. #include <linux/of_platform.h>
  15. #include <asm/mach/arch.h>
  16. #include <asm/mach/map.h>
  17. #include "common.h"
  18. static const char * const msm_dt_match[] __initconst = {
  19. "qcom,msm8660-fluid",
  20. "qcom,msm8660-surf",
  21. "qcom,msm8960-cdp",
  22. NULL
  23. };
  24. static const char * const apq8074_dt_match[] __initconst = {
  25. "qcom,apq8074-dragonboard",
  26. NULL
  27. };
  28. DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)")
  29. .smp = smp_ops(msm_smp_ops),
  30. .dt_compat = msm_dt_match,
  31. MACHINE_END
  32. DT_MACHINE_START(APQ_DT, "Qualcomm MSM (Flattened Device Tree)")
  33. .dt_compat = apq8074_dt_match,
  34. MACHINE_END