platform/kernel/opensbi.git
5 years agoFix baud rate divisor computation for U540.
Atish Patra [Mon, 17 Dec 2018 23:31:49 +0000 (15:31 -0800)]
Fix baud rate divisor computation for U540.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
5 years agoSupport /r/n as newline character.
Atish Patra [Mon, 17 Dec 2018 21:46:30 +0000 (13:46 -0800)]
Support /r/n as newline character.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
5 years agoHiFive Unleashed has 5 harts. Fix the config to reflect that.
Atish Patra [Mon, 17 Dec 2018 21:44:06 +0000 (13:44 -0800)]
HiFive Unleashed has 5 harts. Fix the config to reflect that.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
5 years agoplat: kendryte/k210: Enable fw_payload in config.mk
Anup Patel [Thu, 20 Dec 2018 06:21:22 +0000 (11:51 +0530)]
plat: kendryte/k210: Enable fw_payload in config.mk

We can only use fw_payload blob on Kendryte K210 board
because there is no previous booting stage hence this
patch enables fw_payload for Kendryte K210 board.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agoplat: Add Kendryte k210 initial support
Damien Le Moal [Thu, 20 Dec 2018 05:40:41 +0000 (14:40 +0900)]
plat: Add Kendryte k210 initial support

Only compiles for now, completely untested.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
5 years agoblob: Fix comments
Damien Le Moal [Thu, 20 Dec 2018 05:39:32 +0000 (14:39 +0900)]
blob: Fix comments

Add comments to assembler (not trivial to follow).

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
5 years agoAdded .gitignore
Damien Le Moal [Thu, 20 Dec 2018 05:36:49 +0000 (14:36 +0900)]
Added .gitignore

Ignore build and install directories

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
5 years agoblob: payload: Add FW_PAYLOAD_FDT_PATH option
Anup Patel [Wed, 19 Dec 2018 13:02:49 +0000 (18:32 +0530)]
blob: payload: Add FW_PAYLOAD_FDT_PATH option

This patch extends fw_payload blob to provide FW_PAYLOAD_FDT_PATH
option using which we can embed custom FDT in .text section of
fw_payload blob. In other words, FW_PAYLOAD_FDT_PATH is an option
to forcefully override FDT passed by previous booting stage in
a1 register.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agoblob: Rename FW_xyz_FDT_OFFSET to FW_xyz_FDT_ADDR
Anup Patel [Wed, 19 Dec 2018 09:56:11 +0000 (15:26 +0530)]
blob: Rename FW_xyz_FDT_OFFSET to FW_xyz_FDT_ADDR

Instead of placing FDT (passed by previous booting stage) at a
location relative to next address we should have absolute
location of placing FDT so that we more freedom of placing FDT.

This will be particularly useful for platforms/boards with
very less RAM (such as Kendryte board).

Due to above motivation, we rename FW_xyz_FDT_OFFSET options
to FW_xyz_FDT_ADDR options and use FW_xyz_FDT_ADDR options as
absolute address for placing FDT.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agoblob: Rename PLAT_TEXT_START to FW_TEXT_START
Anup Patel [Wed, 19 Dec 2018 09:35:45 +0000 (15:05 +0530)]
blob: Rename PLAT_TEXT_START to FW_TEXT_START

The PLAT_TEXT_START is only used by our firmware blobs hence
rename it to FW_TEXT_START.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agoblob: payload: Introduce FW_PAYLOAD_OFFSET compile time option
Anup Patel [Wed, 19 Dec 2018 09:23:26 +0000 (14:53 +0530)]
blob: payload: Introduce FW_PAYLOAD_OFFSET compile time option

This patch remove hard-coding of payload location in
fw_payload.elf.ldS by adding compile-time option
FW_PAYLOAD_OFFSET.

With the new compile-time option, payload will be placed
at PLAT_TEXT_START + FW_PAYLOAD_OFFSET address.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agoblob: Fix comment typos
Damien Le Moal [Wed, 19 Dec 2018 08:02:53 +0000 (17:02 +0900)]
blob: Fix comment typos

Various typos fix.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
5 years agoplat: clint: Reduce use of atomic operation on IPI registers
Anup Patel [Sun, 16 Dec 2018 08:21:16 +0000 (13:51 +0530)]
plat: clint: Reduce use of atomic operation on IPI registers

Currently, we aggresively use atomic operation on CLINT IPI
register. This patch simplify CLINT IPI APIs by reducing use
of atomic operations. In future, we will gradually increase
use of atomic operations for CLINT IPI APIs.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agoplat: Add separate platform support for QEMU sifive_u machine
Anup Patel [Sun, 16 Dec 2018 04:35:39 +0000 (10:05 +0530)]
plat: Add separate platform support for QEMU sifive_u machine

The QEMU sifive_u machine is not excatly same as HiFive Unleashed
board hence we add separate platform support for QEMU sifive_u
machine.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agolib: Don't emulate CSR read for misa and mhartid
Anup Patel [Sat, 15 Dec 2018 13:00:58 +0000 (18:30 +0530)]
lib: Don't emulate CSR read for misa and mhartid

Emulation of CSR read for misa and mhartid was a workaround for
bootloader accessing these CSRs in S-mode. This patch removes
CSR read emulation for misa and mhartid.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
5 years agoInitial commit.
Anup Patel [Tue, 11 Dec 2018 13:54:06 +0000 (19:24 +0530)]
Initial commit.

Signed-off-by: Anup Patel <anup.patel@wdc.com>