[U-Boot] [PATCH 1/1] davinci: fix implicit declaration of function 'davinci_errata_workarounds'

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagnioj@jcrosoft.com --- board/davinci/common/psc.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/board/davinci/common/psc.h b/board/davinci/common/psc.h index b18a185..b2dd7b5 100644 --- a/board/davinci/common/psc.h +++ b/board/davinci/common/psc.h @@ -27,5 +27,6 @@ void dsp_on(void); void davinci_enable_uart0(void); void davinci_enable_emac(void); void davinci_enable_i2c(void); +void davinci_errata_workarounds(void);
#endif /* __PSC_H */

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagnioj@jcrosoft.com --- drivers/mtd/nand/nomadik.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/nomadik.c b/drivers/mtd/nand/nomadik.c index 08944d1..b76f4cb 100644 --- a/drivers/mtd/nand/nomadik.c +++ b/drivers/mtd/nand/nomadik.c @@ -42,7 +42,7 @@ static inline int parity(int b) /* b is really a byte; returns 0 or ~0 */ * HW claims to make the calculation but not the correction; so we must * recalculate the bytes for a comparison. */ -static int ecc512(unsigned char *data, unsigned char *ecc) +static int ecc512(const unsigned char *data, unsigned char *ecc) { int gpar = 0; int i, val, par;

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagnioj@jcrosoft.com --- include/configs/nmdk8815.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/configs/nmdk8815.h b/include/configs/nmdk8815.h index b37352e..543780d 100644 --- a/include/configs/nmdk8815.h +++ b/include/configs/nmdk8815.h @@ -48,7 +48,6 @@ #define CONFIG_SYS_NO_FLASH /* There is NAND storage */ #define CONFIG_NAND_NOMADIK -#define CONFIG_CMD_NAND #define CONFIG_CMD_JFFS2
/* user interface */ @@ -131,7 +130,7 @@
#ifdef CONFIG_BOOT_ONENAND
-# undef CONFIG_CMD_NAND /* Temporary: nand and onenand can't coexist */ +# define CONFIG_CMD_ONENAND /* Temporary: nand and onenand can't coexist */ /* Partition Size Start * XloaderTOC + X-Loader 256KB 0x00000000 * Memory init function 256KB 0x00040000 @@ -149,7 +148,7 @@
#else /* ! CONFIG_BOOT_ONENAND */
-# undef CONFIG_CMD_ONENAND /* Temporary: nand and onenand can't coexist */ +# define CONFIG_CMD_NAND /* Temporary: nand and onenand can't coexist */
# define CONFIG_JFFS2_DEV "nand0" # define CONFIG_JFFS2_NAND 1 /* For the jffs2 support*/

The extra char in the Title was fix before pushed
Best Regards, J.
participants (1)
-
Jean-Christophe PLAGNIOL-VILLARD