You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
From 6de672cdae08f6dbd94c115481f3472a7af50c19 Mon Sep 17 00:00:00 2001
|
|
From: Ioana Ciornei <ioana.ciornei@nxp.com>
|
|
Date: Wed, 25 Apr 2018 13:35:16 +0300
|
|
Subject: [PATCH] bus: fsl-mc: add support for dpdcei device type
|
|
|
|
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
|
|
---
|
|
drivers/bus/fsl-mc/fsl-mc-bus.c | 5 +++++
|
|
include/linux/fsl/mc.h | 6 ++++++
|
|
2 files changed, 11 insertions(+)
|
|
|
|
--- a/drivers/bus/fsl-mc/fsl-mc-bus.c
|
|
+++ b/drivers/bus/fsl-mc/fsl-mc-bus.c
|
|
@@ -298,6 +298,10 @@ struct device_type fsl_mc_bus_dpseci_typ
|
|
.name = "fsl_mc_bus_dpseci"
|
|
};
|
|
|
|
+struct device_type fsl_mc_bus_dpdcei_type = {
|
|
+ .name = "fsl_mc_bus_dpdcei"
|
|
+};
|
|
+
|
|
static struct device_type *fsl_mc_get_device_type(const char *type)
|
|
{
|
|
static const struct {
|
|
@@ -315,6 +319,7 @@ static struct device_type *fsl_mc_get_de
|
|
{ &fsl_mc_bus_dpmac_type, "dpmac" },
|
|
{ &fsl_mc_bus_dprtc_type, "dprtc" },
|
|
{ &fsl_mc_bus_dpseci_type, "dpseci" },
|
|
+ { &fsl_mc_bus_dpdcei_type, "dpdcei" },
|
|
{ NULL, NULL }
|
|
};
|
|
int i;
|
|
--- a/include/linux/fsl/mc.h
|
|
+++ b/include/linux/fsl/mc.h
|
|
@@ -423,6 +423,7 @@ extern struct device_type fsl_mc_bus_dpm
|
|
extern struct device_type fsl_mc_bus_dpmac_type;
|
|
extern struct device_type fsl_mc_bus_dprtc_type;
|
|
extern struct device_type fsl_mc_bus_dpseci_type;
|
|
+extern struct device_type fsl_mc_bus_dpdcei_type;
|
|
|
|
static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev)
|
|
{
|
|
@@ -479,6 +480,11 @@ static inline bool is_fsl_mc_bus_dpseci(
|
|
return mc_dev->dev.type == &fsl_mc_bus_dpseci_type;
|
|
}
|
|
|
|
+static inline bool is_fsl_mc_bus_dpdcei(const struct fsl_mc_device *mc_dev)
|
|
+{
|
|
+ return mc_dev->dev.type == &fsl_mc_bus_dpdcei_type;
|
|
+}
|
|
+
|
|
/*
|
|
* Data Path Resource Container (DPRC) API
|
|
*/
|