calibrator: HP_FEM, separate ini structure from nvs_ini structure

This is done as preperation for supporting new FEM types, i.e.
HP_FEM (type 3) and SKW(type 2) that will be added soon.
nvs writing of ini params was modified to use new nvs_ini struct

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
calibrator: HP_FEM, Fix logs and printouts

Fix a typo in calibration log of radio_status
Change printout of FEM to print both manufacturer and index
(as they might be different - i.e. for FEM types 2 and 3)

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
calibrator: HP_FEM, Change order of parsing function

Change the order of FEMx parsing functions to be consistent for
all FEM types. Also changed order accordingly in find_section
routine. This will also make reviewing of new FEM types easier
(if they use the same consistency rule)

Order of functions is now:
=========================

2.4G band routines
------------------
parse_fem0_band2_prms
parse_fem0_band2_prms_128x

parse_fem1_band2_prms
parse_fem1_band2_prms_128x
...
...
5G band routines
----------------
parse_fem0_band5_prms
parse_fem0_band5_prms_128x

parse_fem1_band5_prms
parse_fem1_band5_prms_128x
...
...

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
calibrator: HP_FEM, add parsing for FEM_2 and FEM3

Increase number of FEM types to 4 and Add parsing routines for
FEM_2 (SKW) and FEM_3(HP) including all relevant type changes.

This is only done in the parsing level. Calibrator still only
supports FEM_0 and FEM_2 (small change in nvs.c to ensure this)

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
calibrator: HP_FEM, add support for new FEMs in nvs file

nvs file is now fully supported with new FEM types (2 and 3)
including all relevant calibrator commands, error checkings and
printouts.

While FEM manuf can be 0,1,2,3 the FEM radio params are always
stored in one of two entries: 0,1 (all FEM except 1 are stored
in entry 0).

Auto FEM detection support is still done by driver, therefore
it is still limited to FEM types 0 and 1.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
calibrator: HP_FEM, add support for optional ini file parameters

In current implementation, parsing of ini files expect a certain amount
of parameters/values to exist for each params section. This prevents
optional params - in other words all params must exist

The new ini files for HP FEM has some optional params - i.e. SRF
params do not exist

In order to support this the parsing now checks if we started a new
params section even if we didn't finish the previous one. This in fact
allows for optional params

A log is now printed out to indicate this situation to the user

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
calibrator: HP_FEM, add new ini files for TQS HP FEM

Add new ini files for TQS HP FEM type (type=2) for radio 127x
and 128x

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>