1. 27 Apr, 2021 1 commit
  2. 26 Apr, 2021 5 commits
  3. 25 Apr, 2021 4 commits
  4. 24 Apr, 2021 20 commits
  5. 23 Apr, 2021 10 commits
    • Aaron Williams's avatar
      mips: octeon: ebb7304: Add support for some I2C devices · b1d9554e
      Aaron Williams authored
      This patch adds support for the following I2C devices connected to
      I2C bus 0 on the Octeon EBB7304:
      - Dallas DS1337 RTC
      - TLV EEPROM
      Signed-off-by: default avatarAaron Williams <awilliams@marvell.com>
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      b1d9554e
    • Aaron Williams's avatar
      mips: octeon: dts/dtsi: Change UART DT node to use clocks property · 7f0aa48d
      Aaron Williams authored
      We already have a clock driver for MIPS Octeon. This patch changes the
      Octeon DT nodes to supply the clock property via the clock driver
      instead of using an hard-coded value, which is not correct in all cases.
      Signed-off-by: default avatarAaron Williams <awilliams@marvell.com>
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      7f0aa48d
    • Stefan Roese's avatar
      mips: octeon: Add Octeon III NIC23 board support · ec853471
      Stefan Roese authored
      This patch adds the basic support for the PCIe target board equipped
      with the Octeon III CN2350 SoC.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      ec853471
    • Stefan Roese's avatar
      mips: octeon: mrvl, cn73xx.dtsi: Add AHCI/SATA DT node · 60c8efac
      Stefan Roese authored
      Add the AHCI compatible SATA DT node to the Octeon CN73xx dtsi file.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      60c8efac
    • Stefan Roese's avatar
      scsi: Add ata_swap_buf_le16() to support big-endian platforms · dc0731ec
      Stefan Roese authored
      Otherwise the output will look like this on MIPS Octeon NIC23:
      
        Device 0: (0:0) Vendor: ATA Prod.: aSDnsi klUrt aII Rev: 4X11
                  Type: Hard Disk
                  Capacity: 457862.8 MB = 447.1 GB (937703088 x 512)
      
      instead of this version:
      
        Device 0: (0:0) Vendor: TA Prod.: SanDisk Ultra II Rev: X411
                  Type: Hard Disk
                  Capacity: 457862.8 MB = 447.1 GB (937703088 x 512)
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      dc0731ec
    • Stefan Roese's avatar
      ata: ahci: Fix usage on big-endian platforms · 1cf2700f
      Stefan Roese authored
      This patch adds a few missing virt_to_phys() to use the correct physical
      address for DMA operations in the common AHCI code. This is done to
      support the big-endian MIPS Octeon platform.
      
      Additionally the code a cleaned up a bit (remove some empty lines) and
      made a bit better readable.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      1cf2700f
    • Stefan Roese's avatar
      sata: ahci_mvebu.c: Enable AHCI/SATA driver for MIPS Octeon · 1eefd49c
      Stefan Roese authored
      This patch enables the usage of the MVEBU AHCI/SATA driver. The only
      changes necessary to support MIPS Octeon via DT based probing are, to
      add the compatible DT property and the use of dev_remap_addr() so that
      the correct mapped address is used in the Octeon case (phys != virt).
      
      Please note that this driver supports the usage of the "scsi" command
      and not the "sata" command, since it does not provide an own "scan"
      function, which is needed for the "sata" cmd support.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      1eefd49c
    • Stefan Roese's avatar
      mips: octeon: cpu.c: Enable AHCI/SATA support · 60941459
      Stefan Roese authored
      For easy AHCI/ SATA integration, this patch adds board_ahci_enable()
      for the MVEBU AHCI driver, which will be used by this platform. This
      platform specific "enable" function will setup the proper endian
      swapping in the AHCI controller so that it can be used by the common
      AHCI code.
      
      Additionally the endian swizzle entry for AHCI in
      octeon_should_swizzle_table[] is removed, as this enabled the original
      lowlevel code function, e.g. octeon_configure_qlm(), for the QLM setup
      to work correctly.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      60941459
    • Stefan Roese's avatar
      mips: octeon: cpu.c: Add arch_misc_init() for pci-console & pci-bootcmd · 480fa834
      Stefan Roese authored
      This patch adds the necessary platform infrastructure code, so that the
      MIPS Octeon drivers "serial_octeon_pcie_console" & "serial_bootcmd" can
      be used. This is e.g. the bootmem initialization in a compatible way to
      the Marvell 2013 U-Boot, so that the exisiting PC remote tools like
      "oct-remote-console" & "oct-remote-load" can be used. This is be done in
      the newly introduced arch_misc_init(), which calls the necessary init
      functions when enabled.
      
      These patches are in preparation for the MIPS Octeon NIC23 board
      support, which is a desktop PCIe target board enabling these features.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      480fa834
    • Stefan Roese's avatar
      serial: serial_octeon_bootcmd.c: Add PCI remote console support · f1054661
      Stefan Roese authored
      This patch adds the PCI bootcmd feature for MIPS Octeon, which will be
      used by the upcoming Octeon III NIC23 board support. It enables the use
      of the "oct-remote-load" and "oct-remote-bootcmd" on host PC's to
      communicate with the PCIe target and load images into the onboard
      memory and issue commands.
      Signed-off-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
      Cc: Aaron Williams <awilliams@marvell.com>
      Cc: Chandrakala Chavva <cchavva@marvell.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      f1054661