blob: 147a95e2907a037ef427e1d52b3999fc2692ae88 [file] [log] [blame]
Minkyu Kang0aa1a6b2011-01-24 15:33:50 +09001/*
2 * Copyright (C) 2010 Samsung Electronics
3 * Kyungmin Park <kyungmin.park@samsung.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Minkyu Kang0aa1a6b2011-01-24 15:33:50 +09006 */
7
8#include <common.h>
9#include <linux/mtd/mtd.h>
10#include <linux/mtd/onenand.h>
Lukasz Majewskiece4ac22011-11-09 11:27:14 +010011#include <linux/mtd/samsung_onenand.h>
Minkyu Kang0aa1a6b2011-01-24 15:33:50 +090012
Ladislav Michl11732712016-07-12 20:28:20 +020013int onenand_board_init(struct mtd_info *mtd)
Minkyu Kang0aa1a6b2011-01-24 15:33:50 +090014{
15 struct onenand_chip *this = mtd->priv;
16
17 this->base = (void *)CONFIG_SYS_ONENAND_BASE;
18 this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
Lukasz Majewskiece4ac22011-11-09 11:27:14 +010019 this->chip_probe = s5pc210_chip_probe;
Ladislav Michl11732712016-07-12 20:28:20 +020020
21 return 0;
Minkyu Kang0aa1a6b2011-01-24 15:33:50 +090022}