Jingchang Lu | 5be913c | 2013-05-28 17:12:21 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012-2013 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | */ |
| 9 | |
| 10 | #include <linux/of_platform.h> |
Jingchang Lu | 5be913c | 2013-05-28 17:12:21 +0800 | [diff] [blame] | 11 | #include <linux/irqchip.h> |
Jingchang Lu | 5be913c | 2013-05-28 17:12:21 +0800 | [diff] [blame] | 12 | #include <asm/mach/arch.h> |
| 13 | #include <asm/hardware/cache-l2x0.h> |
| 14 | |
| 15 | #include "common.h" |
| 16 | |
| 17 | static void __init vf610_init_machine(void) |
| 18 | { |
| 19 | mxc_arch_reset_init_dt(); |
| 20 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
| 21 | } |
| 22 | |
Shawn Guo | 8756dd9 | 2014-07-01 16:03:00 +0800 | [diff] [blame] | 23 | static const char * const vf610_dt_compat[] __initconst = { |
Jingchang Lu | 5be913c | 2013-05-28 17:12:21 +0800 | [diff] [blame] | 24 | "fsl,vf610", |
| 25 | NULL, |
| 26 | }; |
| 27 | |
| 28 | DT_MACHINE_START(VYBRID_VF610, "Freescale Vybrid VF610 (Device Tree)") |
Russell King | b9f71aa | 2014-04-28 15:48:14 +0100 | [diff] [blame] | 29 | .l2c_aux_val = 0, |
| 30 | .l2c_aux_mask = ~0, |
Jingchang Lu | 5be913c | 2013-05-28 17:12:21 +0800 | [diff] [blame] | 31 | .init_machine = vf610_init_machine, |
| 32 | .dt_compat = vf610_dt_compat, |
| 33 | .restart = mxc_restart, |
| 34 | MACHINE_END |