Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Minkyu Kang | 0aa1a6b | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2010 Samsung Electronics |
| 4 | * Kyungmin Park <kyungmin.park@samsung.com> |
Minkyu Kang | 0aa1a6b | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame^] | 7 | #include <config.h> |
Minkyu Kang | 0aa1a6b | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 8 | #include <linux/mtd/mtd.h> |
| 9 | #include <linux/mtd/onenand.h> |
Lukasz Majewski | ece4ac2 | 2011-11-09 11:27:14 +0100 | [diff] [blame] | 10 | #include <linux/mtd/samsung_onenand.h> |
Minkyu Kang | 0aa1a6b | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 11 | |
Ladislav Michl | 1173271 | 2016-07-12 20:28:20 +0200 | [diff] [blame] | 12 | int onenand_board_init(struct mtd_info *mtd) |
Minkyu Kang | 0aa1a6b | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 13 | { |
| 14 | struct onenand_chip *this = mtd->priv; |
| 15 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 16 | this->base = (void *)CFG_SYS_ONENAND_BASE; |
Minkyu Kang | 0aa1a6b | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 17 | this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK; |
Lukasz Majewski | ece4ac2 | 2011-11-09 11:27:14 +0100 | [diff] [blame] | 18 | this->chip_probe = s5pc210_chip_probe; |
Ladislav Michl | 1173271 | 2016-07-12 20:28:20 +0200 | [diff] [blame] | 19 | |
| 20 | return 0; |
Minkyu Kang | 0aa1a6b | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 21 | } |