2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2011-01-24 06:33:50 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Samsung Electronics
|
|
|
|
* Kyungmin Park <kyungmin.park@samsung.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <linux/mtd/mtd.h>
|
|
|
|
#include <linux/mtd/onenand.h>
|
2011-11-09 10:27:14 +00:00
|
|
|
#include <linux/mtd/samsung_onenand.h>
|
2011-01-24 06:33:50 +00:00
|
|
|
|
2016-07-12 18:28:20 +00:00
|
|
|
int onenand_board_init(struct mtd_info *mtd)
|
2011-01-24 06:33:50 +00:00
|
|
|
{
|
|
|
|
struct onenand_chip *this = mtd->priv;
|
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
this->base = (void *)CFG_SYS_ONENAND_BASE;
|
2011-01-24 06:33:50 +00:00
|
|
|
this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
|
2011-11-09 10:27:14 +00:00
|
|
|
this->chip_probe = s5pc210_chip_probe;
|
2016-07-12 18:28:20 +00:00
|
|
|
|
|
|
|
return 0;
|
2011-01-24 06:33:50 +00:00
|
|
|
}
|