linux/drivers/bus/stm32_etzpc.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2023, STMicroelectronics - All Rights Reserved
 */

#include <linux/bitfield.h>
#include <linux/bits.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/types.h>

#include "stm32_firewall.h"

/*
 * ETZPC registers
 */
#define ETZPC_DECPROT
#define ETZPC_HWCFGR

/*
 * HWCFGR register
 */
#define ETZPC_HWCFGR_NUM_TZMA
#define ETZPC_HWCFGR_NUM_PER_SEC
#define ETZPC_HWCFGR_NUM_AHB_SEC
#define ETZPC_HWCFGR_CHUNKS1N4

/*
 * ETZPC miscellaneous
 */
#define ETZPC_PROT_MASK
#define ETZPC_PROT_A7NS
#define ETZPC_DECPROT_SHIFT

#define IDS_PER_DECPROT_REGS

static int stm32_etzpc_grant_access(struct stm32_firewall_controller *ctrl, u32 firewall_id)
{}

static void stm32_etzpc_release_access(struct stm32_firewall_controller *ctrl __maybe_unused,
				       u32 firewall_id __maybe_unused)
{}

static int stm32_etzpc_probe(struct platform_device *pdev)
{}

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

static struct platform_driver stm32_etzpc_driver =;
module_platform_driver();

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