Add linux-next specific files for 20110831
[linux-2.6/next.git] / arch / arm / boot / compressed / head-vt8500.S
blob1dc1e21a3be3b03d73dfe7261a9573e6ecffd8ab
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  */
10 #include <linux/linkage.h>
11 #include <asm/mach-types.h>
13                 .section        ".start", "ax"
15 __VT8500_start:
16         @ Compare the SCC ID register against a list of known values
17         ldr     r1, .SCCID
18         ldr     r3, [r1]
20         @ VT8500 override
21         ldr     r4, .VT8500SCC
22         cmp     r3, r4
23         ldreq   r7, .ID_BV07
24         beq     .Lendvt8500
26         @ WM8505 override
27         ldr     r4, .WM8505SCC
28         cmp     r3, r4
29         ldreq   r7, .ID_8505
30         beq     .Lendvt8500
32         @ Otherwise, leave the bootloader's machine id untouched
34 .SCCID:
35         .word   0xd8120000
36 .VT8500SCC:
37         .word   0x34000102
38 .WM8505SCC:
39         .word   0x34260103
41 .ID_BV07:
42         .word   MACH_TYPE_BV07
43 .ID_8505:
44         .word   MACH_TYPE_WM8505_7IN_NETBOOK
46 .Lendvt8500: