3 comments:
File src/soc/mediatek/mt8183/dramc_pi_calibration_api.c:
if (params->source == DRAMC_PARAM_SOURCE_FLASH) {
dramc_dbg("[bypass Gating]\n");
} else {
if (param->source == DRAMC_PARAM_SOURCE_SDRAM_CONFIG) {
....
}
File src/soc/mediatek/mt8183/emi.c:
Patch Set #29, Line 365: const struct sdram_params *freq_params
Done
That's not a problem, as long as we don't need complete definition in emi.h.
In emi.h you can declare a struct without body:
struct dramc_param;
Then you can use "struct dramc_param *param" in the function prototypes.
And in the .c file you have to include dramc_param.h, then you can use the fields inside struct.
File src/soc/mediatek/mt8183/include/soc/emi.h:
DRAMC_PARAM_SOURCE_SDRAM_CONFIG = 0,
DRAMC_PARAM_SOURCE_FLASH,
What about adding a DRAMC_PARAM_SOURCE_INVALID = 0 ?
Then we can make sure if people didn't load or set properly, the config won't work.
To view, visit change 35164. To unsubscribe, or for help writing mail filters, visit settings.