#include <linux/virtio_ring.h>
#include <linux/imx_rpmsg.h>
#include <linux/mx8_mu.h>
+#ifdef CONFIG_ARCH_MXC_ARM64
#include <soc/imx8/sc/sci.h>
#include <soc/imx8/sc/svc/irq/api.h>
+#endif
#include "rpmsg_internal.h"
enum imx_rpmsg_variants {
static int imx_rpmsg_partion_notify0(struct notifier_block *nb,
unsigned long event, void *group)
{
+#ifdef CONFIG_ARCH_MXC_ARM64
struct imx_rpmsg_vproc *rpdev = &imx_rpmsg_vprocs[0];
/* Ignore other irqs */
imx_rpmsg_restore(rpdev);
pr_info("Patition%d reset!\n", rpdev->mub_partition);
-
+#endif
return 0;
}
static int imx_rpmsg_partion_notify1(struct notifier_block *nb,
unsigned long event, void *group)
{
+#ifdef CONFIG_ARCH_MXC_ARM64
struct imx_rpmsg_vproc *rpdev = &imx_rpmsg_vprocs[1];
/* Ignore other irqs */
imx_rpmsg_restore(rpdev);
pr_info("Patition%d reset!\n", rpdev->mub_partition);
-
+#endif
return 0;
}
platform_set_drvdata(pdev, rpdev);
+#ifdef CONFIG_ARCH_MXC_ARM64
if (rpdev->variant == IMX8QXP || rpdev->variant == IMX8QM) {
uint32_t mu_id;
sc_err_t sciErr;
return register_scu_notifier(rpdev->pnotifier);
}
+#endif
return ret;