mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	Pass dimm parameters to populate populate controller options
Because some dimm parameters like n_ranks needs to be used with the board frequency to choose the board parameters like clk_adjust etc. in the board_specific_paramesters table of the board ddr file, we need to pass the dimm parameters to the board file. * move ddr dimm parameters header file from /cpu to /include directory. * add ddr dimm parameters to populate board specific options. * Fix fsl_ddr_board_options() for all the 8xxx boards which call this function. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
This commit is contained in:
		
				
					committed by
					
						 Wolfgang Denk
						Wolfgang Denk
					
				
			
			
				
	
			
			
			
						parent
						
							dbbbb3abef
						
					
				
				
					commit
					dfb49108e4
				
			| @@ -10,6 +10,7 @@ | ||||
| #include <i2c.h> | ||||
|  | ||||
| #include <asm/fsl_ddr_sdram.h> | ||||
| #include <asm/fsl_ddr_dimm_params.h> | ||||
|  | ||||
| static void | ||||
| get_spd(ddr2_spd_eeprom_t *spd, unsigned char i2c_address) | ||||
| @@ -37,7 +38,9 @@ void fsl_ddr_get_spd(ddr2_spd_eeprom_t *ctrl_dimms_spd, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| void fsl_ddr_board_options(memctl_options_t *popts, unsigned int ctrl_num) | ||||
| void fsl_ddr_board_options(memctl_options_t *popts, | ||||
| 				dimm_params_t *pdimm, | ||||
| 				unsigned int ctrl_num) | ||||
| { | ||||
| 	/* | ||||
| 	 * Factors to consider for clock adjust: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user