board-dt-tegra114.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * NVIDIA Tegra114 device tree board support
  3. *
  4. * Copyright (C) 2013 NVIDIA Corporation
  5. *
  6. * This software is licensed under the terms of the GNU General Public
  7. * License version 2, as published by the Free Software Foundation, and
  8. * may be copied, distributed, and modified under those terms.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. */
  16. #include <linux/of.h>
  17. #include <linux/of_platform.h>
  18. #include <linux/clocksource.h>
  19. #include <asm/mach/arch.h>
  20. #include <asm/hardware/gic.h>
  21. #include "board.h"
  22. #include "common.h"
  23. static void __init tegra114_dt_init(void)
  24. {
  25. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  26. }
  27. static const char * const tegra114_dt_board_compat[] = {
  28. "nvidia,tegra114",
  29. NULL,
  30. };
  31. DT_MACHINE_START(TEGRA114_DT, "NVIDIA Tegra114 (Flattened Device Tree)")
  32. .smp = smp_ops(tegra_smp_ops),
  33. .map_io = tegra_map_common_io,
  34. .init_early = tegra30_init_early,
  35. .init_irq = tegra_dt_init_irq,
  36. .handle_irq = gic_handle_irq,
  37. .init_time = clocksource_of_init,
  38. .init_machine = tegra114_dt_init,
  39. .init_late = tegra_init_late,
  40. .restart = tegra_assert_system_reset,
  41. .dt_compat = tegra114_dt_board_compat,
  42. MACHINE_END