04 Dec, 2014

1 commit

  • This patch adds firmware dump support for marvell
    bluetooth chipset. Currently only SD8897 is supported.
    This is implemented based on dev_coredump, a new mechnism
    introduced in kernel 3.18rc3

    Firmware dump can be trigger by
    echo 1 > /sys/kernel/debug/bluetooth/hci*/config/fw_dump
    and when the dump operation is completed, data can be read by
    cat /sys/class/devcoredump/devcd*/data

    We have prepared following script to divide fw memory
    dump data into multiple files based on memory type.

    [root]# cat btmrvl_split_dump_data.sh
    #!/bin/bash
    # usage: ./btmrvl_split_dump_data.sh dump_data

    fw_dump_data=$1

    mem_type="ITCM DTCM SQRAM APU CIU ICU MAC EXT7 EXT8 EXT9 EXT10 EXT11 EXT12 EXT13 EXTLAST"

    for name in ${mem_type[@]}
    do
    sed -n "/Start dump $name/,/End dump/p" $fw_dump_data > tmp.$name.log
    if [ ! -s tmp.$name.log ]
    then
    rm -rf tmp.$name.log
    else
    # Remove the describle info "Start dump" and "End dump"
    sed '1d' tmp.$name.log | sed '$d' > /data/$name.log
    if [ -s /data/$name.log ]
    then
    echo "generate /data/$name.log"
    else
    sed '1d' tmp.$name.log | sed '$d' > /var/$name.log
    echo "generate /var/$name.log"
    fi
    rm -rf tmp.$name.log
    fi
    done

    Signed-off-by: Xinming Hu
    Signed-off-by: Cathy Luo
    Signed-off-by: Avinash Patil
    Reviewed-by: Johannes Berg
    Reviewed-by: Marcel Holtmann
    Signed-off-by: Amitkumar Karwar
    Signed-off-by: Marcel Holtmann

    Xinming Hu
     

03 Jul, 2014

1 commit


29 Mar, 2014

1 commit


04 Dec, 2013

1 commit

  • Some ARM versions of Chromebook need to download a new calibration
    data from host driver to firmware. They do have EEPROM but still
    need a piece of new calibration data in test mode.

    The cal-data is platform dependent. It's simpler and more feasible
    to use device tree based cal-data instead of configuration file
    based cal-data.

    This patch remove configuration file based cal-data downloading
    and replace it using cal-data from device tree.

    When CONFIG_OF is not selected, or the specific property is not
    present in the device tree, the calibration downloading will not
    happen.

    Cc: Mike Frysinger
    Cc: Amitkumar Karwar
    Signed-off-by: Bing Zhao
    Signed-off-by: Hyuckjoo Lee
    Signed-off-by: Marcel Holtmann

    Bing Zhao
     

02 Oct, 2013

1 commit

  • A text file containing calibration data in hex format can
    be provided at following path:

    /lib/firmware/mrvl/sd8797_caldata.conf

    The data will be downloaded to firmware during initialization.

    Reviewed-by: Mike Frysinger
    Signed-off-by: Amitkumar Karwar
    Signed-off-by: Bing Zhao
    Signed-off-by: Hyuckjoo Lee
    Signed-off-by: Marcel Holtmann

    Amitkumar Karwar
     

13 Apr, 2011

1 commit


23 Aug, 2009

4 commits