onenand.c 524 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2008-2009 Samsung Electronics
  3. * Kyungmin Park <kyungmin.park@samsung.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  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. #include <onenand_uboot.h>
  12. int onenand_board_init(struct mtd_info *mtd)
  13. {
  14. struct onenand_chip *this = mtd->priv;
  15. this->base = (void *)CONFIG_SYS_ONENAND_BASE;
  16. this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
  17. this->chip_probe = s5pc110_chip_probe;
  18. return 0;
  19. }