- Feb 06, 2019
-
-
Andreas Schwab authored
Signed-off-by:Andreas Schwab <schwab@suse.de>
-
Andreas Schwab authored
Signed-off-by:Andreas Schwab <schwab@suse.de>
-
- Feb 05, 2019
-
-
Olof Johansson authored
Turns out it doesn't behave as expected on MacOS, it doesn't honor -n and echoes that to the file instead. Add a slash and just let the newline be there instead. Signed-off-by:Olof Johansson <olof@lixom.net>
-
Olof Johansson authored
Some toolchains might not have all the CSRs available (as seen with GCC 7.2). So, instead use the defined CSR_ values. Signed-off-by:Olof Johansson <olof@lixom.net>
-
- Jan 30, 2019
-
-
Anup Patel authored
This patch updates doxygen config file to include docs/platform_guide.md and docs/library_usage.md in generated PDF document. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch adds static library usage guide (i.e. docs/library_usage.md). Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch adds initial platform support guide (i.e. docs/platform_guide.md). Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch renames <platform_sub_dir> to <platform_subdir> to be consistent everywhere. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 29, 2019
-
-
Atish Patra authored
Add a readme guide for fu540 with different types of build & booting steps. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Currently, only hart 1 is enabled for fu540 platform to support U-boot. Introduce a compile time FU540_ENABLED_HART_MASK option so that specific harts can be selected for booting. As fu540 is a multicore, we should boot all cores by default except hart 0. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
- Jan 26, 2019
-
-
Anup Patel authored
Currently, the OpenSBI version is in top-level Makefile so firmware linking to OpenSBI static library have no-way to know OpenSBI version. This patch moves OpenSBI version from top-level Makefile to sbi/sbi_version.h header which provides OPENSBI_VERSION_MAJOR and OPENSBI_VERSION_MINOR defines. NOTE: the SBI spec (or SBI ecall interface) version is different. The SBI spec version is provided by functions sbi_ecall_version_major() and sbi_ecall_version_minor(). Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 24, 2019
-
-
Damien Le Moal authored
Reformat to fit lines within 80 chars, fix hyperlinks, etc. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Mostly reformating. Some minor edits. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
List supported platforms and point to the platform specific document. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Reformatting, typos, and various corrections. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Reformatting, typos, and various corrections. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Provide an overview of all supported firmware files and point to each firmware type documentation file. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Explicitely mention that this project adheres to the Developer Certificate of Origin (DCO) and include this short text. Also reformat the file to have lines bounded at 80 chars and add some more details regarding the expected commit message format. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Also make sure that this file contains only the official BSD 2-clause license text, nothing else. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Create commented template files to use as a base for new platforms support implementation. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Anup patel authored
This patch updates copyright header in all files as follows: 1. Makes "SPDX-License-Identifier: BSD-2-Clause" as first line 2. Change copyright year to 2019 for Western Digital Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 23, 2019
-
-
Anup Patel authored
The sbi_platform_hart_disabled() returns bool hence explicitly return TRUE or FALSE instead of 1 or 0. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
For better naming, we rename ipi_inject() to ipi_send() in struct sbi_platform. We also replace term "inject" with "send" in all related places. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
It is not necessary that platform has MMIO-based timer value register. It can also have some custom (implementation specific) CSR for timer value. This patch renames SBI_PLATFORM_HAS_MMIO_TIMER_VALUE to SBI_PLATFORM_HAS_TIMER_VALUE to imply "platform timer value" instead of "mmio timer value". Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The prototypes of sbi_platform callbacks have changed hence we update related documentation. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The target_hart and hartid paramter of TIMER callbacks is not required because it always current hartid which can be obtained using sbi_current_hartid() API. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The hartid parameter in IRQCHIP callbacks of sbi_platform is not required because current hartid can be determined using sbi_current_hartid() API. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup patel authored
The source_hart and hartid parameter is really not required in IPI callbacks of sbi_platform because current hartid can always be obtained by calling sbi_current_hartid() API. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We simplify early_init() and final_init() callbacks of sbi_platform by removing "hartid" parameter. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 22, 2019
-
-
Atish Patra authored
Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Bin Meng authored
Add a space before (FW_JUMP) to make it more readable. This also fixes "No newline at end of file" warning. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
Bin Meng authored
There are 2 markdown links that are currently broken in top-level README.md. Fix them so that github could render the URL correctly. This also fixes "No newline at end of file" warning. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
Anup Patel authored
This patch adds doxygen style documenation for struct sbi_platform and related functions/macros/defines. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We don't need to pre-enable MSIP in MIE CSR when calling sbi_init() from firmware. This patch updates documentation accordingly. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We don't need to install generic headers separately for every platforn under <install_dir>/platform. It is unnecessary duplication of files hence updating install_libplatsbi in top-level makefile. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The PDF document generated by doxygen should have OpenSBI version hence this patch adds OpenSBI version to doxygen.cfg. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Atish Patra authored
As per the RISC-V ISA, mideleg and medeleg registers should not exist if S-mode is not present for a hart. We shouldn't access these CSRs if non S-mode harts. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
S-mode software may send IPI to self. For example, tlbflush may be executed for the same hart. Let the hart send IPI to itself. It's an overhead but doesn't break anything. However, if we don't allow it, it breaks if S-mode keep sending IPIs. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
IPIs are updated in scratch space by source hart. However, different harts or same hart may want to send different IPIs before previous IPI was read by the target hart. Currently, previous IPI type is overwritten in that case. Use atomic bit set/clear operations to update IPIs. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-