| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * Modified from mach-omap/omap2/board-generic.c |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 10 | |
| 11 | #include <asm/mach/arch.h> |
| 12 | |
| 13 | #include <mach/common.h> |
| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 14 | #include <mach/da8xx.h> |
| 15 | |
| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 16 | #ifdef CONFIG_ARCH_DAVINCI_DA850 |
| 17 | |
| 18 | static void __init da850_init_machine(void) |
| 19 | { |
| Kevin Hilman | 7e431af | 2016-11-15 11:54:21 -0800 | [diff] [blame] | 20 | davinci_pm_init(); |
| Kevin Hilman | 9c9b1bc | 2017-01-09 12:55:29 -0800 | [diff] [blame] | 21 | pdata_quirks_init(); |
| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 22 | } |
| 23 | |
| Nicolas Pitre | 19c233b | 2015-07-27 18:27:52 -0400 | [diff] [blame] | 24 | static const char *const da850_boards_compat[] __initconst = { |
| Heiko Schocher | 3015fb3 | 2012-05-30 12:19:03 +0200 | [diff] [blame] | 25 | "enbw,cmc", |
| Karl Beldan | 44524a0 | 2016-08-05 20:29:49 +0000 | [diff] [blame] | 26 | "ti,da850-lcdk", |
| Sekhar Nori | 27e6e0d | 2012-08-29 23:25:27 +0530 | [diff] [blame] | 27 | "ti,da850-evm", |
| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 28 | "ti,da850", |
| 29 | NULL, |
| 30 | }; |
| 31 | |
| 32 | DT_MACHINE_START(DA850_DT, "Generic DA850/OMAP-L138/AM18x") |
| 33 | .map_io = da850_init, |
| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 34 | .init_machine = da850_init_machine, |
| 35 | .dt_compat = da850_boards_compat, |
| 36 | .init_late = davinci_init_late, |
| Sekhar Nori | 689e331 | 2012-08-28 15:27:52 +0530 | [diff] [blame] | 37 | MACHINE_END |
| 38 | |
| 39 | #endif |