]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/common.h
karo: tx6: factor out PMIC initialization
[karo-tx-uboot.git] / include / common.h
index 72c02ab1813f39746882f9179b56366be6afce28..5d502c1b545207ecb20d75407aed120980508ee6 100644 (file)
@@ -405,6 +405,7 @@ static inline int setenv_addr(const char *varname, const void *addr)
 #endif
 #ifdef CONFIG_NDS32
 # include <asm/mach-types.h>
+# include <asm/setup.h>
 # include <asm/u-boot-nds32.h>
 #endif /* CONFIG_NDS32 */
 #ifdef CONFIG_MIPS
@@ -809,6 +810,7 @@ char *      strmhz(char *buf, unsigned long hz);
 /* lib/rand.c */
 #if defined(CONFIG_RANDOM_MACADDR) || \
        defined(CONFIG_BOOTP_RANDOM_DELAY) || \
+       defined(CONFIG_BOOTP_RANDOM_ID) || \
        defined(CONFIG_CMD_LINK_LOCAL)
 #define RAND_MAX -1U
 void srand(unsigned int seed);