common_timing_params.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright 2008 Freescale Semiconductor, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * Version 2 as published by the Free Software Foundation.
  7. */
  8. #ifndef COMMON_TIMING_PARAMS_H
  9. #define COMMON_TIMING_PARAMS_H
  10. typedef struct {
  11. /* parameters to constrict */
  12. unsigned int tckmin_x_ps;
  13. unsigned int tckmax_ps;
  14. unsigned int tckmax_max_ps;
  15. unsigned int trcd_ps;
  16. unsigned int trp_ps;
  17. unsigned int tras_ps;
  18. unsigned int twr_ps; /* maximum = 63750 ps */
  19. unsigned int twtr_ps; /* maximum = 63750 ps */
  20. unsigned int trfc_ps; /* maximum = 255 ns + 256 ns + .75 ns
  21. = 511750 ps */
  22. unsigned int trrd_ps; /* maximum = 63750 ps */
  23. unsigned int trc_ps; /* maximum = 254 ns + .75 ns = 254750 ps */
  24. unsigned int refresh_rate_ps;
  25. unsigned int extended_op_srt;
  26. unsigned int tis_ps; /* byte 32, spd->ca_setup */
  27. unsigned int tih_ps; /* byte 33, spd->ca_hold */
  28. unsigned int tds_ps; /* byte 34, spd->data_setup */
  29. unsigned int tdh_ps; /* byte 35, spd->data_hold */
  30. unsigned int trtp_ps; /* byte 38, spd->trtp */
  31. unsigned int tdqsq_max_ps; /* byte 44, spd->tdqsq */
  32. unsigned int tqhs_ps; /* byte 45, spd->tqhs */
  33. unsigned int ndimms_present;
  34. unsigned int lowest_common_SPD_caslat;
  35. unsigned int highest_common_derated_caslat;
  36. unsigned int additive_latency;
  37. unsigned int all_dimms_burst_lengths_bitmask;
  38. unsigned int all_dimms_registered;
  39. unsigned int all_dimms_unbuffered;
  40. unsigned int all_dimms_ecc_capable;
  41. unsigned long long total_mem;
  42. unsigned long long base_address;
  43. /* DDR3 RDIMM */
  44. unsigned char rcw[16]; /* Register Control Word 0-15 */
  45. } common_timing_params_t;
  46. #endif