| Alexey Charkov | 21f47fb | 2010-12-23 13:11:21 +0100 | [diff] [blame] | 1 | /* | 
|  | 2 | * linux/arch/arm/boot/compressed/head-vt8500.S | 
|  | 3 | * | 
|  | 4 | * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com> | 
|  | 5 | * | 
|  | 6 | * VIA VT8500 specific tweaks. This is merged into head.S by the linker. | 
|  | 7 | * | 
|  | 8 | */ | 
|  | 9 |  | 
|  | 10 | #include <linux/linkage.h> | 
|  | 11 | #include <asm/mach-types.h> | 
|  | 12 |  | 
|  | 13 | .section        ".start", "ax" | 
|  | 14 |  | 
|  | 15 | __VT8500_start: | 
|  | 16 | @ Compare the SCC ID register against a list of known values | 
|  | 17 | ldr	r1, .SCCID | 
|  | 18 | ldr	r3, [r1] | 
|  | 19 |  | 
|  | 20 | @ VT8500 override | 
|  | 21 | ldr	r4, .VT8500SCC | 
|  | 22 | cmp	r3, r4 | 
|  | 23 | ldreq	r7, .ID_BV07 | 
|  | 24 | beq	.Lendvt8500 | 
|  | 25 |  | 
|  | 26 | @ WM8505 override | 
|  | 27 | ldr	r4, .WM8505SCC | 
|  | 28 | cmp	r3, r4 | 
|  | 29 | ldreq	r7, .ID_8505 | 
|  | 30 | beq	.Lendvt8500 | 
|  | 31 |  | 
|  | 32 | @ Otherwise, leave the bootloader's machine id untouched | 
|  | 33 |  | 
|  | 34 | .SCCID: | 
|  | 35 | .word	0xd8120000 | 
|  | 36 | .VT8500SCC: | 
|  | 37 | .word	0x34000102 | 
|  | 38 | .WM8505SCC: | 
|  | 39 | .word	0x34260103 | 
|  | 40 |  | 
|  | 41 | .ID_BV07: | 
|  | 42 | .word	MACH_TYPE_BV07 | 
|  | 43 | .ID_8505: | 
|  | 44 | .word	MACH_TYPE_WM8505_7IN_NETBOOK | 
|  | 45 |  | 
|  | 46 | .Lendvt8500: |