/* Internal Function: To add the offset to given address.  */
static volatile uint32_t* lpddr4_addoffset(volatile uint32_t *addr, uint32_t regoffset)
/* Internal Function: To add the offset to given address.  */
static volatile uint32_t* lpddr4_addoffset(volatile uint32_t *addr, uint32_t regoffset)
{
	volatile uint32_t *local_addr = addr;
	volatile uint32_t *regaddr = &local_addr[regoffset];
	return regaddr;
}