bus: fsl-mc: add support for dpdcei device type
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
9cc7ca6406
commit
9e83de8d50
|
@ -298,6 +298,10 @@ struct device_type fsl_mc_bus_dpseci_type = {
|
|||
.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_device_type(const char *type)
|
|||
{ &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;
|
||||
|
|
|
@ -423,6 +423,7 @@ extern struct device_type fsl_mc_bus_dpmcp_type;
|
|||
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(const struct fsl_mc_device *mc_dev)
|
|||
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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue