diff options
author | Dave Gerlach <d-gerlach@ti.com> | 2022-03-17 20:03:43 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-05 02:02:04 +0300 |
commit | f861ce90ca9538fefd76dbd1985f0c69f53e3b77 (patch) | |
tree | a4c88e6b3fd65c17e311c9d18d75209cdfbf1dd8 /include/k3-ddrss.h | |
parent | 71eb527476e8bb32f3b9af5e472cb9fde1fdb127 (diff) | |
download | u-boot-f861ce90ca9538fefd76dbd1985f0c69f53e3b77.tar.xz |
ram: k3-ddrss: Introduce ECC Functionality for full memory space
Introduce ECC Functionality for full memory space as implemented in the
DDRSS. The following is done to accomplish this:
* Introduce a memory region "ss" to allow dt to provide DDRSS region,
which is not the same as "ctl" which is the controller region.
* Introduce a "ti,ecc-enable" flag which allows a memorycontroller
instance to enable ecc.
* Introduce functionality to properly program the DDRSS registers to
enable ECC for the full DDR memory space if enabled with above flag.
* Expose a k3_ddrss_ddr_fdt_fixup call to allow fixup of fdt blob to
account from DDR memory that must be reserved for ECC operation.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Diffstat (limited to 'include/k3-ddrss.h')
-rw-r--r-- | include/k3-ddrss.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/k3-ddrss.h b/include/k3-ddrss.h new file mode 100644 index 0000000000..d7b3bf3c33 --- /dev/null +++ b/include/k3-ddrss.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Texas Instruments' K3 DDRSS Driver + * + * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/ + * + */ + +#ifndef _K3_DDRSS_ +#define _K3_DDRSS_ + +struct udevice; + +int k3_ddrss_ddr_fdt_fixup(struct udevice *dev, void *blob, struct bd_info *bd); + +#endif |