.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mach-omap1/board-nand.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
8 | 9 | * Copyright (C) 2001 RidgeRun, Inc. |
---|
9 | 10 | * Author: RidgeRun, Inc. |
---|
10 | 11 | * Greg Lonnon (glonnon@ridgerun.com) or info@ridgerun.com |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or modify |
---|
13 | | - * it under the terms of the GNU General Public License version 2 as |
---|
14 | | - * published by the Free Software Foundation. |
---|
15 | 12 | */ |
---|
16 | 13 | #include <linux/kernel.h> |
---|
17 | 14 | #include <linux/io.h> |
---|
.. | .. |
---|
20 | 17 | |
---|
21 | 18 | #include "common.h" |
---|
22 | 19 | |
---|
23 | | -void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) |
---|
| 20 | +void omap1_nand_cmd_ctl(struct nand_chip *this, int cmd, unsigned int ctrl) |
---|
24 | 21 | { |
---|
25 | | - struct nand_chip *this = mtd_to_nand(mtd); |
---|
26 | 22 | unsigned long mask; |
---|
27 | 23 | |
---|
28 | 24 | if (cmd == NAND_CMD_NONE) |
---|
.. | .. |
---|
32 | 28 | if (ctrl & NAND_ALE) |
---|
33 | 29 | mask |= 0x04; |
---|
34 | 30 | |
---|
35 | | - writeb(cmd, this->IO_ADDR_W + mask); |
---|
| 31 | + writeb(cmd, this->legacy.IO_ADDR_W + mask); |
---|
36 | 32 | } |
---|
37 | 33 | |
---|