Re: [PATCH 1/2] microblaze: Add support for libbsd.

2022-01-04 Thread Joel Sherrill
On Tue, Jan 4, 2022, 4:34 PM Chris Johns  wrote:

> On 5/1/22 5:10 am, Alex White wrote:
> > From: Jennifer Averett 
> >
> > ---
> >  .../microblaze_fpga/dts/microblaze-dtb.c  | 962 ++
> >  .../microblaze/microblaze_fpga/dts/system.dts | 452 
> >  bsps/microblaze/microblaze_fpga/fdt/bsp_fdt.c |  21 +
> >  bsps/microblaze/microblaze_fpga/include/bsp.h |   4 +
> >  .../bsps/microblaze/microblaze_fpga/obj.yml   |   2 +
> >  5 files changed, 1441 insertions(+)
> >  create mode 100644 bsps/microblaze/microblaze_fpga/dts/microblaze-dtb.c
> >  create mode 100644 bsps/microblaze/microblaze_fpga/dts/system.dts
> >  create mode 100644 bsps/microblaze/microblaze_fpga/fdt/bsp_fdt.c
>
> How does a user with an FPGA microblaze implementation provide there own
> FDT? I
> see the clock speed is a setting.
>
> Is there a means to add such support available?
>
> I am OK with a specific implementation keyed into a specific BSP being in
> our
> source but that must be limited to a specific piece of hardware and FPGA
> is too
> general given this is a soft processor. I think there needs to a workflow
> that
> allows users to customize these settings for their own build.
>

I agree but this should match the kcu105 default Xilinx configuration.
Perhaps the name of the file could be changed to reflect that.

There should be a way to override this although the first Microblaze user
doesn't do that.

Should we be documenting what parameters a bsp reads from a device tree?


> Chris
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [PATCH 1/2] microblaze: Add support for libbsd.

2022-01-04 Thread Chris Johns
On 5/1/22 5:10 am, Alex White wrote:
> From: Jennifer Averett 
> 
> ---
>  .../microblaze_fpga/dts/microblaze-dtb.c  | 962 ++
>  .../microblaze/microblaze_fpga/dts/system.dts | 452 
>  bsps/microblaze/microblaze_fpga/fdt/bsp_fdt.c |  21 +
>  bsps/microblaze/microblaze_fpga/include/bsp.h |   4 +
>  .../bsps/microblaze/microblaze_fpga/obj.yml   |   2 +
>  5 files changed, 1441 insertions(+)
>  create mode 100644 bsps/microblaze/microblaze_fpga/dts/microblaze-dtb.c
>  create mode 100644 bsps/microblaze/microblaze_fpga/dts/system.dts
>  create mode 100644 bsps/microblaze/microblaze_fpga/fdt/bsp_fdt.c

How does a user with an FPGA microblaze implementation provide there own FDT? I
see the clock speed is a setting.

Is there a means to add such support available?

I am OK with a specific implementation keyed into a specific BSP being in our
source but that must be limited to a specific piece of hardware and FPGA is too
general given this is a soft processor. I think there needs to a workflow that
allows users to customize these settings for their own build.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH 1/2] microblaze: Add support for libbsd.

2022-01-04 Thread Alex White
From: Jennifer Averett 

---
 .../microblaze_fpga/dts/microblaze-dtb.c  | 962 ++
 .../microblaze/microblaze_fpga/dts/system.dts | 452 
 bsps/microblaze/microblaze_fpga/fdt/bsp_fdt.c |  21 +
 bsps/microblaze/microblaze_fpga/include/bsp.h |   4 +
 .../bsps/microblaze/microblaze_fpga/obj.yml   |   2 +
 5 files changed, 1441 insertions(+)
 create mode 100644 bsps/microblaze/microblaze_fpga/dts/microblaze-dtb.c
 create mode 100644 bsps/microblaze/microblaze_fpga/dts/system.dts
 create mode 100644 bsps/microblaze/microblaze_fpga/fdt/bsp_fdt.c

diff --git a/bsps/microblaze/microblaze_fpga/dts/microblaze-dtb.c 
b/bsps/microblaze/microblaze_fpga/dts/microblaze-dtb.c
new file mode 100644
index 00..ad72fac0b8
--- /dev/null
+++ b/bsps/microblaze/microblaze_fpga/dts/microblaze-dtb.c
@@ -0,0 +1,962 @@
+/*
+ *  Declarations for C structure representing binary file system.dtb
+ *
+ *  WARNING: Automatically generated -- do not edit!
+ */
+
+#include 
+
+const unsigned char system_dtb[] = {
+  0xd0, 0x0d, 0xfe, 0xed, 0x00, 0x00, 0x2c, 0x85, 0x00, 0x00, 0x00, 0x38, 
+  0x00, 0x00, 0x1c, 0xa0, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x11, 
+  0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xe5, 
+  0x00, 0x00, 0x1c, 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 
+  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x01, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x1b, 
+  0x78, 0x6c, 0x6e, 0x78, 0x2c, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x62, 0x6c, 
+  0x61, 0x7a, 0x65, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x12, 
+  0x00, 0x00, 0x00, 0x26, 0x58, 0x69, 0x6c, 0x69, 0x6e, 0x78, 0x20, 0x4d, 
+  0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, 0x61, 0x7a, 0x65, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x01, 0x63, 0x70, 0x75, 0x73, 0x00, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x01, 0x63, 0x70, 0x75, 0x40, 0x30, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x32, 
+  0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x00, 0x3d, 0x05, 0xf5, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x4d, 0x00, 0x00, 0x00, 0x02, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x1b, 
+  0x78, 0x6c, 0x6e, 0x78, 0x2c, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x62, 0x6c, 
+  0x61, 0x7a, 0x65, 0x2d, 0x31, 0x31, 0x2e, 0x30, 0x00, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x54, 
+  0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x00, 0x65, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x10, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x88, 
+  0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x00, 0x95, 0x63, 0x70, 0x75, 0x00, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xa1, 0x80, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xb2, 
+  0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x00, 0xc3, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xd5, 0x00, 0x00, 0x80, 0x00, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xe2, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10, 
+  0x00, 0x00, 0x00, 0x26, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x62, 0x6c, 0x61, 
+  0x7a, 0x65, 0x2c, 0x31, 0x31, 0x2e, 0x30, 0x00, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xf7, 
+  0x05, 0xf5, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x19, 0x00, 0x00, 0x00, 0x10, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x2c, 
+  0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 
+  0x00, 0x00, 0x01, 0x41, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 
+  0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x56, 0x00, 0x00, 0x00, 0x00, 
+  0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x6a, 
+  0x00, 0x00, 0x00,