hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/mips/loongson32/ls1b/board.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 2011-2016 Zhang, Keguang <keguang.zhang@gmail.com>
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License as published by the
6
- * Free Software Foundation; either version 2 of the License, or (at your
7
- * option) any later version.
84 */
95
106 #include <linux/leds.h>
....@@ -15,30 +11,6 @@
1511 #include <dma.h>
1612 #include <nand.h>
1713 #include <platform.h>
18
-
19
-struct plat_ls1x_dma ls1x_dma_pdata = {
20
- .nr_channels = 3,
21
-};
22
-
23
-static struct mtd_partition ls1x_nand_parts[] = {
24
- {
25
- .name = "kernel",
26
- .offset = 0,
27
- .size = SZ_16M,
28
- },
29
- {
30
- .name = "rootfs",
31
- .offset = MTDPART_OFS_APPEND,
32
- .size = MTDPART_SIZ_FULL,
33
- },
34
-};
35
-
36
-struct plat_ls1x_nand ls1x_nand_pdata = {
37
- .parts = ls1x_nand_parts,
38
- .nr_parts = ARRAY_SIZE(ls1x_nand_parts),
39
- .hold_cycle = 0x2,
40
- .wait_cycle = 0xc,
41
-};
4214
4315 static const struct gpio_led ls1x_gpio_leds[] __initconst = {
4416 {
....@@ -64,13 +36,11 @@
6436 static struct platform_device *ls1b_platform_devices[] __initdata = {
6537 &ls1x_uart_pdev,
6638 &ls1x_cpufreq_pdev,
67
- &ls1x_dma_pdev,
6839 &ls1x_eth0_pdev,
6940 &ls1x_eth1_pdev,
7041 &ls1x_ehci_pdev,
7142 &ls1x_gpio0_pdev,
7243 &ls1x_gpio1_pdev,
73
- &ls1x_nand_pdev,
7444 &ls1x_rtc_pdev,
7545 &ls1x_wdt_pdev,
7646 };
....@@ -78,8 +48,6 @@
7848 static int __init ls1b_platform_init(void)
7949 {
8050 ls1x_serial_set_uartclk(&ls1x_uart_pdev);
81
- ls1x_dma_set_platdata(&ls1x_dma_pdata);
82
- ls1x_nand_set_platdata(&ls1x_nand_pdata);
8351
8452 gpio_led_register_device(-1, &ls1x_led_pdata);
8553