Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Lager board support - Reference DT implementation |
| 3 | * |
| 4 | * Copyright (C) 2013 Renesas Solutions Corp. |
| 5 | * Copyright (C) 2013 Simon Horman |
| 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. |
Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include <linux/init.h> |
Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 18 | #include <linux/of_platform.h> |
Geert Uytterhoeven | fccae89 | 2014-06-20 18:53:06 +0200 | [diff] [blame] | 19 | |
Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 20 | #include <asm/mach/arch.h> |
Geert Uytterhoeven | fccae89 | 2014-06-20 18:53:06 +0200 | [diff] [blame] | 21 | |
Magnus Damm | fd44aa5 | 2014-06-17 16:47:37 +0900 | [diff] [blame] | 22 | #include "common.h" |
Geert Uytterhoeven | fccae89 | 2014-06-20 18:53:06 +0200 | [diff] [blame] | 23 | #include "r8a7790.h" |
Magnus Damm | 6287298 | 2014-06-17 16:48:01 +0900 | [diff] [blame] | 24 | #include "rcar-gen2.h" |
Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 25 | |
Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 26 | static const char *lager_boards_compat_dt[] __initdata = { |
Laurent Pinchart | 1fb6814 | 2013-12-11 15:13:58 +0100 | [diff] [blame] | 27 | "renesas,lager", |
Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 28 | "renesas,lager-reference", |
| 29 | NULL, |
| 30 | }; |
| 31 | |
| 32 | DT_MACHINE_START(LAGER_DT, "lager") |
Magnus Damm | ad09cb8 | 2013-08-29 08:22:07 +0900 | [diff] [blame] | 33 | .smp = smp_ops(r8a7790_smp_ops), |
Magnus Damm | a5d6268 | 2014-05-20 08:37:33 +0900 | [diff] [blame] | 34 | .init_early = shmobile_init_delay, |
Magnus Damm | 50c517d | 2013-09-12 09:32:49 +0900 | [diff] [blame] | 35 | .init_time = rcar_gen2_timer_init, |
Magnus Damm | 3fbbcbd | 2013-11-20 09:02:31 +0900 | [diff] [blame] | 36 | .init_late = shmobile_init_late, |
Magnus Damm | 5f65c5b | 2014-06-09 21:38:53 +0900 | [diff] [blame] | 37 | .reserve = rcar_gen2_reserve, |
Simon Horman | 6dace67 | 2013-06-28 13:42:16 +0900 | [diff] [blame] | 38 | .dt_compat = lager_boards_compat_dt, |
| 39 | MACHINE_END |