.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mach-nspire/nspire.c |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au> |
---|
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 | | - * |
---|
10 | 6 | */ |
---|
11 | 7 | #include <linux/init.h> |
---|
12 | 8 | #include <linux/of_irq.h> |
---|
.. | .. |
---|
16 | 12 | #include <linux/irqchip/arm-vic.h> |
---|
17 | 13 | #include <linux/clkdev.h> |
---|
18 | 14 | #include <linux/amba/bus.h> |
---|
19 | | -#include <linux/amba/clcd.h> |
---|
20 | 15 | |
---|
21 | 16 | #include <asm/mach/arch.h> |
---|
22 | 17 | #include <asm/mach-types.h> |
---|
23 | 18 | #include <asm/mach/map.h> |
---|
24 | 19 | |
---|
25 | 20 | #include "mmio.h" |
---|
26 | | -#include "clcd.h" |
---|
27 | 21 | |
---|
28 | 22 | static const char *const nspire_dt_match[] __initconst = { |
---|
29 | 23 | "ti,nspire", |
---|
.. | .. |
---|
32 | 26 | "ti,nspire-clp", |
---|
33 | 27 | NULL, |
---|
34 | 28 | }; |
---|
35 | | - |
---|
36 | | -static struct clcd_board nspire_clcd_data = { |
---|
37 | | - .name = "LCD", |
---|
38 | | - .caps = CLCD_CAP_5551 | CLCD_CAP_565, |
---|
39 | | - .check = clcdfb_check, |
---|
40 | | - .decode = clcdfb_decode, |
---|
41 | | - .setup = nspire_clcd_setup, |
---|
42 | | - .mmap = nspire_clcd_mmap, |
---|
43 | | - .remove = nspire_clcd_remove, |
---|
44 | | -}; |
---|
45 | | - |
---|
46 | | - |
---|
47 | | -static struct of_dev_auxdata nspire_auxdata[] __initdata = { |
---|
48 | | - OF_DEV_AUXDATA("arm,pl111", NSPIRE_LCD_PHYS_BASE, |
---|
49 | | - NULL, &nspire_clcd_data), |
---|
50 | | - { } |
---|
51 | | -}; |
---|
52 | | - |
---|
53 | | -static void __init nspire_init(void) |
---|
54 | | -{ |
---|
55 | | - of_platform_default_populate(NULL, nspire_auxdata, NULL); |
---|
56 | | -} |
---|
57 | 29 | |
---|
58 | 30 | static void nspire_restart(enum reboot_mode mode, const char *cmd) |
---|
59 | 31 | { |
---|
.. | .. |
---|
66 | 38 | |
---|
67 | 39 | DT_MACHINE_START(NSPIRE, "TI-NSPIRE") |
---|
68 | 40 | .dt_compat = nspire_dt_match, |
---|
69 | | - .init_machine = nspire_init, |
---|
70 | 41 | .restart = nspire_restart, |
---|
71 | 42 | MACHINE_END |
---|