mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 14:53:06 +00:00
ee31be429b
The new 32bit DDR controller for TI's am62a family of SoCs shares much of the same functionality with the existing 16bit (am64) and 32bit (j721e) controllers, so this patch reorganizes the existing auto-generated macros for the 16bit and 32bit controllers to make room for the macros for the am62a's controller This patch consists mostly of header/macro renames and additions with a new Kconfig option (K3_AM62A_DDRSS) allowing us to select these new macros during compilation. Signed-off-by: Bryan Brattlof <bb@ti.com>
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
/*
|
|
* Cadence DDR Driver
|
|
*
|
|
* Copyright (C) 2012-2022 Cadence Design Systems, Inc.
|
|
* Copyright (C) 2018-2022 Texas Instruments Incorporated - https://www.ti.com/
|
|
*/
|
|
|
|
#ifndef LPDDR4_AM6X_H
|
|
#define LPDDR4_AM6X_H
|
|
|
|
#ifdef CONFIG_K3_AM64_DDRSS
|
|
#include "lpddr4_am64_ctl_regs_rw_masks.h"
|
|
#elif CONFIG_K3_AM62A_DDRSS
|
|
#include "lpddr4_am62a_ctl_regs_rw_masks.h"
|
|
#endif
|
|
|
|
#ifdef CONFIG_K3_AM64_DDRSS
|
|
#define DSLICE_NUM (2U)
|
|
#define ASLICE_NUM (2U)
|
|
#define DSLICE0_REG_COUNT (126U)
|
|
#define DSLICE1_REG_COUNT (126U)
|
|
#define ASLICE0_REG_COUNT (42U)
|
|
#define ASLICE1_REG_COUNT (42U)
|
|
#define ASLICE2_REG_COUNT (42U)
|
|
#define PHY_CORE_REG_COUNT (126U)
|
|
|
|
#elif CONFIG_K3_AM62A_DDRSS
|
|
#define DSLICE_NUM (4U)
|
|
#define ASLICE_NUM (3U)
|
|
#define DSLICE0_REG_COUNT (136U)
|
|
#define DSLICE1_REG_COUNT (136U)
|
|
#define DSLICE2_REG_COUNT (136U)
|
|
#define DSLICE3_REG_COUNT (136U)
|
|
#define ASLICE0_REG_COUNT (48U)
|
|
#define ASLICE1_REG_COUNT (48U)
|
|
#define ASLICE2_REG_COUNT (48U)
|
|
#define PHY_CORE_REG_COUNT (132U)
|
|
|
|
#endif
|
|
|
|
#define GRP_SHIFT 1
|
|
#define INT_SHIFT 2
|
|
|
|
#endif /* LPDDR4_AM6X_H */
|