tool: ddrbin_tool: update to v1.02 20200108

1. If setup no value, it will not update ddr bin's info.
   example: if "baudrate=", the baudrate will keep the
   same with ddr bin's config.
2. add ddr_2t info modify

Change-Id: I180e729f5d45d2dbfa16b98041a9523c47c5c7b7
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
This commit is contained in:
Zhihuan He
2020-01-09 14:52:49 +08:00
parent fa5f5e9d13
commit 2820321c69
3 changed files with 32 additions and 27 deletions

View File

@@ -1,13 +1,15 @@
start tag=0x12345678
ddr2_freq=0
lp2_freq=0
ddr3_freq=0
lp3_freq=0
ddr4_freq=0
lp4_freq=0
ddr2_freq=
lp2_freq=
ddr3_freq=
lp3_freq=
ddr4_freq=
lp4_freq=
uart id=0
uart iomux=0
uart baudrate=0
uart id=
uart iomux=
uart baudrate=
ddr_2t=
end

Binary file not shown.

View File

@@ -3,32 +3,35 @@
like: ./ddrbin_tool ddrbin_param.txt px30_ddr_333MHz_v1.13.bin
support following chip:
PX30:ddr bin version should be released later than V1.11. Support modify uart info only.
RK1808: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933.
RK322x: ddr bin version should be released later than V1.08. Support modify uart info and ddr frequency. These is no limit to ddr frequency.
RK322xh: ddr bin version should be released later than V1.14. Support modify uart info only.
RK3288: ddr bin version should be released later than V1.07. Support modify uart info only.
RK3308: ddr bin version should be released later than V1.28. Support modify uart info and ddr frequency. ddr freq should be one of 225,294,393,451,589.
RK3326:ddr bin version should be released later than V1.11. Support modify uart info only.
RK3368: ddr bin version should be released later than V2.04. Support modify uart info and ddr frequency. These is no limit to ddr frequency.
RK3328: ddr bin version should be released later than V1.14. Support modify uart info only.
PX30: ddr bin version should be released later than V1.11. Support modify uart info only. The ddr bin version V1.12 and later support DDR 2t info modification, only DDR3 support.
RK1808: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933. The ddr bin version V1.03 and later support DDR 2t info modification, only DDR2/DDR3/DDR4 support.
RK322x: ddr bin version should be released later than V1.08. Support modify uart info and ddr frequency. These is no limit to ddr frequency. The ddr bin version V1.09 and later support DDR 2t info modification, only DDR2/DDR3 support.
RK322xh: ddr bin version should be released later than V1.14. Support modify uart info only. The ddr bin version V1.16 and later support DDR 2t info modification, only DDR3 support.
RK3288: ddr bin version should be released later than V1.07. Support modify uart info only. The ddr bin version V1.08 and later support DDR 2t info modification, only DDR3 support.
RK3308: ddr bin version should be released later than V1.28. Support modify uart info and ddr frequency. ddr freq should be one of 225,294,393,451,589. The ddr bin version V1.29 and later support DDR 2t info modification, only DDR2/DDR3 support.
RK3326: ddr bin version should be released later than V1.11. Support modify uart info only. The ddr bin version V1.12 and later support DDR 2t info modification, only DDR3 support.
RK3368: ddr bin version should be released later than V2.04. Support modify uart info and ddr frequency. These is no limit to ddr frequency. The ddr bin version V2.05 and later support DDR 2t info modification, only DDR3 support.
RK3328: ddr bin version should be released later than V1.14. Support modify uart info only. The ddr bin version V1.16 and later support DDR 2t info modification, only DDR3 support.
RK3399: ddr bin version should be released later than V1.20. Support modify uart info only.
RK3399PRO NPU: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933.
RK3399PRO NPU: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933. The ddr bin version V1.03 and later support DDR 2t info modification, only DDR2/DDR3/DDR4 support.
ddrbin_param.txt:
start tag: keep default value. Do not modify it.
ddr2_freq: ddr2 frequency, unit:MHz.
lp2_freq:lpddr2 frequency, unit:MHz.
ddr3_freq:ddr3 frequency, unit:MHz.
lp3_freq:lpddr3 frequency, unit:MHz.
ddr4_freq:ddr4 frequency, unit:MHz.
lp4_freq:lpddr4 frequency, unit:MHz.
ddr2_freq: ddr2 frequency, unit:MHz.
lp2_freq: lpddr2 frequency, unit:MHz.
ddr3_freq: ddr3 frequency, unit:MHz.
lp3_freq: lpddr3 frequency, unit:MHz.
ddr4_freq: ddr4 frequency, unit:MHz.
lp4_freq: lpddr4 frequency, unit:MHz.
If ddr*_freq/lp*_freq is set to 0, it's frequency will keep the same with the ddr bin frequency.
If ddr*_freq/lp*_freq is no value, it's frequency will keep the same with the ddr bin frequency.
uart id:uart number. 0 for uart0, 1 for uart1, 2 for uart2..., 0xf will disable uart.
uart iomux:uart iomux info, 0 for uartn_m0, 1 for uartn_m1, 2 for uartn_m2...(like uart2_m0, uart2_m1,uart2_m2),
Or 1 for uartn_a, 2 for uartn_b, 3 for uartn_c.(like uar2a, uart2b, uart2c).
uart baudrate:uart baudrate should be 115200 or 1500000.
If both of uart id, uart iomux and uart baudrate are set to 0, uart info will keep the same with ddr bin config.
If uart id/iomux/baudrate is no value, uart info will keep the same with ddr bin config.
ddr_2t: ddr 2T timing mode. 1: enable ddr 2T, 0: disable ddr 2T.
If 'ddr_2t' is no value, ddr_2t info will keep the same with ddr bin config.