summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVikas Singh <vikas.singh@puresoftware.com>2020-07-21 21:02:28 +0530
committerXiaobo Xie <xiaobo.xie@nxp.com>2022-05-30 13:06:55 +0200
commit80cbc6889dad4f640a745e75d5702673d6bd9150 (patch)
tree0d063319879ca259bb21ddcdba9930865ed261bd /drivers
parent6809b4d8f301e24ba9588868c61cf9d78c84d41c (diff)
soc: fsl: qbman: add BMan CCSR ACPI support
Add ACPI support for the Buffer Manager CCSR driver so that it can be probed in both DT and ACPI cases. Signed-off-by: Vikas Singh <vikas.singh@puresoftware.com> Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/fsl/qbman/bman_ccsr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/soc/fsl/qbman/bman_ccsr.c b/drivers/soc/fsl/qbman/bman_ccsr.c
index cb24a08be084..6aa73bf132ff 100644
--- a/drivers/soc/fsl/qbman/bman_ccsr.c
+++ b/drivers/soc/fsl/qbman/bman_ccsr.c
@@ -1,4 +1,5 @@
/* Copyright (c) 2009 - 2016 Freescale Semiconductor, Inc.
+ * Copyright 2020 Puresoftware Ltd.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -29,6 +30,7 @@
*/
#include "bman_priv.h"
+#include <linux/acpi.h>
u16 bman_ip_rev;
EXPORT_SYMBOL(bman_ip_rev);
@@ -298,6 +300,7 @@ static int fsl_bman_probe(struct platform_device *pdev)
__bman_probed = 1;
+ dev_dbg(dev, "Bman probed successfully [%d]\n", __bman_probed);
return 0;
};
@@ -308,10 +311,15 @@ static const struct of_device_id fsl_bman_ids[] = {
{}
};
+static const struct acpi_device_id fsl_bman_acpi_ids[] = {
+ {"NXP0021", 0}
+};
+
static struct platform_driver fsl_bman_driver = {
.driver = {
.name = KBUILD_MODNAME,
.of_match_table = fsl_bman_ids,
+ .acpi_match_table = ACPI_PTR(fsl_bman_acpi_ids),
.suppress_bind_attrs = true,
},
.probe = fsl_bman_probe,