pinctrl: cherryview: Prevent possible interrupt storm on resume
[linux/fpc-iii.git] / arch / mips / generic / proc.c
blob42b33250a4a2e05985247bd2be2b84f1de0ff4ff
1 /*
2 * Copyright (C) 2016 Imagination Technologies
3 * Author: Paul Burton <paul.burton@imgtec.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.
9 */
11 #include <linux/of.h>
13 #include <asm/bootinfo.h>
15 const char *get_system_type(void)
17 const char *str;
18 int err;
20 err = of_property_read_string(of_root, "model", &str);
21 if (!err)
22 return str;
24 err = of_property_read_string_index(of_root, "compatible", 0, &str);
25 if (!err)
26 return str;
28 return "Unknown";