| 1 |
/* |
| 2 |
* Copyright (C) 2021-2024, STMicroelectronics - All Rights Reserved |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef DDRPHY_PHYINIT_H |
| 8 |
#define DDRPHY_PHYINIT_H |
| 9 |
|
| 10 |
#include <stdbool.h> |
| 11 |
|
| 12 |
#include <ddrphy_phyinit_usercustom.h> |
| 13 |
|
| 14 |
enum message_block_field { |
| 15 |
MB_FIELD_PSTATE, |
| 16 |
MB_FIELD_PLLBYPASSEN, |
| 17 |
MB_FIELD_DRAMFREQ, |
| 18 |
MB_FIELD_DFIFREQRATIO, |
| 19 |
MB_FIELD_BPZNRESVAL, |
| 20 |
MB_FIELD_PHYODTIMPEDANCE, |
| 21 |
MB_FIELD_PHYDRVIMPEDANCE, |
| 22 |
MB_FIELD_DRAMTYPE, |
| 23 |
MB_FIELD_DISABLEDDBYTE, |
| 24 |
MB_FIELD_ENABLEDDQS, |
| 25 |
MB_FIELD_PHYCFG, |
| 26 |
MB_FIELD_X16PRESENT, |
| 27 |
MB_FIELD_ENABLEDDQSCHA, |
| 28 |
MB_FIELD_CSPRESENTCHA, |
| 29 |
MB_FIELD_ENABLEDDQSCHB, |
| 30 |
MB_FIELD_CSPRESENTCHB, |
| 31 |
}; |
| 32 |
|
| 33 |
/* Function definitions */ |
| 34 |
int ddrphy_phyinit_softsetmb(struct pmu_smb_ddr_1d *mb_ddr_1d, enum message_block_field field, |
| 35 |
uint32_t value); |
| 36 |
void ddrphy_phyinit_initstruct(struct stm32mp_ddr_config *config, struct pmu_smb_ddr_1d *mb_ddr_1d); |
| 37 |
#endif /* DDRPHY_PHYINIT_H */ |