blob: ca571f7b43b2f975f019adab091e3131e9951153 [file] [log] [blame]
Jit Loon Lima7f54942023-05-17 12:26:11 +08001/*
2 * Copyright (c) 2022-2023, Intel Corporation. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef COMBOPHY_H
8#define COMBOPHY_H
9
10#include <lib/mmio.h>
11
12#include "socfpga_handoff.h"
13
14#define PERIPHERAL_SDMMC_MASK 0x60
15#define PERIPHERAL_SDMMC_OFFSET 6
16#define DFI_INTF_MASK 0x1
17
18/* FUNCTION DEFINATION */
19/*
20 * @brief Nand controller initialization function
21 *
22 * @hoff_ptr: Pointer to the hand-off data
23 * Return: 0 on success, a negative errno on failure
24 */
25int combo_phy_init(handoff *hoff_ptr);
26int dfi_select(handoff *hoff_ptr);
27
28#endif