CHROMIUM: iwl7000: mvm: read SAR BIOS table from ACPI

Read the SAR BIOS table from the ACPI and parse it into the
iwl_mvm_sar_table structure.  If the table is enabled, send it to the
firmware via REDUCE_TX_POWER_CMD.

BUG=chrome-os-partner:50457
TEST=add wifi_sar="28282828282828282828" to the vpd and check that the
TX power on different chain-band combinations don't exceed 5dBm (0x28
means 5dBm). Note that this needs a coreboot that supports the
wifi_sar option.

Change-Id: I093755ecc3e260700dc6b54f6e5e7d159779212c
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
(cherry picked from commit 4f958b740a503e6e44aa2fbbd695da1162ef8457)
(squashed with commit 0f73133df4bd157680313d9f8627ed8e7fc9e277)
iwl7000-tree: 75ecfe0e9c760178c0d7dd1118faf91ba4e20a54
iwl7000-tree: 1836bc2365b81fd74dd0cbc534499731d1b9559d
Reviewed-on: https://chromium-review.googlesource.com/355450
Commit-Ready: Kirtika Ruchandani <kirtika@google.com>
Tested-by: Kirtika Ruchandani <kirtika@google.com>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
1 file changed