board-dt-8660.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Copyright (c) 2010-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/of.h>
  14. #include <linux/of_platform.h>
  15. #include <asm/mach/arch.h>
  16. #include <mach/board.h>
  17. #include "common.h"
  18. static void __init msm8x60_init_late(void)
  19. {
  20. smd_debugfs_init();
  21. }
  22. static struct of_dev_auxdata msm_auxdata_lookup[] __initdata = {
  23. {}
  24. };
  25. static void __init msm8x60_dt_init(void)
  26. {
  27. of_platform_populate(NULL, of_default_bus_match_table,
  28. msm_auxdata_lookup, NULL);
  29. }
  30. static const char *msm8x60_fluid_match[] __initdata = {
  31. "qcom,msm8660-fluid",
  32. "qcom,msm8660-surf",
  33. NULL
  34. };
  35. DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)")
  36. .smp = smp_ops(msm_smp_ops),
  37. .map_io = msm_map_msm8x60_io,
  38. .init_machine = msm8x60_dt_init,
  39. .init_late = msm8x60_init_late,
  40. .init_time = msm_dt_timer_init,
  41. .dt_compat = msm8x60_fluid_match,
  42. MACHINE_END