X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=board%2Fsbc8548%2Fddr.c;h=996ffe206da7bb31a7f3228c84b359709dfaa120;hb=5f4c6f0db930646e9ca3b479b5fe9b8d2691fa77;hp=ab64fa88f2655916348963351f08d0e277fbc3f1;hpb=dfb49108e4f86c2224e1f30124328b0de66ef72e;p=people%2Fms%2Fu-boot.git diff --git a/board/sbc8548/ddr.c b/board/sbc8548/ddr.c index ab64fa88f2..996ffe206d 100644 --- a/board/sbc8548/ddr.c +++ b/board/sbc8548/ddr.c @@ -7,37 +7,10 @@ */ #include -#include #include #include -static void -get_spd(ddr2_spd_eeprom_t *spd, unsigned char i2c_address) -{ - i2c_read(i2c_address, 0, 1, (uchar *)spd, sizeof(ddr2_spd_eeprom_t)); -} - -unsigned int fsl_ddr_get_mem_data_rate(void) -{ - return get_ddr_freq(0); -} - -void fsl_ddr_get_spd(ddr2_spd_eeprom_t *ctrl_dimms_spd, - unsigned int ctrl_num) -{ - unsigned int i; - - if (ctrl_num) { - printf("%s unexpected ctrl_num = %u\n", __FUNCTION__, ctrl_num); - return; - } - - for (i = 0; i < CONFIG_DIMM_SLOTS_PER_CTLR; i++) { - get_spd(&(ctrl_dimms_spd[i]), SPD_EEPROM_ADDRESS); - } -} - void fsl_ddr_board_options(memctl_options_t *popts, dimm_params_t *pdimm, unsigned int ctrl_num)