blob: 9faa9a5cbdf036bf167a3ebf0499cf0e3d1d38ca [file] [log] [blame]
Grant Likelye169cfb2009-11-23 14:53:09 -07001/*
2 * Functions for working with the Flattened Device Tree data format
3 *
4 * Copyright 2009 Benjamin Herrenschmidt, IBM Corp
5 * benh@kernel.crashing.org
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
9 * version 2 as published by the Free Software Foundation.
10 */
11
12#include <linux/of.h>
13#include <linux/of_fdt.h>
14
15struct boot_param_header *initial_boot_params;
16
17char *find_flat_dt_string(u32 offset)
18{
19 return ((char *)initial_boot_params) +
20 initial_boot_params->off_dt_strings + offset;
21}