
On 03/01/2012 02:13 PM, Troy Kisky wrote:
This updates u-boot to the same as the Dec 6, 2011 mach-types upate to Linux.
diff --git a/include/configs/ventana.h b/include/configs/ventana.h
#define CONFIG_MACH_VENTANA +/*
- FIXME: This belongs in mach-types.h. However, we only pull mach-types
- from Linus' kernel.org tree.
- */
+#include <asm/mach-types.h> +#ifdef MACH_TYPE_VENTANA +#error "MACH_TYPE_VENTANA has been defined properly, please remove this." +#else +#define MACH_TYPE_VENTANA 2927 +#ifdef CONFIG_MACH_VENTANA +# define machine_is_ventana() (MACH_TYPE_VENTANA == MACH_TYPE_VENTANA) +#else +# define machine_is_ventana() (0) +#endif +#endif
I'm curious how Seaboard still builds after this change; presumably ventana.h isn't included in the Seaboard build because the build isn't for Ventana, yet without ventana.h included, machine_is_ventana() doesn't exist.