forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/arm/mach-iop32x/n2100.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * arch/arm/mach-iop32x/n2100.c
34 *
....@@ -7,11 +8,6 @@
78 * Copyright (C) 2002 Rory Bolt
89 * Copyright 2003 (c) MontaVista, Software, Inc.
910 * Copyright (C) 2004 Intel Corp.
10
- *
11
- * This program is free software; you can redistribute it and/or modify it
12
- * under the terms of the GNU General Public License as published by the
13
- * Free Software Foundation; either version 2 of the License, or (at your
14
- * option) any later version.
1511 */
1612
1713 #include <linux/mm.h>
....@@ -31,7 +27,7 @@
3127 #include <linux/reboot.h>
3228 #include <linux/io.h>
3329 #include <linux/gpio.h>
34
-#include <mach/hardware.h>
30
+#include <linux/gpio/machine.h>
3531 #include <asm/irq.h>
3632 #include <asm/mach/arch.h>
3733 #include <asm/mach/map.h>
....@@ -39,8 +35,9 @@
3935 #include <asm/mach/time.h>
4036 #include <asm/mach-types.h>
4137 #include <asm/page.h>
42
-#include <asm/pgtable.h>
43
-#include <mach/time.h>
38
+
39
+#include "hardware.h"
40
+#include "irqs.h"
4441 #include "gpio-iop32x.h"
4542
4643 /*
....@@ -345,6 +342,7 @@
345342 static void __init n2100_init_machine(void)
346343 {
347344 register_iop32x_gpio();
345
+ gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup);
348346 platform_device_register(&iop3xx_i2c0_device);
349347 platform_device_register(&n2100_flash_device);
350348 platform_device_register(&n2100_serial_device);