Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1495735
| From | Neil Armstrong <narmstrong@baylibre.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 4/8] scpi: Add support for Legacy match table for Amlogic GXBB SoC |
| Date | 2016-10-05 09:40 +0200 |
| Message-ID | <soOY1-67p-19@gated-at.bofh.it> (permalink) |
| References | <soOY1-67p-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add new DT match table to setup the is_legacy boolean value across
the scpi functions.
Add the Amlogic GXBB SoC compatible for platform and as legacy match entry.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/firmware/arm_scpi.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
index 1fb3bbf..21fafbe 100644
--- a/drivers/firmware/arm_scpi.c
+++ b/drivers/firmware/arm_scpi.c
@@ -895,6 +895,11 @@ static int scpi_alloc_xfer_list(struct device *dev, struct scpi_chan *ch)
return 0;
}
+static const struct of_device_id legacy_scpi_of_match[] = {
+ {.compatible = "amlogic,meson-gxbb-scpi"},
+ {},
+};
+
static int scpi_probe(struct platform_device *pdev)
{
int count, idx, ret;
@@ -907,6 +912,9 @@ static int scpi_probe(struct platform_device *pdev)
if (!scpi_info)
return -ENOMEM;
+ if (of_match_device(legacy_scpi_of_match, &pdev->dev))
+ scpi_info->is_legacy = true;
+
count = of_count_phandle_with_args(np, "mboxes", "#mbox-cells");
if (count < 0) {
dev_err(dev, "no mboxes property in '%s'\n", np->full_name);
@@ -1009,6 +1017,7 @@ static int scpi_probe(struct platform_device *pdev)
static const struct of_device_id scpi_of_match[] = {
{.compatible = "arm,scpi"},
+ {.compatible = "amlogic,meson-gxbb-scpi"},
{},
};
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/8] Add support for legacy SCPI protocol Neil Armstrong <narmstrong@baylibre.com> - 2016-10-05 09:40 +0200
[PATCH v4 3/8] scpi: Do not fail if get_capabilities is not implemented Neil Armstrong <narmstrong@baylibre.com> - 2016-10-05 09:40 +0200
[PATCH v4 4/8] scpi: Add support for Legacy match table for Amlogic GXBB SoC Neil Armstrong <narmstrong@baylibre.com> - 2016-10-05 09:40 +0200
[PATCH v4 2/8] scpi: Add alternative legacy structures, functions and macros Neil Armstrong <narmstrong@baylibre.com> - 2016-10-05 09:40 +0200
Re: [PATCH v4 2/8] scpi: Add alternative legacy structures, functions and macros Sudeep Holla <sudeep.holla@arm.com> - 2016-10-10 16:40 +0200
[PATCH v4 6/8] dt-bindings: Add support for Amlogic GXBB SCPI Interface Neil Armstrong <narmstrong@baylibre.com> - 2016-10-05 09:40 +0200
[PATCH v4 5/8] scpi: grow MAX_DVFS_OPPS to 16 entries Neil Armstrong <narmstrong@baylibre.com> - 2016-10-05 09:40 +0200
csiph-web