linux/drivers/remoteproc/meson_mx_ao_arc.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2020 Martin Blumenstingl <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/genalloc.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/remoteproc.h>
#include <linux/reset.h>
#include <linux/sizes.h>

#include "remoteproc_internal.h"

#define AO_REMAP_REG0
#define AO_REMAP_REG0_REMAP_AHB_SRAM_BITS_17_14_FOR_ARM_CPU

#define AO_REMAP_REG1
#define AO_REMAP_REG1_MOVE_AHB_SRAM_TO_0X0_INSTEAD_OF_DDR
#define AO_REMAP_REG1_REMAP_AHB_SRAM_BITS_17_14_FOR_MEDIA_CPU

#define AO_CPU_CNTL
#define AO_CPU_CNTL_AHB_SRAM_BITS_31_20
#define AO_CPU_CNTL_HALT
#define AO_CPU_CNTL_UNKNONWN
#define AO_CPU_CNTL_RUN

#define AO_CPU_STAT

#define AO_SECURE_REG0
#define AO_SECURE_REG0_AHB_SRAM_BITS_19_12

/* Only bits [31:20] and [17:14] are usable, all other bits must be zero */
#define MESON_AO_RPROC_SRAM_USABLE_BITS

#define MESON_AO_RPROC_MEMORY_OFFSET

struct meson_mx_ao_arc_rproc_priv {};

static int meson_mx_ao_arc_rproc_start(struct rproc *rproc)
{}

static int meson_mx_ao_arc_rproc_stop(struct rproc *rproc)
{}

static void *meson_mx_ao_arc_rproc_da_to_va(struct rproc *rproc, u64 da,
					    size_t len, bool *is_iomem)
{}

static struct rproc_ops meson_mx_ao_arc_rproc_ops =;

static int meson_mx_ao_arc_rproc_probe(struct platform_device *pdev)
{}

static void meson_mx_ao_arc_rproc_remove(struct platform_device *pdev)
{}

static const struct of_device_id meson_mx_ao_arc_rproc_match[] =;
MODULE_DEVICE_TABLE(of, meson_mx_ao_arc_rproc_match);

static struct platform_driver meson_mx_ao_arc_rproc_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();