Minkyu Kang | 9e40808 | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 Samsung Electronics |
| 3 | * Kyungmin Park <kyungmin.park@samsung.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Minkyu Kang | 9e40808 | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <linux/mtd/mtd.h> |
| 10 | #include <linux/mtd/onenand.h> |
Lukasz Majewski | 8f9c249 | 2011-11-09 11:27:14 +0100 | [diff] [blame] | 11 | #include <linux/mtd/samsung_onenand.h> |
Minkyu Kang | 9e40808 | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 12 | |
| 13 | void onenand_board_init(struct mtd_info *mtd) |
| 14 | { |
| 15 | struct onenand_chip *this = mtd->priv; |
| 16 | |
| 17 | this->base = (void *)CONFIG_SYS_ONENAND_BASE; |
| 18 | this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK; |
Lukasz Majewski | 8f9c249 | 2011-11-09 11:27:14 +0100 | [diff] [blame] | 19 | this->chip_probe = s5pc210_chip_probe; |
Minkyu Kang | 9e40808 | 2011-01-24 15:33:50 +0900 | [diff] [blame] | 20 | } |