ddr: fix overflow when ddr freq is high
authortao zeng <tao.zeng@amlogic.com>
Thu, 12 Jul 2018 01:30:30 +0000 (09:30 +0800)
committertao zeng <tao.zeng@amlogic.com>
Thu, 12 Jul 2018 01:42:56 +0000 (09:42 +0800)
commit7a67df5813ba9c820a7e246880652aebabb7a796
treea3029b28c97be4fd701e18525997f038c90fba66
parent6613b42a3d528c47b8c66846247b57cb60042d59
ddr: fix overflow when ddr freq is high

PD#161475: ddr: fix overflow when ddr freq is high

Caculate of ddr freq will overflow if ddr freq is
over 1.5GHz, This commit fixed it.

Change-Id: Idc07b1022b52e3ec5c227c15afff1aaf21575ed7
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
drivers/amlogic/ddr_tool/ddr_band_op_g12.c
drivers/amlogic/ddr_tool/ddr_band_op_gx.c
drivers/amlogic/ddr_tool/ddr_band_op_gxl.c
include/linux/amlogic/aml_ddr_bandwidth.h