blob: e707245fed73ef51b69cbfdfe0b8e3d113ad976f [file] [log] [blame]
Christopher N. Hesse357950e2016-12-29 20:32:22 +01001/* tools/mkbootimg/samsung_dtbh.h
2**
3** Copyright 2016, The LineageOS Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9** http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17
18#ifndef _SAMSUNG_DTBH_H_
19#define _SAMSUNG_DTBH_H_
20
21/*
22 * This is an example of how this header should look like.
23 * You need to extract the values for your target manually.
24 */
25
26#if 0 // DUMMY
27#define DTBH_MAGIC "DTBH"
28#define DTBH_VERSION 2
29#define DTBH_PLATFORM "k3g"
30#define DTBH_SUBTYPE "k3g_eur_open"
31/* Hardcoded entry */
32#define DTBH_PLATFORM_CODE 0x1e92
33#define DTBH_SUBTYPE_CODE 0x7d64f612
34
35/* DTBH_MAGIC + DTBH_VERSION + DTB counts */
36#define DT_HEADER_PHYS_SIZE 12
37
38/*
39 * keep the eight uint32_t entries first in this struct so we can memcpy them to the file
40 */
41#define DT_ENTRY_PHYS_SIZE (sizeof(uint32_t) * 8)
42#endif // DUMMY
43
44#endif // _SAMSUNG_DTBH_H_