]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/samsung/goni/onenand.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / samsung / goni / onenand.c
CommitLineData
c474a8eb
MK
1/*
2 * Copyright (C) 2008-2009 Samsung Electronics
3 * Kyungmin Park <kyungmin.park@samsung.com>
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
c474a8eb
MK
6 */
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
14void onenand_board_init(struct mtd_info *mtd)
15{
16 struct onenand_chip *this = mtd->priv;
17
18 this->base = (void *)CONFIG_SYS_ONENAND_BASE;
19 this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
8f9c2498 20 this->chip_probe = s5pc110_chip_probe;
c474a8eb 21}