mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
Driver/DDR: Add Freescale DDR driver for ARM
Make PowerPC specific code conditional so ARM SoCs can reuse this driver. Add DDR3 driver for ARM. Signed-off-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
9a17eb5b7e
commit
9ac4ffbde1
5 changed files with 230 additions and 4 deletions
|
@ -7,7 +7,9 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#ifdef CONFIG_PPC
|
||||
#include <asm/fsl_law.h>
|
||||
#endif
|
||||
#include <div64.h>
|
||||
|
||||
#include <fsl_ddr.h>
|
||||
|
@ -79,6 +81,7 @@ unsigned int mclk_to_picos(unsigned int mclk)
|
|||
return get_memory_clk_period_ps() * mclk;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PPC
|
||||
void
|
||||
__fsl_ddr_set_lawbar(const common_timing_params_t *memctl_common_params,
|
||||
unsigned int law_memctl,
|
||||
|
@ -113,6 +116,7 @@ __attribute__((weak, alias("__fsl_ddr_set_lawbar"))) void
|
|||
fsl_ddr_set_lawbar(const common_timing_params_t *memctl_common_params,
|
||||
unsigned int memctl_interleaved,
|
||||
unsigned int ctrl_num);
|
||||
#endif
|
||||
|
||||
void fsl_ddr_set_intl3r(const unsigned int granule_size)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue