Searched refs:mr_addr (Results 1 – 2 of 2) sorted by relevance
/external/u-boot/arch/arm/mach-omap2/am33xx/ |
D | ddr.c | 38 static inline u32 get_mr(int nr, u32 cs, u32 mr_addr) in get_mr() argument 42 mr_addr |= cs << EMIF_REG_CS_SHIFT; in get_mr() 43 writel(mr_addr, &emif_reg[nr]->emif_lpddr2_mode_reg_cfg); in get_mr() 46 debug("get_mr: EMIF1 cs %d mr %08x val 0x%x\n", cs, mr_addr, mr); in get_mr() 55 static inline void set_mr(int nr, u32 cs, u32 mr_addr, u32 mr_val) in set_mr() argument 57 mr_addr |= cs << EMIF_REG_CS_SHIFT; in set_mr() 58 writel(mr_addr, &emif_reg[nr]->emif_lpddr2_mode_reg_cfg); in set_mr() 64 u32 mr_addr; in configure_mr() local 73 mr_addr = LPDDR2_MR2 | EMIF_REG_REFRESH_EN_MASK; in configure_mr() 74 set_mr(nr, cs, mr_addr, 0x2); in configure_mr()
|
/external/u-boot/arch/arm/mach-omap2/ |
D | emif-common.c | 55 static inline u32 get_mr(u32 base, u32 cs, u32 mr_addr) in get_mr() argument 60 mr_addr |= cs << EMIF_REG_CS_SHIFT; in get_mr() 61 writel(mr_addr, &emif->emif_lpddr2_mode_reg_cfg); in get_mr() 67 cs, mr_addr, mr); in get_mr() 76 static inline void set_mr(u32 base, u32 cs, u32 mr_addr, u32 mr_val) in set_mr() argument 80 mr_addr |= cs << EMIF_REG_CS_SHIFT; in set_mr() 81 writel(mr_addr, &emif->emif_lpddr2_mode_reg_cfg); in set_mr() 97 u32 mr_addr; in do_lpddr2_init() local 119 mr_addr = LPDDR2_MR2 | EMIF_REG_REFRESH_EN_MASK; in do_lpddr2_init() 120 set_mr(base, cs, mr_addr, mr_regs->mr2); in do_lpddr2_init()
|