blob: cbe1d12fdaae659ee4b5ad10e390ea573a1da3bb [file] [log] [blame]
Minkyu Kang1ecdd832010-05-31 22:02:42 +09001/*
2 * Copyright (C) 2008-2009 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 Kang1ecdd832010-05-31 22:02:42 +09006 */
7
8#include <common.h>
9#include <linux/mtd/mtd.h>
10#include <linux/mtd/onenand.h>
11#include <linux/mtd/samsung_onenand.h>
12#include <onenand_uboot.h>
13
Ladislav Michl11732712016-07-12 20:28:20 +020014int onenand_board_init(struct mtd_info *mtd)
Minkyu Kang1ecdd832010-05-31 22:02:42 +090015{
16 struct onenand_chip *this = mtd->priv;
17
18 this->base = (void *)CONFIG_SYS_ONENAND_BASE;
19 this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
Lukasz Majewskiece4ac22011-11-09 11:27:14 +010020 this->chip_probe = s5pc110_chip_probe;
Ladislav Michl11732712016-07-12 20:28:20 +020021
22 return 0;
Minkyu Kang1ecdd832010-05-31 22:02:42 +090023}