[coreboot-gerrit] Patch merged into coreboot/master: 318708d chromeos: Add a function to copy VPD WiFi calibration data to CBMEM

gerrit at coreboot.org gerrit at coreboot.org
Fri Apr 10 16:47:06 CEST 2015


the following patch was just integrated into master:
commit 318708ddce2f3322e451bd066c88f5ca04ab179a
Author: Vadim Bendebury <vbendeb at chromium.org>
Date:   Thu Oct 23 16:02:51 2014 -0700

    chromeos: Add a function to copy VPD WiFi calibration data to CBMEM
    
    This patch adds functions looking in the VPD for WiFi calibration
    data, and if found, copying the calibration blobs into CBMEM.
    
    Two possible key names templates are used: wifi_base64_calibrationX
    and wifi_calibrationX, where X is replaced by the WiFi interface
    number. Up to four interfaces can be provisioned.
    
    The calibration data will be retrieved from CBMEM by the bootloader
    and placed into the device tree before starting the kernel.
    
    The structure of the WiFi calibration data CBMEM entry is defined
    locally: it is a concatenation of the blob names and their contents.
    Each blob is padded as necessary to make sure that the size divisible
    by four.
    
    To make sure that the exactly required amount of memory is allocated
    for the CBMEM entry, the function first scans the VPD, caching the
    information about the available blobs and calculating their combined
    size.
    
    Then the required size CBMEM entry is allocates and the blobs are
    copied into it.
    
    BRANCH=storm
    BUG=chrome-os-partner:32611
    TEST=when this function is called, and the VPD includes calibration
        data blobs, the WIFI entry shows up in the list of CBMEM entries
        reported by coreboot.
    
    Original-Change-Id: Ibe02dc36ff6254e3b9ad0a5bd2696ca29e1b2be3
    Original-Signed-off-by: Vadim Bendebury <vbendeb at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/225271
    Original-Reviewed-by: Aaron Durbin <adurbin at chromium.org>
    
    (cherry picked from commit 9fe185ae5fdc1a896bf892b498bff27a3462caeb)
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
    
    Change-Id: Ia60f0c5c84decf9854426c4f0cb88f8ccee69046
    Reviewed-on: http://review.coreboot.org/9435
    Tested-by: build bot (Jenkins)
    Reviewed-by: Patrick Georgi <pgeorgi at google.com>


See http://review.coreboot.org/9435 for details.

-gerrit



More information about the coreboot-gerrit mailing list