Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ |
| 4 | * |
| 5 | * Modified from mach-omap/omap2/board-generic.c |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 6 | */ |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 7 | |
| 8 | #include <asm/mach/arch.h> |
| 9 | |
| 10 | #include <mach/common.h> |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 11 | #include <mach/da8xx.h> |
| 12 | |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 13 | #ifdef CONFIG_ARCH_DAVINCI_DA850 |
| 14 | |
| 15 | static void __init da850_init_machine(void) |
| 16 | { |
Kevin Hilman | 7e431af | 2016-11-15 11:54:21 -0800 | [diff] [blame] | 17 | davinci_pm_init(); |
Kevin Hilman | 9c9b1bc | 2017-01-09 12:55:29 -0800 | [diff] [blame] | 18 | pdata_quirks_init(); |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 19 | } |
| 20 | |
Nicolas Pitre | 19c233b | 2015-07-27 18:27:52 -0400 | [diff] [blame] | 21 | static const char *const da850_boards_compat[] __initconst = { |
Heiko Schocher | 3015fb3 | 2012-05-30 12:19:03 +0200 | [diff] [blame] | 22 | "enbw,cmc", |
Karl Beldan | 44524a0 | 2016-08-05 20:29:49 +0000 | [diff] [blame] | 23 | "ti,da850-lcdk", |
Sekhar Nori | 27e6e0d | 2012-08-29 23:25:27 +0530 | [diff] [blame] | 24 | "ti,da850-evm", |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 25 | "ti,da850", |
| 26 | NULL, |
| 27 | }; |
| 28 | |
| 29 | DT_MACHINE_START(DA850_DT, "Generic DA850/OMAP-L138/AM18x") |
| 30 | .map_io = da850_init, |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 31 | .init_machine = da850_init_machine, |
| 32 | .dt_compat = da850_boards_compat, |
| 33 | .init_late = davinci_init_late, |
Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 34 | MACHINE_END |
| 35 | |
| 36 | #endif |