forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/arm/mach-iop32x/iq31244.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * arch/arm/mach-iop32x/iq31244.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>
....@@ -26,7 +22,7 @@
2622 #include <linux/mtd/physmap.h>
2723 #include <linux/platform_device.h>
2824 #include <linux/io.h>
29
-#include <mach/hardware.h>
25
+#include <linux/gpio/machine.h>
3026 #include <asm/cputype.h>
3127 #include <asm/irq.h>
3228 #include <asm/mach/arch.h>
....@@ -35,8 +31,9 @@
3531 #include <asm/mach/time.h>
3632 #include <asm/mach-types.h>
3733 #include <asm/page.h>
38
-#include <asm/pgtable.h>
39
-#include <mach/time.h>
34
+
35
+#include "hardware.h"
36
+#include "irqs.h"
4037 #include "gpio-iop32x.h"
4138
4239 /*
....@@ -285,6 +282,8 @@
285282 static void __init iq31244_init_machine(void)
286283 {
287284 register_iop32x_gpio();
285
+ gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup);
286
+ gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup);
288287 platform_device_register(&iop3xx_i2c0_device);
289288 platform_device_register(&iop3xx_i2c1_device);
290289 platform_device_register(&iq31244_flash_device);