1c474a8ebSMinkyu Kang /* 2c474a8ebSMinkyu Kang * Copyright (C) 2008-2009 Samsung Electronics 3c474a8ebSMinkyu Kang * Kyungmin Park <kyungmin.park@samsung.com> 4c474a8ebSMinkyu Kang * 5c474a8ebSMinkyu Kang * See file CREDITS for list of people who contributed to this 6c474a8ebSMinkyu Kang * project. 7c474a8ebSMinkyu Kang * 8c474a8ebSMinkyu Kang * This program is free software; you can redistribute it and/or 9c474a8ebSMinkyu Kang * modify it under the terms of the GNU General Public License as 10c474a8ebSMinkyu Kang * published by the Free Software Foundation; either version 2 of 11c474a8ebSMinkyu Kang * the License, or (at your option) any later version. 12c474a8ebSMinkyu Kang * 13c474a8ebSMinkyu Kang * This program is distributed in the hope that it will be useful, 14c474a8ebSMinkyu Kang * but WITHOUT ANY WARRANTY; without even the implied warranty of 15c474a8ebSMinkyu Kang * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16c474a8ebSMinkyu Kang * GNU General Public License for more details. 17c474a8ebSMinkyu Kang * 18c474a8ebSMinkyu Kang * You should have received a copy of the GNU General Public License 19c474a8ebSMinkyu Kang * along with this program; if not, write to the Free Software 20c474a8ebSMinkyu Kang * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21c474a8ebSMinkyu Kang * MA 02111-1307 USA 22c474a8ebSMinkyu Kang */ 23c474a8ebSMinkyu Kang 24c474a8ebSMinkyu Kang #include <common.h> 25c474a8ebSMinkyu Kang #include <linux/mtd/mtd.h> 26c474a8ebSMinkyu Kang #include <linux/mtd/onenand.h> 27c474a8ebSMinkyu Kang #include <linux/mtd/samsung_onenand.h> 28c474a8ebSMinkyu Kang #include <onenand_uboot.h> 29c474a8ebSMinkyu Kang 30c474a8ebSMinkyu Kang void onenand_board_init(struct mtd_info *mtd) 31c474a8ebSMinkyu Kang { 32c474a8ebSMinkyu Kang struct onenand_chip *this = mtd->priv; 33c474a8ebSMinkyu Kang 34c474a8ebSMinkyu Kang this->base = (void *)CONFIG_SYS_ONENAND_BASE; 35c474a8ebSMinkyu Kang this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK; 36*8f9c2498SLukasz Majewski this->chip_probe = s5pc110_chip_probe; 37c474a8ebSMinkyu Kang } 38