Commit Graph

2111 Commits

Author SHA1 Message Date
Joel Sherrill
8702ef9677 bsps/riscv/riscv: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:53:51 +00:00
Joel Sherrill
1cf1b039a6 bsps/riscv/noel: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:53:51 +00:00
Joel Sherrill
9e948edd67 bsps/riscv/niosv: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:53:51 +00:00
Joel Sherrill
42642dbcf6 bsps/riscv/griscv: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:53:51 +00:00
Joel Sherrill
bc959e983f bsps/shared/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:52:14 +00:00
Joel Sherrill
1339ef1b10 bsps/shared/grlib: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:52:14 +00:00
Joel Sherrill
883f06737b bsps/sparc/leon3: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:49:35 +00:00
Joel Sherrill
c7ba5f76d6 bsps/sparc/leon2: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:49:35 +00:00
Joel Sherrill
e6b5917018 bsps/sparc/erc32: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:49:35 +00:00
Joel Sherrill
05d09facc0 bsps/sparc/shared: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:49:35 +00:00
Joel Sherrill
2230dd1ce3 bsps/x86_64: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 14:27:01 -05:00
Kinsey Moore
7ebcccf199 bsps/dev/spi/xqspipsu_flash_config.h: Make flash config table static
This is now used by multiple files and can cause a multiple definitions
error when linking. Make the structure static to avoid this problem.
2025-10-08 15:39:05 -05:00
Kinsey Moore
ea7a756ea1 bsps/shared/dev/flash/jffs2: Add support for NAND
This adds support for NAND to the JFFS2 flashdev adapter.
2025-10-08 16:43:09 +00:00
Joel Sherrill
e91ace80f1 bsps/arm/*beagle*: Relicense Claas Zeimke to 2-BSD
Also updates SPDX annotation

Updates #3053.
2025-10-06 16:55:58 -05:00
Joel Sherrill
a2f8c18819 arm/gumstix: Clean up Yang Xi attributions
While doing relicensing, I noticed that Yang Xi's submissions were
inconsistent about including a copyright. This adds that and does
some associated clean up. If comments were in the
attribution/license comment, they were converted to the Doxygen
comment block. No attribution or license changes were made.

I have reached out to Yang Xi for relicensing but not heard back
but the need for this cleanup was noticed.

Updates #3053
2025-10-06 17:30:17 +00:00
Matteo Concas
1e28f577d8 bsps/noelv: Align instruction in bsp_reset()
Closes #5366
2025-10-02 16:43:54 +02:00
Joel Sherrill
81dd232071 bsps/include/acpi/acpica/acpixf.h: Address unused parameter warnings
This is a third party file and the debug macros create unused
parameter warnings when debugging is not enabled. There are
multiple macros with layers. Rather than attempt to unwind all
this, disabled the -Wunused-parameter GCC warning around the
short block of code causing these warnings.
2025-09-25 14:41:34 -05:00
Kinsey Moore
7da577f8e6 bsps/shared/dev/flash: Enforce maximum JFFS2 filesystem size
The maximum size of JFFS2 is 4GB minus the block size of the flash.
Enforce this limitation when setting up a filesystem on a flashdev
region that is larger than the maximum.

This also resolves some off-nominal memory leaks.
2025-09-22 15:52:43 -05:00
Kinsey Moore
75e7f5cb80 cpukit/flashdev: Add unregister call and private data destructor
This adds an API call allowing for unregistration to include destruction
of private data that is not managed by the flashdev framework. This also
updates the existing consumers of flashdev to use the new private data
destructor callback.
2025-09-22 10:04:58 -05:00
Kinsey Moore
3b60c421ca bsps/arm/xilinx-zynq: Add Xilinx compatibility layer
This adds the Xilinx compatibility layer for use with various Xilinx
libraries. The first consumer of this will be lwIP support for the
Zynq7000 platform.
2025-09-20 09:48:31 +10:00
Jeremy Lorelli
897a8d3094 libchip/ds1375: Refactor to use i2c-rtc driver
Previously this RTC was using the file system-based i2c interface in
/dev. Since the RTC is initialized pretty early on during system init,
we call open() before stdin/stdout/stderr have been opened. RTEMS
assumes that stdin == 0, stdout == 1, etc., and fails when that isn't
the case. In particular, when stdin != 0, RTEMS assumes that it wasn't
configured with a console driver and skips opening stdout/stderr,
leading to confusing issues with the standard I/O streams.
2025-09-20 08:57:16 +10:00
Joel Sherrill
e45ebbc5c1 bsps/*: Correct implicit fallthrough warnings
Use RTEMS_FALL_THROUGH() to annotate case statements which
intentionally do not have a break statement.
2025-09-19 19:02:25 +00:00
Joel Sherrill
ad60ce8c2c bsps/*acpi*: Address unterminated string warnings
The ACPI source has multiple tables where a Name field is defined.
The name field is a character array with a length of 4. All of the
string initializers are four characters plus a NUL. The code is
careful to use strn*() functions and intentionally avoids assuming
there is space for the NUL. With lots of entries in the various
arrays, this was clearly a design decision to save space.

This was caught by GCC's -Wunterminated-string-initialization
warning. The solution used is to use the "nonstring" attribute
recommended by the GCC manual.

Closes #5329
2025-09-19 18:56:55 +00:00
Joel Sherrill
ba3acfd3d0 misc: Fix empty body warnings
Address the small number of cases where an empty body occurred in
an if, else, or do while.
2025-09-15 16:25:37 +00:00
Joel Sherrill
4beeafe1d7 m68k/genmcf548x: Add attribution for embedded brains
Per git commit history, these files were submitted by Thomas
Doerfler. They have given permission.

Update #3053.
2025-09-15 16:22:13 +00:00
Joel Sherrill
600b76286e arm/smdk2410: Add proper attribution
This change adds attribution as appropriate for Ray Xu, Jay Monkman,
and Philippe Simons. The attribution is based on git archeology and
current permissions to relicense. Some of the code given attribution
was from the gp32 BSP which required looking at the 4.8 branch to
get attribution.

  - Work by Ray Xu and Jay Monkman is now 2-BSD
  - Work by Philipe Simon is GPL 2.0 w/RTEMS exception

Updates #3053.
2025-09-12 09:46:03 -05:00
Joel Sherrill
c4b62666c7 m68k/av5282: Add license and attribution as appropriate
This change reflects adding attribution based on the initial
submitter per git history. Most files were from Eric Norum
and he has given permission to relicense to 2-BSD. One file
was from Mike Bertosh whom we are still trying to contact.
That file is assumed to have been submitted under the GPL
w/exception as was the norm when it was submitted.
2025-09-10 18:53:59 +00:00
Joel Sherrill
2f0133e582 bsps/powerpc/gen5200/include/tm27.h: Add attriibution and 2-BSD
This file was mechanically split from bsp.h which was submitted
by Thomas Doerfler. Updating license and SPDX to reflect that.
2025-09-09 16:45:12 -05:00
Joel Sherrill
888e5a5d25 bsps/*: Correct spelling of copyright
Multiple files had this spelled incorrectly.
2025-09-09 11:43:24 -05:00
Aaron Nyholm
f93f3b87c8 flashdev: Added missing copyright 2025-09-09 16:09:49 +00:00
Joel Sherrill
60e392e621 bsps/.../*/include/tm27.h: Add attribution to one-line implementations
Many tm27.h implementations were one line with no attribution.
Some were simply including a default non-functional implementation.
Others were including a header file giving an implementation based
on a standard counter/timer. This patch gives attribution based on
the split out being done by Sebastian Huber in 2017.
2025-09-08 20:02:56 +00:00
Joel Sherrill
eb6cbbf997 arm, rtl22xx: Relicense Ray Xy contributions to 2-BSD
Permission granted to relicense.

