~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/board/samsung/universal_c210/onenand.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Samsung Electronics
 
3
 * Kyungmin Park <kyungmin.park@samsung.com>
 
4
 *
 
5
 * SPDX-License-Identifier:     GPL-2.0+
 
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
 
 
13
void onenand_board_init(struct mtd_info *mtd)
 
14
{
 
15
        struct onenand_chip *this = mtd->priv;
 
16
 
 
17
        this->base = (void *)CONFIG_SYS_ONENAND_BASE;
 
18
        this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
 
19
        this->chip_probe = s5pc210_chip_probe;
 
20
}