mach-imx1.c 612 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2014 Alexander Shiyan <[email protected]>
  4. */
  5. #include <linux/of_platform.h>
  6. #include <asm/mach/arch.h>
  7. #include <asm/mach/map.h>
  8. #include "common.h"
  9. #include "hardware.h"
  10. #define MX1_AVIC_ADDR 0x00223000
  11. static void __init imx1_init_early(void)
  12. {
  13. mxc_set_cpu_type(MXC_CPU_MX1);
  14. }
  15. static const char * const imx1_dt_board_compat[] __initconst = {
  16. "fsl,imx1",
  17. NULL
  18. };
  19. DT_MACHINE_START(IMX1_DT, "Freescale i.MX1 (Device Tree Support)")
  20. .init_early = imx1_init_early,
  21. .dt_compat = imx1_dt_board_compat,
  22. .restart = mxc_restart,
  23. MACHINE_END