mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-15 06:55:17 -04:00
onenand:samsung OneNAND chip probe functions added for GONI and Exynos4210
Separate callback for probing OneNAND memory chip. Tested at: Samsung S5PC110 GONI Samsung Exynos4210 (S5PC210 Universal) Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
6b3967bbbb
commit
8f9c249836
@ -33,4 +33,5 @@ void onenand_board_init(struct mtd_info *mtd)
|
|||||||
|
|
||||||
this->base = (void *)CONFIG_SYS_ONENAND_BASE;
|
this->base = (void *)CONFIG_SYS_ONENAND_BASE;
|
||||||
this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
|
this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
|
||||||
|
this->chip_probe = s5pc110_chip_probe;
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/onenand.h>
|
#include <linux/mtd/onenand.h>
|
||||||
|
#include <linux/mtd/samsung_onenand.h>
|
||||||
|
|
||||||
void onenand_board_init(struct mtd_info *mtd)
|
void onenand_board_init(struct mtd_info *mtd)
|
||||||
{
|
{
|
||||||
@ -31,4 +32,5 @@ void onenand_board_init(struct mtd_info *mtd)
|
|||||||
|
|
||||||
this->base = (void *)CONFIG_SYS_ONENAND_BASE;
|
this->base = (void *)CONFIG_SYS_ONENAND_BASE;
|
||||||
this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
|
this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
|
||||||
|
this->chip_probe = s5pc210_chip_probe;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user