21 Aug, 2020

1 commit

  • Right now the RISC-V timer driver is convoluted to support:
    1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR for
    clocksource and SBI timer calls for clockevent device.
    2. Linux RISC-V M-mode (without MMU) where it will use CLINT MMIO
    counter register for clocksource and CLINT MMIO compare register
    for clockevent device.

    We now have a separate CLINT timer driver which also provide CLINT
    based IPI operations so let's remove CLINT MMIO related code from
    arch/riscv directory and RISC-V timer driver.

    Signed-off-by: Anup Patel
    Tested-by: Emil Renner Berhing
    Acked-by: Daniel Lezcano
    Reviewed-by: Atish Patra
    Reviewed-by: Palmer Dabbelt
    Signed-off-by: Palmer Dabbelt

    Anup Patel
     

19 May, 2020

1 commit

  • The K210's bootloader does not provide a device tree. Give the ability
    to providea builtin one with the SOC_KENDRYTE_K210_BUILTIN_DTB option.
    If selected, this option result in the definition of a builtin DTB
    entry in the k210 sysctl driver.

    If defined, the builtin DTB entry points to the default k210.dts device
    tree file and is keyed with the vendor ID 0x4B5, the arch ID
    0xE59889E6A5A04149 ("Canaan AI" in UTF-8 coded Chinese) and the impl ID
    0x4D41495832303030 ("MAIX200"). These values are reported by the SiPEED
    MAIXDUINO board, the SiPEED MAIX Go board and the SiPEED Dan Dock board.

    [Thanks to Damien for the K210 IDs]
    Signed-off-by: Damien Le Moal
    Signed-off-by: Palmer Dabbelt

    Palmer Dabbelt
     

13 May, 2020

1 commit

  • Fix unmet direct dependencies Warning and fix Kconfig indent.

    WARNING: unmet direct dependencies detected for POWER_RESET_SYSCON
    Depends on [n]: POWER_RESET [=n] && OF [=y] && HAS_IOMEM [=y]
    Selected by [y]:
    - SOC_VIRT [=y]

    WARNING: unmet direct dependencies detected for POWER_RESET_SYSCON_POWEROFF
    Depends on [n]: POWER_RESET [=n] && OF [=y] && HAS_IOMEM [=y]
    Selected by [y]:
    - SOC_VIRT [=y]

    WARNING: unmet direct dependencies detected for RTC_DRV_GOLDFISH
    Depends on [n]: RTC_CLASS [=n] && OF [=y] && HAS_IOMEM [=y] && (GOLDFISH [=y] || COMPILE_TEST [=n])
    Selected by [y]:
    - SOC_VIRT [=y]

    Reported-by: Hulk Robot
    Signed-off-by: Kefeng Wang
    Signed-off-by: Palmer Dabbelt

    Kefeng Wang
     

10 Apr, 2020

1 commit

  • Pull RISC-V updates from Palmer Dabbelt:
    "This contains a handful of new features:

    - Partial support for the Kendryte K210.

    There are still a few outstanding issues that I have patches for,
    but I don't actually have a board to test them so they're not
    included yet.

    - SBI v0.2 support.

    - Fixes to support for building with LLVM-based toolchains. The
    resulting images are known not to boot yet.

    I don't anticipate a part two, but I'll probably have something early
    in the RCs to finish up the K210 support"

    * tag 'riscv-for-linus-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (38 commits)
    riscv: create a loader.bin boot image for Kendryte SoC
    riscv: Kendryte K210 default config
    riscv: Add Kendryte K210 device tree
    riscv: Select required drivers for Kendryte SOC
    riscv: Add Kendryte K210 SoC support
    riscv: Add SOC early init support
    riscv: Unaligned load/store handling for M_MODE
    RISC-V: Support cpu hotplug
    RISC-V: Add supported for ordered booting method using HSM
    RISC-V: Add SBI HSM extension definitions
    RISC-V: Export SBI error to linux error mapping function
    RISC-V: Add cpu_ops and modify default booting method
    RISC-V: Move relocate and few other functions out of __init
    RISC-V: Implement new SBI v0.2 extensions
    RISC-V: Introduce a new config for SBI v0.1
    RISC-V: Add SBI v0.2 extension definitions
    RISC-V: Add basic support for SBI v0.2
    RISC-V: Mark existing SBI as 0.1 SBI.
    riscv: Use macro definition instead of magic number
    riscv: Add support to dump the kernel page tables
    ...

    Linus Torvalds
     

04 Apr, 2020

2 commits

  • This patch selects drivers required for the Kendryte K210 SOC.
    Since K210 SoC based boards do not provide a device tree, this patch
    also enables the BUILTIN_DTB option.

    Signed-off-by: Damien Le Moal
    Reviewed-by: Anup Patel
    Reviewed-by: Palmer Dabbelt
    Signed-off-by: Palmer Dabbelt

    Damien Le Moal
     
  • Add support for the Kendryte K210 RISC-V SoC. For now, this support
    only provides a simple sysctl driver allowing to setup the CPU and
    uart clock. This support is enabled through the new Kconfig option
    SOC_KENDRYTE and defines the config option CONFIG_K210_SYSCTL
    to enable the K210 SoC sysctl driver compilation.

    The sysctl driver also registers an early SoC initialization function
    allowing enabling the general purpose use of the 2MB of SRAM normally
    reserved for the SoC AI engine. This initialization function is
    automatically called before the dt early initialization using the flat
    dt root node compatible property matching the value "kendryte,k210".

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Damien Le Moal
    [Palmer: Add missing endmenu in Kconfig.socs]
    Signed-off-by: Palmer Dabbelt

    Christoph Hellwig
     

27 Mar, 2020

1 commit

  • The kconfig select causes build failues for SOC_VIRT config becaus
    we are selecting lot of VIRTIO drivers without selecting all required
    dependencies.

    Better approach is to only select essential drivers from SOC_VIRT
    config option and enable required VIRTIO drivers using defconfigs.

    Fixes: 759bdc168181 ("RISC-V: Add kconfig option for QEMU virt machine")
    Signed-off-by: Anup Patel
    Acked-by: Michael S. Tsirkin
    Signed-off-by: Palmer Dabbelt

    Anup Patel
     

06 Mar, 2020

3 commits


09 Dec, 2019

1 commit


22 Nov, 2019

1 commit

  • Adjust indentation from spaces to tab (+optional two spaces) as in
    coding style with command like:
    $ sed -e 's/^ /\t/' -i */Kconfig

    Signed-off-by: Krzysztof Kozlowski
    Reviewed-by: Palmer Dabbelt
    [paul.walmsley@sifive.com: use two leading spaces for help text to align
    with common arch/ practice]
    Signed-off-by: Paul Walmsley

    Krzysztof Kozlowski
     

02 Jul, 2019

2 commits