| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/mach-iop32x/n2100.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * Copyright (C) 2002 Rory Bolt |
|---|
| 8 | 9 | * Copyright 2003 (c) MontaVista, Software, Inc. |
|---|
| 9 | 10 | * 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. |
|---|
| 15 | 11 | */ |
|---|
| 16 | 12 | |
|---|
| 17 | 13 | #include <linux/mm.h> |
|---|
| .. | .. |
|---|
| 31 | 27 | #include <linux/reboot.h> |
|---|
| 32 | 28 | #include <linux/io.h> |
|---|
| 33 | 29 | #include <linux/gpio.h> |
|---|
| 34 | | -#include <mach/hardware.h> |
|---|
| 30 | +#include <linux/gpio/machine.h> |
|---|
| 35 | 31 | #include <asm/irq.h> |
|---|
| 36 | 32 | #include <asm/mach/arch.h> |
|---|
| 37 | 33 | #include <asm/mach/map.h> |
|---|
| .. | .. |
|---|
| 39 | 35 | #include <asm/mach/time.h> |
|---|
| 40 | 36 | #include <asm/mach-types.h> |
|---|
| 41 | 37 | #include <asm/page.h> |
|---|
| 42 | | -#include <asm/pgtable.h> |
|---|
| 43 | | -#include <mach/time.h> |
|---|
| 38 | + |
|---|
| 39 | +#include "hardware.h" |
|---|
| 40 | +#include "irqs.h" |
|---|
| 44 | 41 | #include "gpio-iop32x.h" |
|---|
| 45 | 42 | |
|---|
| 46 | 43 | /* |
|---|
| .. | .. |
|---|
| 345 | 342 | static void __init n2100_init_machine(void) |
|---|
| 346 | 343 | { |
|---|
| 347 | 344 | register_iop32x_gpio(); |
|---|
| 345 | + gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup); |
|---|
| 348 | 346 | platform_device_register(&iop3xx_i2c0_device); |
|---|
| 349 | 347 | platform_device_register(&n2100_flash_device); |
|---|
| 350 | 348 | platform_device_register(&n2100_serial_device); |
|---|