dmc: add function to set up dmc from bootargs [1/1]
authorTao Zeng <tao.zeng@amlogic.com>
Thu, 22 Aug 2019 06:06:03 +0000 (14:06 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 22 Aug 2019 06:06:03 +0000 (14:06 +0800)
commit66930ace5775eed3a0994aeaeccf6fb5551cd2f9
treede6bc029888baa000686216737c9ef8df67b8fdb
parent678cc4f7b8a38718d107e39f944afd00e0d7f9ab
dmc: add function to set up dmc from bootargs [1/1]

PD#TV-8696

Problem:
DMC can't set up from bootargs. For easy debug, we need
set a monitor from bootargs.

Solution:
Add a funciton for this feature. You can using following patten
to set up a DMC monitor:

dmc_montiro=[start_addr],[end_addr],[mask]

Example:
setenv initargs $initargs dmc_monitor=0x0,0x20000000,0xff58
This command set up monitor for following device on GXL:
RANGE:0 - 20000000
MONITOR DEVICE:
    HDCP
    HEVC
    USB3.0
    VPU READ1
    VPU READ2
    VPU READ3
    VPU WRITE1
    VPU WRITE2
    VDEC
    HCODEC
    GE2DV

Verify:
P212

Change-Id: I864ff97325981fe62f18a4a4a24700b6b6ea7482
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
drivers/amlogic/ddr_tool/dmc_monitor.c