pm9g45: add mach-type localy for the board
PATCH 1/1 pm9g45: add mach-type localy for the board
Signed-off-by Asen Chavdarov Dimov <[email protected]>
--- board/ronetix/pm9g45/mach-type.h | 31 +++++++++++++++++++++++++++++++ board/ronetix/pm9g45/pm9g45.c | 1 + 2 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 board/ronetix/pm9g45/mach-type.h
board/ronetix/pm9g45/mach-type.h new file +31 -0
@@ -0,0 +1,31 @@ +/* +* This was manually generated from arch/arm/include/asm/mach-types.h +* and add this machine ID removed with commit +* 47af6f61bcd9fdd5dcf389cff0a7406eba756c6. +* Do fix this. +*/ + +#ifndef __ASM_ARM_MACH_TYPE_PM9G45_H +#define __ASM_ARM_MACH_TYPE_PM9G45_H + +#ifndef __ASSEMBLY__ +/* The type of machine we're running on */ +extern unsigned int __machine_arch_type; +#endif + +/* see arch/arm/kernel/arch.c for a description of these */ +#define MACH_TYPE_PM9G45 2672 + +#ifdef CONFIG_MACH_PM9G45 +# ifdef machine_arch_type +# undef machine_arch_type +# define machine_arch_type __machine_arch_type +# else +# define machine_arch_type MACH_TYPE_PM9G45 +# endif +# define machine_is_pm9g45 () (machine_arch_type == MACH_TYPE_PM9G45) +#else +# define machine_is_pm9g45 () (0) +#endif + +#endif
board/ronetix/pm9g45/pm9g45.c +1 -0
@@ -28,6 +28,7 @@*/ #include <common.h> +#include "mach-type.h" #include <asm/sizes.h> #include <asm/io.h> #include <asm/arch/at91sam9_smc.h>
Signature · 1 line
1.7.4.4
PATCH 1/1 pm9g45: add mach-type localy for the board
Hi Asen,
Same comments as for pm9261, hold here.
Quoted 57 lines · Asen Chavdarov Dimov
Signed-off-by Asen Chavdarov Dimov <[email protected]>--- board/ronetix/pm9g45/mach-type.h | 31 +++++++++++++++++++++++++++++++ board/ronetix/pm9g45/pm9g45.c | 1 + 2 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 board/ronetix/pm9g45/mach-type.hboard/ronetix/pm9g45/mach-type.h new file +31
-0@@ -0,0 +1,31 @@ +/* +* This was manually generated from arch/arm/include/asm/mach-types.h +* and add this machine ID removed with commit +* 47af6f61bcd9fdd5dcf389cff0a7406eba756c6. +* Do fix this. +*/ + +#ifndef __ASM_ARM_MACH_TYPE_PM9G45_H +#define __ASM_ARM_MACH_TYPE_PM9G45_H + +#ifndef __ASSEMBLY__ +/* The type of machine we're running on */ +extern unsigned int __machine_arch_type; +#endif + +/* see arch/arm/kernel/arch.c for a description of these */ +#define MACH_TYPE_PM9G45 2672 + +#ifdef CONFIG_MACH_PM9G45 +# ifdef machine_arch_type +# undef machine_arch_type +# define machine_arch_type __machine_arch_type +# else +# define machine_arch_type MACH_TYPE_PM9G45 +# endif +# define machine_is_pm9g45 () (machine_arch_type == MACH_TYPE_PM9G45) +#else +# define machine_is_pm9g45 () (0) +#endif + +#endif board/ronetix/pm9g45/pm9g45.c +1
-0@@ -28,6 +28,7 @@*/ #include <common.h> +#include "mach-type.h" #include <asm/sizes.h> #include <asm/io.h> #include <asm/arch/at91sam9_smc.h>
Signature · 2 lines
Regards, Igor.