forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/arm/mach-nspire/nspire.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-nspire/nspire.c
34 *
45 * 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
- *
106 */
117 #include <linux/init.h>
128 #include <linux/of_irq.h>
....@@ -16,14 +12,12 @@
1612 #include <linux/irqchip/arm-vic.h>
1713 #include <linux/clkdev.h>
1814 #include <linux/amba/bus.h>
19
-#include <linux/amba/clcd.h>
2015
2116 #include <asm/mach/arch.h>
2217 #include <asm/mach-types.h>
2318 #include <asm/mach/map.h>
2419
2520 #include "mmio.h"
26
-#include "clcd.h"
2721
2822 static const char *const nspire_dt_match[] __initconst = {
2923 "ti,nspire",
....@@ -32,28 +26,6 @@
3226 "ti,nspire-clp",
3327 NULL,
3428 };
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
-}
5729
5830 static void nspire_restart(enum reboot_mode mode, const char *cmd)
5931 {
....@@ -66,6 +38,5 @@
6638
6739 DT_MACHINE_START(NSPIRE, "TI-NSPIRE")
6840 .dt_compat = nspire_dt_match,
69
- .init_machine = nspire_init,
7041 .restart = nspire_restart,
7142 MACHINE_END