blob: 723064716a197750755bae0295e2e0b2b5dda233 [file] [log] [blame]
Bryan O'Donoghue1c7bbca2018-06-20 16:56:31 +01001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <mmio.h>
8#include <imx_regs.h>
9#include <imx_io_mux.h>
10
11void imx_io_muxc_set_pad_alt_function(uint32_t pad_mux_offset, uint32_t alt_function)
12{
13 uintptr_t addr = (uintptr_t)(MXC_IO_MUXC_BASE + pad_mux_offset);
14
15 mmio_write_32(addr, alt_function);
16}
17
18void imx_io_muxc_set_pad_features(uint32_t pad_feature_offset, uint32_t pad_features)
19{
20 uintptr_t addr = (uintptr_t)(MXC_IO_MUXC_BASE + pad_feature_offset);
21
22 mmio_write_32(addr, pad_features);
23}