Updates #3053.
2025-09-08 12:25:34 -05:00
Joel Sherrill
b960eaf405 bsps/x86_64/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
72837b30d8 bsps/shared/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
c4779c4b4e bsps/riscv/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
817ddf0750 bsps/powerpc/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
02fbe6e9b5 bsps/include: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Joel Sherrill
d3a1757ac7 bsps/arm: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:16 -05:00
Shaunak Datar
02de8a383d bsp/arch64/raspberrypi: Add I2C TX interrupt support
Adds the interrupt support for TX in the I2C driver
2025-08-28 18:33:49 -05:00
Gedare Bloom
f1f14b5307 rtems: update licenses to 2BSD
This is an update of remaining Cogent Computer Systems licenses
from the RTEMS License to the 2-BSD licence.

Updates #3053.
2025-08-22 10:03:43 -06:00
Joel Sherrill
0c0607d071 bsps/x86_64/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
3c201420e4 bsps/sparc/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
f665d19812 bsps/shared/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
8a9b574ed5 bsps/or1k/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
82de7c4daa bsps/powerpc/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
03503d13fb bsps/nio2/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
edd7f1d460 bsps/mips/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
376d435fb3 bsps/m68k/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
19aee5aaa8 bsps/include/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00
Joel Sherrill
75c2fb617c bsps/i386/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00