tf-a/tf-a-stm32mp-2.2.r1/plat/imx/common/imx_io_mux.c

25 lines
587 B
C
Raw Normal View History

2024-01-10 05:21:13 +00:00
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <lib/mmio.h>
#include <imx_regs.h>
#include <imx_io_mux.h>
void imx_io_muxc_set_pad_alt_function(uint32_t pad_mux_offset, uint32_t alt_function)
{
uintptr_t addr = (uintptr_t)(MXC_IO_MUXC_BASE + pad_mux_offset);
mmio_write_32(addr, alt_function);
}
void imx_io_muxc_set_pad_features(uint32_t pad_feature_offset, uint32_t pad_features)
{
uintptr_t addr = (uintptr_t)(MXC_IO_MUXC_BASE + pad_feature_offset);
mmio_write_32(addr, pad_features);
}