Re: [linux-sunxi] [PATCH 3/4] drivers: soc: sunxi: add support for remapping func value to reg value

2017-08-14 Thread Chen-Yu Tsai
On Wed, Aug 9, 2017 at 4:56 PM, Icenowy Zheng wrote: > On some Allwinner SoCs, sometimes the value needed to write into the > register to claim SRAM is not equal to the value specified in the > device tree. > > We now defines 0 as "CPU" and 1 as "Device", however, for VE SRAM,

Re: [linux-sunxi] [PATCH 3/4] drivers: soc: sunxi: add support for remapping func value to reg value

2017-08-14 Thread Chen-Yu Tsai
On Wed, Aug 9, 2017 at 4:56 PM, Icenowy Zheng wrote: > On some Allwinner SoCs, sometimes the value needed to write into the > register to claim SRAM is not equal to the value specified in the > device tree. > > We now defines 0 as "CPU" and 1 as "Device", however, for VE SRAM, the > register

[PATCH 3/4] drivers: soc: sunxi: add support for remapping func value to reg value

2017-08-09 Thread Icenowy Zheng
On some Allwinner SoCs, sometimes the value needed to write into the register to claim SRAM is not equal to the value specified in the device tree. We now defines 0 as "CPU" and 1 as "Device", however, for VE SRAM, the register needs to be written 0x7FFF to claim it to VE, and for Allwinner

[PATCH 3/4] drivers: soc: sunxi: add support for remapping func value to reg value

2017-08-09 Thread Icenowy Zheng
On some Allwinner SoCs, sometimes the value needed to write into the register to claim SRAM is not equal to the value specified in the device tree. We now defines 0 as "CPU" and 1 as "Device", however, for VE SRAM, the register needs to be written 0x7FFF to claim it to VE, and for Allwinner