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