You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
866 B
36 lines
866 B
/*
|
|
* Copyright (C) 2014 NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/of.h>
|
|
|
|
#include <soc/tegra/common.h>
|
|
|
|
static const struct of_device_id tegra_machine_match[] = {
|
|
{ .compatible = "nvidia,tegra20", },
|
|
{ .compatible = "nvidia,tegra30", },
|
|
{ .compatible = "nvidia,tegra114", },
|
|
{ .compatible = "nvidia,tegra124", },
|
|
{ .compatible = "nvidia,tegra132", },
|
|
{ .compatible = "nvidia,tegra210", },
|
|
{ }
|
|
};
|
|
|
|
bool soc_is_tegra(void)
|
|
{
|
|
const struct of_device_id *match;
|
|
struct device_node *root;
|
|
|
|
root = of_find_node_by_path("/");
|
|
if (!root)
|
|
return false;
|
|
|
|
match = of_match_node(tegra_machine_match, root);
|
|
of_node_put(root);
|
|
|
|
return match != NULL;
|
|
}
|
|
|