1. Add soc definition structure to replace old one.
2. Use mpp_soc.h to replace soc detection in mpp_platform.h.
3. Add vcodec_type to each device definition.
4. Add check on soc info init.
Change-Id: Iecc44bd79e6fd09c58afbc1b5c526ecf31acc663
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This helper function is for address register setup its offset.
When offset is less than 4M (20bit) the offset and buffer fd (10bit) can
be filled in 32bit word.
When offset is larger than 4M the full offset should be sent by ioctl
MPP_DEV_REG_OFFSET.
Change-Id: I5f59f3c941e41cf85fa2ab8895d2a177f4412e64
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>