mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
arm: socfpga: move gen5 SDR driver to DM
To clean up reset handling for socfpga gen5, port the DDR driver to DM using UCLASS_RAM and implement proper reset handling. This gets us rid of one ad-hoc call to socfpga_per_reset(). The gen5 driver is implemented in 2 distinct files. One of it (containing the calibration training) is not touched much and is kept at using hard coded addresses since the code grows even more otherwise. SPL is changed from calling hard into the DDR driver code to just probing UCLASS_RESET and UCLASS_RAM. It is happy after finding a RAM driver after that. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
This commit is contained in:
parent
ede6e7b64f
commit
29873c74f3
7 changed files with 184 additions and 42 deletions
|
@ -3705,12 +3705,19 @@ static void initialize_tracking(void)
|
|||
&sdr_reg_file->trk_rfsh);
|
||||
}
|
||||
|
||||
int sdram_calibration_full(void)
|
||||
int sdram_calibration_full(struct socfpga_sdr *sdr)
|
||||
{
|
||||
struct param_type my_param;
|
||||
struct gbl_type my_gbl;
|
||||
u32 pass;
|
||||
|
||||
/*
|
||||
* For size reasons, this file uses hard coded addresses.
|
||||
* Check if we are called with the correct address.
|
||||
*/
|
||||
if (sdr != (struct socfpga_sdr *)SOCFPGA_SDR_ADDRESS)
|
||||
return -ENODEV;
|
||||
|
||||
memset(&my_param, 0, sizeof(my_param));
|
||||
memset(&my_gbl, 0, sizeof(my_gbl));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue