19 Jun, 2018

8 commits

  • This adds DM_GPIO support for the davinici GPIO driver with
    DT support.

    Signed-off-by: Adam Ford

    Adam Ford
     
  • Don't continue updating the offset when buffer is full.
    When the buffer size exhausts and there's no space left to write
    warn the user and update only the needed size and not both the
    offset and needed size.

    Add needed buffer size information in the iotrace command.

    Signed-off-by: Ramon Fried

    Ramon Fried
     
  • The header definitions are needed for reading
    record information in cmd/iotrace.c

    Signed-off-by: Ramon Fried
    Reviewed-by: Simon Glass

    Ramon Fried
     
  • Remove empty #ifdef/#ifndef..#endif blocks where the configuration they
    guarded has been completely removed.

    Signed-off-by: Chris Packham

    Chris Packham
     
  • 1. Add vbmeta partition info to android partition layout for TI
    platforms.
    2. Add support of AVB 2.0 (including avb subset of commands) for am57xx HS

    Signed-off-by: Igor Opaniuk
    [trini: Move to include/environment/ti/boot.h, reword commit slightly]
    Signed-off-by: Tom Rini

    Igor Opaniuk
     
  • 1. Add initial support of boot states mode (red, green, yellow)
    2. Add functions for enforcing dm-verity configurations

    Signed-off-by: Igor Opaniuk

    Igor Opaniuk
     
  • Implement AVB ops on top of existing mmc subsystem API. Currently there
    is a full implementation of such operations, defined by [1]
    AVB2.0 specification:

    .read_from_partition() - reads N bytes from a partition identified by
    a name.
    .write_to_partition() - Writes N bytes to a partition identified by a name.
    .validate_vbmeta_public_key() - checks if the given public ‘vbmeta’
    partition is trusted.
    .get_unique_guid_for_partition() - Gets the GUID for a partition identified
    by a string name.

    As [1] specification recommends to use tamper-evident storage for storing
    rollback indexes and device state (LOCKED/UNLOCKED),
    currently are only stubs instead of full implementation for these ops:
    .read_rollback_index() - Gets the rollback index for a given index location
    .write_rollback_index() - Sets the rollback index to a given location
    .read_is_device_unlocked() - Gets where the device is unlocked

    [1] https://android.googlesource.com/platform/external/avb/+/master/README.md

    Signed-off-by: Igor Opaniuk

    Igor Opaniuk
     
  • Tom Rini
     

17 Jun, 2018

4 commits


16 Jun, 2018

1 commit


15 Jun, 2018

8 commits


14 Jun, 2018

6 commits

  • Sync the gpio.h header with Linux 4.17, which contains new macros.

    Signed-off-by: Marek Vasut
    Cc: Tom Rini

    Marek Vasut
     
  • When building with -pedantic the current definition of EFI_GUID() causes
    an error 'initializer element is not constant'.

    Currently EFI_GUID() is used both as an anonymous constant and as an
    intializer. A conversion to efi_guid_t is not allowable when using
    EFI_GUID() as an initializer. But it is needed when using it as an
    anonymous constant.

    We should not use EFI_GUID() for anything but an initializer. So let's
    introduce a variable where needed and remove the conversion.

    Signed-off-by: Heinrich Schuchardt
    Signed-off-by: Alexander Graf

    Heinrich Schuchardt
     
  • The PE standard allows for HI20/LOW12 relocations. Within the efi_loader
    target we always know that our relocation target is 4k aligned, so we
    don't need to worry about the LOW12 part.

    This patch adds support for the respective relocations. With this and a
    few grub patches I have cooking in parallel I'm able to run grub on RISC-V.

    Signed-off-by: Alexander Graf

    Alexander Graf
     
  • Add the new mode to indicate a built-in PHY.
    This will be used by UniPhier AVE ethernet driver.

    Signed-off-by: Kunihiko Hayashi
    Reviewed-by: Marek Vasut
    Acked-by: Joe Hershberger

    Kunihiko Hayashi
     
  • VCAP tables must be initialized even if no advanced classification
    is used. If no initialization is performed, then ECC error will
    be observed by the user when the first packet enters the l2switch.
    The error is marked in MPIC_EISR0 -bit 29 which means - Internal RAM
    multi-bit ECC error.
    This patch fixes the aforementioned ECC error by performing the
    initialization of VCAP tables.

    Signed-off-by: Radu Bulie
    Acked-by: Joe Hershberger

    Radu Bulie
     
  • Add support for Cortina CS4223 10G PHY
    - As per the CS4223 specs, an EEPROM module is
    connected to the PHY. At startup the PHY reads
    the firmware line and tries to load the firmware
    into the internal memory.
    - This driver reads the EEPROM status
    and checks if firmware has been loaded

    Signed-off-by: Vicentiu Galanopulo
    Acked-by: Joe Hershberger

    Vicentiu Galanopulo
     

