1960e65d2SAdrian Chadd /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3960e65d2SAdrian Chadd * 4960e65d2SAdrian Chadd * Copyright (c) 2021 Adrian Chadd <adrian@FreeBSD.org> 5960e65d2SAdrian Chadd * 6960e65d2SAdrian Chadd * Redistribution and use in source and binary forms, with or without 7960e65d2SAdrian Chadd * modification, are permitted provided that the following conditions 8960e65d2SAdrian Chadd * are met: 9960e65d2SAdrian Chadd * 1. Redistributions of source code must retain the above copyright 10960e65d2SAdrian Chadd * notice, this list of conditions and the following disclaimer. 11960e65d2SAdrian Chadd * 2. Redistributions in binary form must reproduce the above copyright 12960e65d2SAdrian Chadd * notice, this list of conditions and the following disclaimer in the 13960e65d2SAdrian Chadd * documentation and/or other materials provided with the distribution. 14960e65d2SAdrian Chadd * 15960e65d2SAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16960e65d2SAdrian Chadd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17960e65d2SAdrian Chadd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18960e65d2SAdrian Chadd * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19960e65d2SAdrian Chadd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20960e65d2SAdrian Chadd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21960e65d2SAdrian Chadd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22960e65d2SAdrian Chadd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23960e65d2SAdrian Chadd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24960e65d2SAdrian Chadd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25960e65d2SAdrian Chadd * SUCH DAMAGE. 26960e65d2SAdrian Chadd */ 27960e65d2SAdrian Chadd 28960e65d2SAdrian Chadd #ifndef __QCOM_SCM_LEGACY_H__ 29960e65d2SAdrian Chadd #define __QCOM_SCM_LEGACY_H__ 30960e65d2SAdrian Chadd 31960e65d2SAdrian Chadd /* 32960e65d2SAdrian Chadd * These functions are specific to the 32 bit legacy SCM interface 33960e65d2SAdrian Chadd * used by the IPQ806x and IPQ401x SoCs. 34960e65d2SAdrian Chadd */ 35960e65d2SAdrian Chadd 36960e65d2SAdrian Chadd extern uint32_t qcom_scm_legacy_mp_set_cold_boot_address( 37960e65d2SAdrian Chadd vm_offset_t mp_entry_func); 38960e65d2SAdrian Chadd 39960e65d2SAdrian Chadd #endif /* __QCOM_SCM_LEGACY_H__ */ 40