2 * Copyright (C) 2016 Imagination Technologies
3 * Author: Paul Burton <paul.burton@mips.com>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
13 #include <asm/bootinfo.h>
15 const char *get_system_type(void)
20 err = of_property_read_string(of_root, "model", &str);
24 err = of_property_read_string_index(of_root, "compatible", 0, &str);