xref: /rk3399_ARM-atf/plat/ti/k3low/common/drivers/k3-ddrss/lpddr4.h (revision 6c0c3a74dda68e7ffc8bd6c156918ddbfea7e03a)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*
3  * Cadence DDR Driver
4  *
5  * Copyright (C) 2012-2026 Cadence Design Systems, Inc.
6  * Copyright (C) 2018-2026 Texas Instruments Incorporated - https://www.ti.com/
7  */
8 
9 #ifndef LPDDR4_H
10 #define LPDDR4_H
11 
12 #include <errno.h>
13 #include <inttypes.h>
14 #include <stddef.h>
15 
16 #include "lpddr4_16bit_sanity.h"
17 #include "lpddr4_ctl_regs.h"
18 
19 #define TI_LPDDR4_BIT_MASK    (0x1U)
20 #define TI_WORD_SHIFT (32U)
21 #ifndef TI_LPDDR4_CUSTOM_TIMEOUT_DELAY
22 #define TI_LPDDR4_CUSTOM_TIMEOUT_DELAY 100000000U
23 #endif
24 
25 void ti_lpddr4_enable_pi_initiator(const ti_lpddr4_privatedata *pd);
26 
27 #endif  /* LPDDR4_H */
28