1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#pragma once
14
15enum mux_feature {
16    MUX_I2C1,
17    MUX_I2C2,
18    MUX_I2C3,
19    MUX_GPIO0_CLKO1,
20    MUX_UART1,
21    NMUX_FEATURES
22};
23
24/**
25 * Initialise the mux subsystem with pre-mapped regions.
26 * @param[in]  iomuxc A virtual mapping for IOMUXC of the MUX subsystem.
27 * @param[out] mux    On success, this will be filled with the appropriate
28 *                    subsystem data.
29 * @return            0 on success
30 */
31int imx6_mux_init(void* iomuxc, mux_sys_t* mux);
32
33