X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fonenand_uboot.h;h=fd01040817bdda5ff1016ae290182bc52c35285a;hb=985a71d15b8bd9cfbeae1ac1b08a5319abfd246c;hp=49da9d08b55f79441183c12e572799c1d461339f;hpb=9d8811c5bd2b7dd6307742cf22fbdb7953b6f816;p=karo-tx-uboot.git diff --git a/include/onenand_uboot.h b/include/onenand_uboot.h index 49da9d08b5..fd01040817 100644 --- a/include/onenand_uboot.h +++ b/include/onenand_uboot.h @@ -23,6 +23,7 @@ struct erase_info; struct onenand_chip; extern struct mtd_info onenand_mtd; +extern struct onenand_chip onenand_chip; /* board */ extern void onenand_board_init(struct mtd_info *); @@ -38,8 +39,16 @@ extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr); extern char *onenand_print_device_info(int device, int version); -/* S3C64xx */ -extern void s3c64xx_onenand_init(struct mtd_info *); -extern void s3c64xx_set_width_regs(struct onenand_chip *); +extern unsigned onenand_block(struct onenand_chip *this, loff_t addr); + +extern loff_t onenand_addr(struct onenand_chip *this, int block); + +extern int flexonenand_region(struct mtd_info *mtd, loff_t addr); + +extern int flexonenand_set_boundary(struct mtd_info *mtd, int die, + int boundary, int lock); + +/* SPL */ +void onenand_spl_load_image(uint32_t offs, uint32_t size, void *dst); #endif /* __UBOOT_ONENAND_H */