blob: 852f32e81cb6340226bf89ab53db7a4fa9ff46db [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// THIS FILE HAS BEEN GENERATED, DO NOT EDIT MANUALLY. COMMAND:
// util/make_new_dif.py --mode=regen --only=autogen
#include "sw/device/lib/dif/autogen/dif_smc_ctrl_autogen.h"
#include <stdint.h>
#include "smc_ctrl_regs.h" // Generated.
OT_WARN_UNUSED_RESULT
dif_result_t dif_smc_ctrl_init(mmio_region_t base_addr,
dif_smc_ctrl_t *smc_ctrl) {
if (smc_ctrl == NULL) {
return kDifBadArg;
}
smc_ctrl->base_addr = base_addr;
return kDifOk;
}