From 80cbc6889dad4f640a745e75d5702673d6bd9150 Mon Sep 17 00:00:00 2001 From: Vikas Singh Date: Tue, 21 Jul 2020 21:02:28 +0530 Subject: 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 Signed-off-by: Camelia Groza --- drivers/soc/fsl/qbman/bman_ccsr.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers') 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 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, -- cgit v1.2.3