mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 04:24:19 +00:00
Merge pull request #1227 from geesun/qx/emmc_macros
emmc: add macros CMD21, BUS_WIDTH_DDR_4 and BUS_WIDTH_DDR_8
This commit is contained in:
commit
b6df93dd70
2 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
|
* Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*
|
*
|
||||||
|
@ -353,7 +353,9 @@ void emmc_init(const emmc_ops_t *ops_ptr, int clk, int width,
|
||||||
(clk != 0) &&
|
(clk != 0) &&
|
||||||
((width == EMMC_BUS_WIDTH_1) ||
|
((width == EMMC_BUS_WIDTH_1) ||
|
||||||
(width == EMMC_BUS_WIDTH_4) ||
|
(width == EMMC_BUS_WIDTH_4) ||
|
||||||
(width == EMMC_BUS_WIDTH_8)));
|
(width == EMMC_BUS_WIDTH_8) ||
|
||||||
|
(width == EMMC_BUS_WIDTH_DDR_4) ||
|
||||||
|
(width == EMMC_BUS_WIDTH_DDR_8)));
|
||||||
ops = ops_ptr;
|
ops = ops_ptr;
|
||||||
emmc_flags = flags;
|
emmc_flags = flags;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
|
* Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
#define EMMC_CMD13 13
|
#define EMMC_CMD13 13
|
||||||
#define EMMC_CMD17 17
|
#define EMMC_CMD17 17
|
||||||
#define EMMC_CMD18 18
|
#define EMMC_CMD18 18
|
||||||
|
#define EMMC_CMD21 21
|
||||||
#define EMMC_CMD23 23
|
#define EMMC_CMD23 23
|
||||||
#define EMMC_CMD24 24
|
#define EMMC_CMD24 24
|
||||||
#define EMMC_CMD25 25
|
#define EMMC_CMD25 25
|
||||||
|
@ -61,6 +62,8 @@
|
||||||
#define EMMC_BUS_WIDTH_1 0
|
#define EMMC_BUS_WIDTH_1 0
|
||||||
#define EMMC_BUS_WIDTH_4 1
|
#define EMMC_BUS_WIDTH_4 1
|
||||||
#define EMMC_BUS_WIDTH_8 2
|
#define EMMC_BUS_WIDTH_8 2
|
||||||
|
#define EMMC_BUS_WIDTH_DDR_4 5
|
||||||
|
#define EMMC_BUS_WIDTH_DDR_8 6
|
||||||
#define EMMC_BOOT_MODE_BACKWARD (0 << 3)
|
#define EMMC_BOOT_MODE_BACKWARD (0 << 3)
|
||||||
#define EMMC_BOOT_MODE_HS_TIMING (1 << 3)
|
#define EMMC_BOOT_MODE_HS_TIMING (1 << 3)
|
||||||
#define EMMC_BOOT_MODE_DDR (2 << 3)
|
#define EMMC_BOOT_MODE_DDR (2 << 3)
|
||||||
|
|
Loading…
Add table
Reference in a new issue