blob: 77289a12464bbfb01df6644cf90f5a54562cc345 [file] [log] [blame]
Ronald G. Minnich98312442016-02-12 22:37:48 +00001/*
Timothy Pearson66959012016-03-09 17:21:33 -06002 * Early initialization code for POWER8.
Ronald G. Minnich98312442016-02-12 22:37:48 +00003 *
Timothy Pearson66959012016-03-09 17:21:33 -06004 * Copyright 2016 Raptor Engineering, LLC
Ronald G. Minnich98312442016-02-12 22:37:48 +00005 * Copyright 2013 Google Inc.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; version 2 of
10 * the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
15 * GNU General Public License for more details.
16 */
17
18.section ".text._start", "ax", %progbits
19.globl _start
Timothy Pearson66959012016-03-09 17:21:33 -060020.org 0x100, 0xff
Ronald G. Minnich98312442016-02-12 22:37:48 +000021_start:
22 b _start
23 .section ".id", "a", %progbits
24
25 .section ".id", "a", @progbits
26
27 .globl __id_start
28__id_start:
29ver:
30 .asciz "4" //COREBOOT_VERSION
31vendor:
32 .asciz "qemu" //CONFIG_MAINBOARD_VENDOR
33part:
34 .asciz "1" //CONFIG_MAINBOARD_PART_NUMBER
35 /* Reverse offset to the vendor id */
36.long __id_end + CONFIG_ID_SECTION_OFFSET - ver
37 /* Reverse offset to the vendor id */
38.long __id_end + CONFIG_ID_SECTION_OFFSET - vendor
39 /* Reverse offset to the part number */
40.long __id_end + CONFIG_ID_SECTION_OFFSET - part
41 /* of this romimage */
42.long CONFIG_ROM_SIZE
43 .globl __id_end
44
45__id_end:
46.previous