#include <linux/virtio_ring.h>
#include <linux/imx_rpmsg.h>
#include <linux/mx8_mu.h>
-#ifdef CONFIG_ARCH_MXC_ARM64
+#ifdef CONFIG_HAVE_IMX_SC
#include <soc/imx8/sc/sci.h>
#include <soc/imx8/sc/svc/irq/api.h>
#endif
static int imx_rpmsg_partion_notify0(struct notifier_block *nb,
unsigned long event, void *group)
{
-#ifdef CONFIG_ARCH_MXC_ARM64
+#ifdef CONFIG_HAVE_IMX_SC
struct imx_rpmsg_vproc *rpdev = &imx_rpmsg_vprocs[0];
/* Ignore other irqs */
static int imx_rpmsg_partion_notify1(struct notifier_block *nb,
unsigned long event, void *group)
{
-#ifdef CONFIG_ARCH_MXC_ARM64
+#ifdef CONFIG_HAVE_IMX_SC
struct imx_rpmsg_vproc *rpdev = &imx_rpmsg_vprocs[1];
/* Ignore other irqs */
platform_set_drvdata(pdev, rpdev);
-#ifdef CONFIG_ARCH_MXC_ARM64
+#ifdef CONFIG_HAVE_IMX_SC
if (rpdev->variant == IMX8QXP || rpdev->variant == IMX8QM) {
uint32_t mu_id;
sc_err_t sciErr;