From 456042b480c9a4b58a9714730c335e7f571180d0 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Thu, 30 Jul 2020 15:55:20 +0200 Subject: [PATCH] Add MRx mode registers to the gramProfile structure, rename gram_calibration_auto to gram_generate_calibration --- libgram/include/gram.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgram/include/gram.h b/libgram/include/gram.h index 2ba2eb3..1ebe553 100644 --- a/libgram/include/gram.h +++ b/libgram/include/gram.h @@ -28,11 +28,12 @@ struct gramCtx { struct gramProfile { uint8_t rdly_p0; uint8_t rdly_p1; + uint32_t mode_registers[4]; }; extern __attribute__((visibility ("default"))) int gram_init(struct gramCtx *ctx, void *ddr_base, void *core_base, void *phy_base); extern __attribute__((visibility ("default"))) int gram_memtest(struct gramCtx *ctx, size_t length, enum GramWidth width); -extern __attribute__((visibility ("default"))) int gram_calibration_auto(struct gramCtx *ctx); +extern __attribute__((visibility ("default"))) int gram_generate_calibration(struct gramCtx *ctx, struct gramProfile *profile); extern __attribute__((visibility ("default"))) void gram_load_calibration(struct gramCtx *ctx, struct gramProfile *profile); extern __attribute__((visibility ("default"))) void gram_reset_burstdet(struct gramCtx *ctx); -- 2.30.2