Loh Tien Hock | 59400a4 | 2019-02-04 16:17:24 +0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 23 | typedef 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 | |
| 31 | void enable_nonsecure_access(void); |
| 32 | void stratix10_io_setup(void); |
| 33 | |
| 34 | #endif |