blob: 89851ef71626cab0d8028983cc451ea062da39ba [file] [log] [blame]
Loh Tien Hock59400a42019-02-04 16:17:24 +08001/*
2 * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __S10_PRIVATE_H__
8#define __S10_PRIVATE_H__
9
10#define S10_MMC_REG_BASE 0xff808000
11
12#define EMMC_DESC_SIZE (1<<20)
13#define EMMC_INIT_PARAMS(base) \
14 { .bus_width = MMC_BUS_WIDTH_4, \
15 .clk_rate = 50000000, \
16 .desc_base = (base), \
17 .desc_size = EMMC_DESC_SIZE, \
18 .flags = 0, \
19 .reg_base = S10_MMC_REG_BASE, \
20 \
21 }
22
23typedef enum {
24 BOOT_SOURCE_FPGA = 0,
25 BOOT_SOURCE_SDMMC,
26 BOOT_SOURCE_NAND,
27 BOOT_SOURCE_RSVD,
28 BOOT_SOURCE_QSPI,
29} boot_source_type;
30
31void enable_nonsecure_access(void);
32void stratix10_io_setup(void);
33
34#endif