From: Jean THOMAS Date: Thu, 30 Jul 2020 13:55:20 +0000 (+0200) Subject: Add MRx mode registers to the gramProfile structure, rename gram_calibration_auto... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=456042b480c9a4b58a9714730c335e7f571180d0;p=gram.git Add MRx mode registers to the gramProfile structure, rename gram_calibration_auto to gram_generate_calibration --- 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);