board-koelsch.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Koelsch board support
  3. *
  4. * Copyright (C) 2013 Renesas Electronics Corporation
  5. * Copyright (C) 2013 Renesas Solutions Corp.
  6. * Copyright (C) 2013 Magnus Damm
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; version 2 of the License.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. #include <linux/kernel.h>
  22. #include <linux/platform_device.h>
  23. #include <mach/common.h>
  24. #include <mach/r8a7791.h>
  25. #include <mach/rcar-gen2.h>
  26. #include <asm/mach-types.h>
  27. #include <asm/mach/arch.h>
  28. static void __init koelsch_add_standard_devices(void)
  29. {
  30. r8a7791_clock_init();
  31. r8a7791_add_standard_devices();
  32. }
  33. static const char * const koelsch_boards_compat_dt[] __initconst = {
  34. "renesas,koelsch",
  35. NULL,
  36. };
  37. DT_MACHINE_START(KOELSCH_DT, "koelsch")
  38. .smp = smp_ops(r8a7791_smp_ops),
  39. .init_early = r8a7791_init_early,
  40. .init_machine = koelsch_add_standard_devices,
  41. .init_time = rcar_gen2_timer_init,
  42. .dt_compat = koelsch_boards_compat_dt,
  43. MACHINE_END