[PATCH v1.0 2/4] TS72XX: Allow to override machine ID

Matthieu Crapet mcrapet at gmail.com
Sun Oct 4 07:05:26 EDT 2009


Christian,

This can't be acked, it's pure hack!


Christian Gagneraud wrote:
> From: Matthieu Crapet <mcrapet at gmail.com>
>
> In early days Technologic Systems fixed the 0x163 value in redboot
> instead of 0x2a1, this patch allow to overwrite it.
>
> Signed-off-by: Matthieu Crapet <mcrapet at gmail.com>
> Signed-off-by: Christian Gagneraud <cgagneraud at techworks.ie>
> ---
>
>  arch/arm/kernel/head.S       |    3 +++
>  arch/arm/mach-ep93xx/Kconfig |    7 +++++++
>  2 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
> index 38ccbe1..c2e4514 100644
> --- a/arch/arm/kernel/head.S
> +++ b/arch/arm/kernel/head.S
> @@ -82,6 +82,9 @@ ENTRY(stext)
>  	bl	__lookup_processor_type		@ r5=procinfo r9=cpuid
>  	movs	r10, r5				@ invalid processor (r5=0)?
>  	beq	__error_p			@ yes, error 'p'
> +#ifdef CONFIG_MACH_TS72XX_FORCE_MACHINEID
> +	ldr r1, =0x2a1
> +#endif
>  	bl	__lookup_machine_type		@ r5=machinfo
>  	movs	r8, r5				@ invalid machine (r5=0)?
>  	beq	__error_a			@ yes, error 'a'
> diff --git a/arch/arm/mach-ep93xx/Kconfig b/arch/arm/mach-ep93xx/Kconfig
> index 303c4f8..a909303 100644
> --- a/arch/arm/mach-ep93xx/Kconfig
> +++ b/arch/arm/mach-ep93xx/Kconfig
> @@ -191,6 +191,13 @@ config EP93XX_EARLY_UART3
>  
>  endchoice
>  
> +config MACH_TS72XX_FORCE_MACHINEID
> +	bool "Force Machine ID"
> +	depends on MACH_TS72XX
> +	help
> +	  Say 'Y' here to force Machine ID to 0x2A1 (MACH_TYPE_TS72XX legacy value)
> +	  In early days Technologic Systems fixed the 0x163 value in redboot.
> +
>  endmenu
>  
>  endif
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
>   




More information about the linux-arm-kernel mailing list