Used on BCM7xxx Set-Top Box chips (e.g., BCM7445). Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>tirimbino
parent
1f3e9a6eda
commit
d52fad2620
@ -0,0 +1,9 @@ |
||||
menuconfig SOC_BRCMSTB |
||||
bool "Broadcom STB SoC drivers" |
||||
depends on ARM |
||||
help |
||||
Enables drivers for the Broadcom Set-Top Box (STB) series of chips. |
||||
This option alone enables only some support code, while the drivers |
||||
can be enabled individually within this menu. |
||||
|
||||
If unsure, say N. |
@ -0,0 +1 @@ |
||||
obj-y += common.o
|
@ -0,0 +1,33 @@ |
||||
/*
|
||||
* Copyright © 2014 NVIDIA Corporation |
||||
* Copyright © 2015 Broadcom Corporation |
||||
* |
||||
* 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. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
*/ |
||||
|
||||
#include <linux/of.h> |
||||
|
||||
#include <soc/brcmstb/common.h> |
||||
|
||||
static const struct of_device_id brcmstb_machine_match[] = { |
||||
{ .compatible = "brcm,brcmstb", }, |
||||
{ } |
||||
}; |
||||
|
||||
bool soc_is_brcmstb(void) |
||||
{ |
||||
struct device_node *root; |
||||
|
||||
root = of_find_node_by_path("/"); |
||||
if (!root) |
||||
return false; |
||||
|
||||
return of_match_node(brcmstb_machine_match, root) != NULL; |
||||
} |
@ -0,0 +1,15 @@ |
||||
/*
|
||||
* Copyright © 2014 NVIDIA Corporation |
||||
* Copyright © 2015 Broadcom Corporation |
||||
* |
||||
* 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. |
||||
*/ |
||||
|
||||
#ifndef __SOC_BRCMSTB_COMMON_H__ |
||||
#define __SOC_BRCMSTB_COMMON_H__ |
||||
|
||||
bool soc_is_brcmstb(void); |
||||
|
||||
#endif /* __SOC_BRCMSTB_COMMON_H__ */ |
Loading…
Reference in new issue