[U-Boot] [RFC PATCH 01/12] imx: mx6: ddr: return output of calibration routines

Marek Vasut marex at denx.de
Thu Jun 23 01:57:18 CEST 2016


On 06/23/2016 01:52 AM, Eric Nelson wrote:
> Hi Marek,
> 
> On 06/22/2016 04:18 PM, Marek Vasut wrote:
>> On 06/21/2016 08:41 PM, Eric Nelson wrote:
>>> Allow the calibration data from mmdc_do_write_level_calibration
>>> and mmdc_do_dqs_calibration to be returned to the caller for
>>> display.
>>>
>>> Signed-off-by: Eric Nelson <eric at nelint.com>
>>
>> Why don't you create a separate function to read those params ?
>>
> 
> Probably because in my implementation, the calibration routine
> didn't actually write the registers. It was left to the caller
> to hand them to mx6_dram_cfg.
> 
> You're right though. A routine to gather calibration data would
> be simpler and prevent the "if (calibration)" junk in the two
> routines.

Try avoiding polluting the code with the if (calib) junk more :)


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list