xref: /arm-trusted-firmware/plat/intel/soc/common/drivers/combophy/combophy.h (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu /*
2*91f16700Schasinglulu  * Copyright (c) 2022-2023, Intel Corporation. All rights reserved.
3*91f16700Schasinglulu  *
4*91f16700Schasinglulu  * SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu  */
6*91f16700Schasinglulu 
7*91f16700Schasinglulu #ifndef COMBOPHY_H
8*91f16700Schasinglulu #define COMBOPHY_H
9*91f16700Schasinglulu 
10*91f16700Schasinglulu #include <lib/mmio.h>
11*91f16700Schasinglulu 
12*91f16700Schasinglulu #include "socfpga_handoff.h"
13*91f16700Schasinglulu 
14*91f16700Schasinglulu #define PERIPHERAL_SDMMC_MASK		0x60
15*91f16700Schasinglulu #define PERIPHERAL_SDMMC_OFFSET		6
16*91f16700Schasinglulu #define DFI_INTF_MASK			0x1
17*91f16700Schasinglulu 
18*91f16700Schasinglulu /* FUNCTION DEFINATION */
19*91f16700Schasinglulu /*
20*91f16700Schasinglulu  * @brief Nand controller initialization function
21*91f16700Schasinglulu  *
22*91f16700Schasinglulu  * @hoff_ptr: Pointer to the hand-off data
23*91f16700Schasinglulu  * Return: 0 on success, a negative errno on failure
24*91f16700Schasinglulu  */
25*91f16700Schasinglulu int combo_phy_init(handoff *hoff_ptr);
26*91f16700Schasinglulu int dfi_select(handoff *hoff_ptr);
27*91f16700Schasinglulu 
28*91f16700Schasinglulu #endif
29