/*-1* SPDX-License-Identifier: BSD-4-Clause2*3* Copyright (c) 20104* Ben Gray <[email protected]>.5* All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted provided that the following conditions9* are met:10* 1. Redistributions of source code must retain the above copyright11* notice, this list of conditions and the following disclaimer.12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15* 3. All advertising materials mentioning features or use of this software16* must display the following acknowledgement:17* This product includes software developed by Ben Gray.18* 4. The name of the company nor the name of the author may be used to19* endorse or promote products derived from this software without specific20* prior written permission.21*22* THIS SOFTWARE IS PROVIDED BY BEN GRAY ``AS IS'' AND ANY EXPRESS OR23* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES24* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.25* IN NO EVENT SHALL BEN GRAY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,26* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,27* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;28* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,29* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR30* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF31* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.32*/3334/**35* Functions to configure the PIN multiplexing on the chip.36*37* This is different from the GPIO module in that it is used to configure the38* pins between modules not just GPIO input output.39*40*/41#ifndef _TI_SCM_H_42#define _TI_SCM_H_4344struct ti_scm_softc {45device_t sc_dev;46struct resource * sc_res[4];47bus_space_tag_t sc_bst;48bus_space_handle_t sc_bsh;49};5051int ti_scm_reg_read_4(uint32_t reg, uint32_t *val);52int ti_scm_reg_write_4(uint32_t reg, uint32_t val);5354#endif /* _TI_SCM_H_ */555657