2018-11-12 13:34:53 +08:00
|
|
|
#include "chip_offset_byte.h"
|
|
|
|
|
|
|
|
#define ACP3x_PHY_BASE_ADDRESS 0x1240000
|
2018-11-12 13:34:54 +08:00
|
|
|
#define ACP3x_I2S_MODE 0
|
|
|
|
#define ACP3x_REG_START 0x1240000
|
|
|
|
#define ACP3x_REG_END 0x1250200
|
|
|
|
#define I2S_MODE 0x04
|
2018-11-12 13:34:53 +08:00
|
|
|
|
|
|
|
static inline u32 rv_readl(void __iomem *base_addr)
|
|
|
|
{
|
|
|
|
return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void rv_writel(u32 val, void __iomem *base_addr)
|
|
|
|
{
|
|
|
|
writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
|
|
|
|
}
|