13 Jun, 2018

9 commits

  • 's/environemnt/environment/' and
    's/Environemnt/Environment/'

    Signed-off-by: Shyam Saini

    Shyam Saini
     
  • Often during debugging session it's very interesting to see
    what data we were dealing with. For example what we write or read
    to/from memory or peripherals.

    This change introduces functions that allow to dump binary
    data with one simple function invocation like:
    ------------------->8----------------
    print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len);
    ------------------->8----------------

    which gives us the following:
    ------------------->8----------------
    00000000: f2 b7 c9 88 62 61 75 64 72 61 74 65 3d 31 31 35 ....baudrate=115
    00000010: 32 30 30 00 62 6f 6f 74 61 72 67 73 3d 63 6f 6e 200.bootargs=con
    00000020: 73 6f 6c 65 3d 74 74 79 53 33 2c 31 31 35 32 30 sole=ttyS3,11520
    00000030: 30 6e 38 00 62 6f 6f 74 64 65 6c 61 79 3d 33 00 0n8.bootdelay=3.
    00000040: 62 6f 6f 74 66 69 6c 65 3d 75 49 6d 61 67 65 00 bootfile=uImage.
    00000050: 66 64 74 63 6f 6e 74 72 6f 6c 61 64 64 72 3d 39 fdtcontroladdr=9
    00000060: 66 66 62 31 62 61 30 00 6c 6f 61 64 61 64 64 72 ffb1ba0.loadaddr
    00000070: 3d 30 78 38 32 30 30 30 30 30 30 00 73 74 64 65 =0x82000000.stde
    00000080: 72 72 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 rr=serial0@e0022
    00000090: 30 30 30 00 73 74 64 69 6e 3d 73 65 72 69 61 6c 000.stdin=serial
    000000a0: 30 40 65 30 30 32 32 30 30 30 00 73 74 64 6f 75 0@e0022000.stdou
    000000b0: 74 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 30 t=serial0@e00220
    000000c0: 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00..............
    ...
    ------------------->8----------------

    Source of hexdump.c was copied from Linux kernel v4.7-rc2.

    Signed-off-by: Alexey Brodkin
    Cc: Anatolij Gustschin
    Cc: Mario Six
    Cc: Simon Glass
    Cc: Tom Rini
    Cc: Stefan Roese

    Alexey Brodkin
     
  • After the commit 265edc03d5a1 ("fs/fat: Clean up open-coded sector
    cluster conversions"), it is hung up writing new file to FAT16
    disk with more than 19 files in armv7. It is because result value
    of sect_to_cluster() is not proper by casting from signed value to
    unsigned value. Fix the wrong casting of sect_to_cluster().

    Reported-by: Jaehoon Chung
    Signed-off-by: Seung-Woo Kim
    Reviewed-by: Lukasz Majewski

    Seung-Woo Kim
     
  • generic.h has changed in Linux and new addtionals functions were
    added.

    This commit takes the latest and greatest from Linux (v4.17-rc5)
    to aid with porting drivers that utilize these functions.

    Signed-off-by: Ramon Fried

    Ramon Fried
     
  • In upstream Linux kernel, the fdtfile
    for this specific board is called am335x-wega-rdk.dtb

    Signed-off-by: Matwey V. Kornilov

    Matwey V. Kornilov
     
  • It appears that DEFAULT_LINUX_BOOT_ENV can be used to boot pcm051 board.

    Signed-off-by: Matwey V. Kornilov

    Matwey V. Kornilov
     
  • Signed-off-by: Matwey V. Kornilov

    Matwey V. Kornilov
     
  • Add support for distro bootcmds.

    Signed-off-by: Matwey V. Kornilov

    Matwey V. Kornilov
     
  • Tom Rini
     

12 Jun, 2018

3 commits


09 Jun, 2018

1 commit