avs: a38x: Set AVS value according to pre-burnt EFUSE configuration

	1. Armada 38x was signed off for 1600/800 at 1.15V (AVS)
	2. Based on ATE/system correlation, in order to achieve higher speeds
	   (1600MHz, 1866MHz, 2000MHz), we need to overdrive the chip
	   according to EFUSE AVS values.
	3. if AVS values not exists (or not valid, i.e BIN or version) in eFuse,
	   use previous behavior (reduce AVS to 1.15v for modes under 1600MHz)
	4. EFUSE mapping for the pre-burnt values:

	EFUSE_AVS_AND_BIN_REG:
	+-------+-----+--------------+------------------+----------------+
	| Field | Bin | AVS_Val 2GHz | AVS_Val 1.866GHz | AVS_Val 1.6GHz |
	+-------+-----+--------------+------------------+----------------+
	| bits  | 4-5 | 6-13         | 14-21            | 22-29          |
	+-------+-----+--------------+------------------+----------------+

	EFUSE_AVS_VERSION_REG:
	+-------+---------+
	| Field | Version |
	+-------+---------+
	| bits  | 26-29   |
	+-------+---------+

Change-Id: I174cd0d07c1adaee31bb32fe997aa0002049987a
Signed-off-by: Bassel Saba <basselsa@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/21962
Reviewed-by: Omri Itach <omrii@marvell.com>
Tested-by: Omri Itach <omrii@marvell.com>
(cherry picked from commit 856caa59050ee38671aa59e7eb1d800ff81b39b5)
Reviewed-on: http://vgitil04.il.marvell.com:8080/21081
Tested-by: Star_Automation <star@marvell.com>
2 files changed