board-kzm9d-reference.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * kzm9d board support - Reference DT implementation
  3. *
  4. * Copyright (C) 2013 Renesas Solutions Corp.
  5. * Copyright (C) 2013 Magnus Damm
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; version 2 of the License.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #include <linux/init.h>
  21. #include <linux/of_platform.h>
  22. #include <mach/emev2.h>
  23. #include <mach/common.h>
  24. #include <asm/mach/arch.h>
  25. static void __init kzm9d_add_standard_devices(void)
  26. {
  27. if (!IS_ENABLED(CONFIG_COMMON_CLK))
  28. emev2_clock_init();
  29. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  30. }
  31. static const char *kzm9d_boards_compat_dt[] __initdata = {
  32. "renesas,kzm9d-reference",
  33. NULL,
  34. };
  35. DT_MACHINE_START(KZM9D_DT, "kzm9d")
  36. .smp = smp_ops(emev2_smp_ops),
  37. .map_io = emev2_map_io,
  38. .init_early = emev2_init_delay,
  39. .init_machine = kzm9d_add_standard_devices,
  40. .init_late = shmobile_init_late,
  41. .dt_compat = kzm9d_boards_compat_dt,
  42. MACHINE_END