1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright (C) 2010 Samsung Electronics 4 * Kyungmin Park <kyungmin.park@samsung.com> 5 */ 6 7 #include <common.h> 8 #include <linux/mtd/mtd.h> 9 #include <linux/mtd/onenand.h> 10 #include <linux/mtd/samsung_onenand.h> 11 onenand_board_init(struct mtd_info * mtd)12int onenand_board_init(struct mtd_info *mtd) 13 { 14 struct onenand_chip *this = mtd->priv; 15 16 this->base = (void *)CONFIG_SYS_ONENAND_BASE; 17 this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK; 18 this->chip_probe = s5pc210_chip_probe; 19 20 return 0; 21 } 22