X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fnand.h;h=3c8dea5f8709a23ee5ce4a4bc1fcebd26626bb08;hb=da1542828dcae9b8423ae0e5dc4a8c84b2b9cb68;hp=ed4ba8d2b609d4dc0bdb1d65bba4d45e5fae32d3;hpb=326ea986ac150acdc7656d57fca647db80b50158;p=karo-tx-uboot.git diff --git a/include/nand.h b/include/nand.h index ed4ba8d2b6..3c8dea5f87 100644 --- a/include/nand.h +++ b/include/nand.h @@ -8,7 +8,7 @@ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * version 2 as published by the Free Software Foundation. + * version 2 as published by the Free Software Foundation. */ #ifndef _NAND_H_ @@ -16,16 +16,6 @@ #include -/* - * All boards using a given driver must convert to self-init - * at the same time, so do it here. When all drivers are - * converted, this will go away. - */ -#if defined(CONFIG_NAND_FSL_ELBC) || defined(CONFIG_NAND_ATMEL)\ - || defined(CONFIG_NAND_FSL_IFC) -#define CONFIG_SYS_NAND_SELF_INIT -#endif - extern void nand_init(void); #include @@ -161,3 +151,4 @@ __attribute__((noreturn)) void nand_boot(void); #define ENV_OFFSET_SIZE 8 int get_nand_env_oob(nand_info_t *nand, unsigned long *result); #endif +int spl_nand_erase_one(int block, int page);