Add stdout over ns16750 to fpga dts

This commit is contained in:
Florian Zaruba 2018-11-16 18:03:41 +01:00
parent 99a2fae447
commit ddf983cbb7
No known key found for this signature in database
GPG key ID: E742FFE8EC38A792
5 changed files with 144 additions and 120 deletions

View file

@ -5,9 +5,9 @@
#size-cells = <2>;
compatible = "eth,ariane-bare-dev";
model = "eth,ariane-bare";
// chosen {
// stdout-path = "/soc/uart@10000000:115200";
// };
chosen {
stdout-path = "/soc/uart@10000000:115200";
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

Binary file not shown.

View file

@ -1,6 +1,6 @@
// Auto-generated code
const int reset_vec_size = 448;
const int reset_vec_size = 464;
uint32_t reset_vec[reset_vec_size] = {
0x0010041b,
@ -36,15 +36,15 @@ uint32_t reset_vec[reset_vec_size] = {
0x00000000,
0x00000000,
0xedfe0dd0,
0x7b060000,
0xbf060000,
0x38000000,
0x40050000,
0x78050000,
0x28000000,
0x11000000,
0x10000000,
0x00000000,
0x3b010000,
0x08050000,
0x47010000,
0x40050000,
0x00000000,
0x00000000,
0x00000000,
@ -75,6 +75,20 @@ uint32_t reset_vec[reset_vec_size] = {
0x622d656e,
0x00657261,
0x01000000,
0x736f6863,
0x00006e65,
0x03000000,
0x1a000000,
0x2c000000,
0x636f732f,
0x7261752f,
0x30314074,
0x30303030,
0x313a3030,
0x30323531,
0x00000030,
0x02000000,
0x01000000,
0x73757063,
0x00000000,
0x03000000,
@ -87,26 +101,26 @@ uint32_t reset_vec[reset_vec_size] = {
0x00000000,
0x03000000,
0x04000000,
0x2c000000,
0x38000000,
0x40787d01,
0x01000000,
0x40757063,
0x00000030,
0x03000000,
0x04000000,
0x3f000000,
0x4b000000,
0x80f0fa02,
0x03000000,
0x04000000,
0x4f000000,
0x5b000000,
0x00757063,
0x03000000,
0x04000000,
0x5b000000,
0x67000000,
0x00000000,
0x03000000,
0x05000000,
0x5f000000,
0x6b000000,
0x79616b6f,
0x00000000,
0x03000000,
@ -119,19 +133,19 @@ uint32_t reset_vec[reset_vec_size] = {
0x00000076,
0x03000000,
0x0b000000,
0x66000000,
0x72000000,
0x34367672,
0x63616d69,
0x00007573,
0x03000000,
0x0b000000,
0x70000000,
0x7c000000,
0x63736972,
0x76732c76,
0x00003933,
0x03000000,
0x00000000,
0x79000000,
0x85000000,
0x01000000,
0x65746e69,
0x70757272,
@ -141,11 +155,11 @@ uint32_t reset_vec[reset_vec_size] = {
0x00000000,
0x03000000,
0x04000000,
0x83000000,
0x8f000000,
0x01000000,
0x03000000,
0x00000000,
0x94000000,
0xa0000000,
0x03000000,
0x0f000000,
0x1b000000,
@ -155,11 +169,11 @@ uint32_t reset_vec[reset_vec_size] = {
0x00006374,
0x03000000,
0x04000000,
0xa9000000,
0xb5000000,
0x01000000,
0x03000000,
0x04000000,
0xaf000000,
0xbb000000,
0x01000000,
0x02000000,
0x02000000,
@ -171,12 +185,12 @@ uint32_t reset_vec[reset_vec_size] = {
0x00303030,
0x03000000,
0x07000000,
0x4f000000,
0x5b000000,
0x6f6d656d,
0x00007972,
0x03000000,
0x10000000,
0x5b000000,
0x67000000,
0x00000000,
0x00000080,
0x00000000,
@ -205,7 +219,7 @@ uint32_t reset_vec[reset_vec_size] = {
0x00007375,
0x03000000,
0x00000000,
0xb7000000,
0xc3000000,
0x01000000,
0x6e696c63,
0x30324074,
@ -220,21 +234,21 @@ uint32_t reset_vec[reset_vec_size] = {
0x00000000,
0x03000000,
0x10000000,
0xbe000000,
0xca000000,
0x01000000,
0x03000000,
0x01000000,
0x07000000,
0x03000000,
0x10000000,
0x5b000000,
0x67000000,
0x00000000,
0x00000002,
0x00000000,
0x00000c00,
0x03000000,
0x08000000,
0xd2000000,
0xde000000,
0x746e6f63,
0x006c6f72,
0x02000000,
@ -253,7 +267,7 @@ uint32_t reset_vec[reset_vec_size] = {
0x00000000,
0x03000000,
0x04000000,
0x83000000,
0x8f000000,
0x01000000,
0x03000000,
0x0c000000,
@ -263,36 +277,36 @@ uint32_t reset_vec[reset_vec_size] = {
0x00306369,
0x03000000,
0x00000000,
0x94000000,
0xa0000000,
0x03000000,
0x10000000,
0xbe000000,
0xca000000,
0x01000000,
0x0b000000,
0x01000000,
0x09000000,
0x03000000,
0x10000000,
0x5b000000,
0x67000000,
0x00000000,
0x0000000c,
0x00000000,
0x00000004,
0x03000000,
0x04000000,
0xdc000000,
0xe8000000,
0x07000000,
0x03000000,
0x04000000,
0xef000000,
0xfb000000,
0x02000000,
0x03000000,
0x04000000,
0xa9000000,
0xb5000000,
0x02000000,
0x03000000,
0x04000000,
0xaf000000,
0xbb000000,
0x02000000,
0x02000000,
0x01000000,
@ -310,19 +324,19 @@ uint32_t reset_vec[reset_vec_size] = {
0x00333130,
0x03000000,
0x08000000,
0xbe000000,
0xca000000,
0x01000000,
0xffff0000,
0x03000000,
0x10000000,
0x5b000000,
0x67000000,
0x00000000,
0x00000000,
0x00000000,
0x00100000,
0x03000000,
0x08000000,
0xd2000000,
0xde000000,
0x746e6f63,
0x006c6f72,
0x02000000,
@ -338,34 +352,34 @@ uint32_t reset_vec[reset_vec_size] = {
0x00303537,
0x03000000,
0x10000000,
0x5b000000,
0x67000000,
0x00000000,
0x00000010,
0x00000000,
0x00100000,
0x03000000,
0x04000000,
0x3f000000,
0x4b000000,
0x80f0fa02,
0x03000000,
0x04000000,
0xfa000000,
0x06010000,
0x00c20100,
0x03000000,
0x04000000,
0x08010000,
0x14010000,
0x02000000,
0x03000000,
0x04000000,
0x19010000,
0x25010000,
0x01000000,
0x03000000,
0x04000000,
0x24010000,
0x30010000,
0x02000000,
0x03000000,
0x04000000,
0x2e010000,
0x3a010000,
0x04000000,
0x02000000,
0x02000000,
@ -382,6 +396,9 @@ uint32_t reset_vec[reset_vec_size] = {
0x6c626974,
0x6f6d0065,
0x006c6564,
0x6f647473,
0x702d7475,
0x00687461,
0x656d6974,
0x65736162,
0x6572662d,
@ -449,6 +466,5 @@ uint32_t reset_vec[reset_vec_size] = {
0x65720074,
0x6f692d67,
0x6469772d,
0x00006874,
0x00000000
0x00006874
};

Binary file not shown.

View file

@ -20,44 +20,45 @@ module bootrom (
input logic [63:0] addr_i,
output logic [63:0] rdata_o
);
localparam int RomSize = 224;
localparam int RomSize = 232;
const logic [RomSize-1:0][63:0] mem = {
64'h00000000_00006874,
64'h6469772d_6f692d67,
64'h65720074_66696873,
64'h2d676572_00737470,
64'h75727265_746e6900,
64'h746e6572_61702d74,
64'h00006874_6469772d,
64'h6f692d67_65720074,
64'h66696873_2d676572,
64'h00737470_75727265,
64'h746e6900_746e6572,
64'h61702d74_70757272,
64'h65746e69_00646565,
64'h70732d74_6e657272,
64'h75630076_65646e2c,
64'h76637369_72007974,
64'h69726f69_72702d78,
64'h616d2c76_63736972,
64'h0073656d_616e2d67,
64'h65720064_65646e65,
64'h7478652d_73747075,
64'h72726574_6e690073,
64'h65676e61_7200656c,
64'h646e6168_702c7875,
64'h6e696c00_72656c6c,
64'h6f72746e_6f632d74,
64'h70757272_65746e69,
64'h00646565_70732d74,
64'h6e657272_75630076,
64'h65646e2c_76637369,
64'h72007974_69726f69,
64'h72702d78_616d2c76,
64'h63736972_0073656d,
64'h616e2d67_65720064,
64'h65646e65_7478652d,
64'h73747075_72726574,
64'h6e690073_65676e61,
64'h7200656c_646e6168,
64'h702c7875_6e696c00,
64'h72656c6c_6f72746e,
64'h6f632d74_70757272,
64'h65746e69_00736c6c,
64'h65632d74_70757272,
64'h65746e69_23007469,
64'h6c70732d_626c7400,
64'h65707974_2d756d6d,
64'h00617369_2c766373,
64'h69720073_75746174,
64'h73006765_72006570,
64'h79745f65_63697665,
64'h64007963_6e657571,
64'h6572662d_6b636f6c,
64'h63007963_6e657571,
64'h6572662d_65736162,
64'h656d6974_006c6564,
64'h00736c6c_65632d74,
64'h70757272_65746e69,
64'h23007469_6c70732d,
64'h626c7400_65707974,
64'h2d756d6d_00617369,
64'h2c766373_69720073,
64'h75746174_73006765,
64'h72006570_79745f65,
64'h63697665_64007963,
64'h6e657571_6572662d,
64'h6b636f6c_63007963,
64'h6e657571_6572662d,
64'h65736162_656d6974,
64'h00687461_702d7475,
64'h6f647473_006c6564,
64'h6f6d0065_6c626974,
64'h61706d6f_6300736c,
64'h6c65632d_657a6973,
@ -65,21 +66,21 @@ module bootrom (
64'h73736572_64646123,
64'h09000000_02000000,
64'h02000000_02000000,
64'h04000000_2e010000,
64'h04000000_3a010000,
64'h04000000_03000000,
64'h02000000_24010000,
64'h02000000_30010000,
64'h04000000_03000000,
64'h01000000_19010000,
64'h01000000_25010000,
64'h04000000_03000000,
64'h02000000_08010000,
64'h02000000_14010000,
64'h04000000_03000000,
64'h00c20100_fa000000,
64'h00c20100_06010000,
64'h04000000_03000000,
64'h80f0fa02_3f000000,
64'h80f0fa02_4b000000,
64'h04000000_03000000,
64'h00100000_00000000,
64'h00000010_00000000,
64'h5b000000_10000000,
64'h67000000_10000000,
64'h03000000_00303537,
64'h3631736e_1b000000,
64'h08000000_03000000,
@ -87,13 +88,13 @@ module bootrom (
64'h30303140_74726175,
64'h01000000_02000000,
64'h006c6f72_746e6f63,
64'hd2000000_08000000,
64'hde000000_08000000,
64'h03000000_00100000,
64'h00000000_00000000,
64'h00000000_5b000000,
64'h00000000_67000000,
64'h10000000_03000000,
64'hffff0000_01000000,
64'hbe000000_08000000,
64'hca000000_08000000,
64'h03000000_00333130,
64'h2d677562_65642c76,
64'h63736972_1b000000,
@ -102,26 +103,26 @@ module bootrom (
64'h6f72746e_6f632d67,
64'h75626564_01000000,
64'h02000000_02000000,
64'haf000000_04000000,
64'hbb000000_04000000,
64'h03000000_02000000,
64'ha9000000_04000000,
64'hb5000000_04000000,
64'h03000000_02000000,
64'hef000000_04000000,
64'hfb000000_04000000,
64'h03000000_07000000,
64'hdc000000_04000000,
64'he8000000_04000000,
64'h03000000_00000004,
64'h00000000_0000000c,
64'h00000000_5b000000,
64'h00000000_67000000,
64'h10000000_03000000,
64'h09000000_01000000,
64'h0b000000_01000000,
64'hbe000000_10000000,
64'h03000000_94000000,
64'hca000000_10000000,
64'h03000000_a0000000,
64'h00000000_03000000,
64'h00306369_6c702c76,
64'h63736972_1b000000,
64'h0c000000_03000000,
64'h01000000_83000000,
64'h01000000_8f000000,
64'h04000000_03000000,
64'h00000000_00000000,
64'h04000000_03000000,
@ -131,21 +132,21 @@ module bootrom (
64'h70757272_65746e69,
64'h01000000_02000000,
64'h006c6f72_746e6f63,
64'hd2000000_08000000,
64'hde000000_08000000,
64'h03000000_00000c00,
64'h00000000_00000002,
64'h00000000_5b000000,
64'h00000000_67000000,
64'h10000000_03000000,
64'h07000000_01000000,
64'h03000000_01000000,
64'hbe000000_10000000,
64'hca000000_10000000,
64'h03000000_00000000,
64'h30746e69_6c632c76,
64'h63736972_1b000000,
64'h0d000000_03000000,
64'h00000030_30303030,
64'h30324074_6e696c63,
64'h01000000_b7000000,
64'h01000000_c3000000,
64'h00000000_03000000,
64'h00007375_622d656c,
64'h706d6973_00636f73,
@ -160,57 +161,64 @@ module bootrom (
64'h01000000_02000000,
64'h00008001_00000000,
64'h00000080_00000000,
64'h5b000000_10000000,
64'h67000000_10000000,
64'h03000000_00007972,
64'h6f6d656d_4f000000,
64'h6f6d656d_5b000000,
64'h07000000_03000000,
64'h00303030_30303030,
64'h38407972_6f6d656d,
64'h01000000_02000000,
64'h02000000_02000000,
64'h01000000_af000000,
64'h01000000_bb000000,
64'h04000000_03000000,
64'h01000000_a9000000,
64'h01000000_b5000000,
64'h04000000_03000000,
64'h00006374_6e692d75,
64'h70632c76_63736972,
64'h1b000000_0f000000,
64'h03000000_94000000,
64'h03000000_a0000000,
64'h00000000_03000000,
64'h01000000_83000000,
64'h01000000_8f000000,
64'h04000000_03000000,
64'h00000000_72656c6c,
64'h6f72746e_6f632d74,
64'h70757272_65746e69,
64'h01000000_79000000,
64'h01000000_85000000,
64'h00000000_03000000,
64'h00003933_76732c76,
64'h63736972_70000000,
64'h63736972_7c000000,
64'h0b000000_03000000,
64'h00007573_63616d69,
64'h34367672_66000000,
64'h34367672_72000000,
64'h0b000000_03000000,
64'h00000076_63736972,
64'h00656e61_69726120,
64'h2c687465_1b000000,
64'h12000000_03000000,
64'h00000000_79616b6f,
64'h5f000000_05000000,
64'h6b000000_05000000,
64'h03000000_00000000,
64'h5b000000_04000000,
64'h67000000_04000000,
64'h03000000_00757063,
64'h4f000000_04000000,
64'h5b000000_04000000,
64'h03000000_80f0fa02,
64'h3f000000_04000000,
64'h4b000000_04000000,
64'h03000000_00000030,
64'h40757063_01000000,
64'h40787d01_2c000000,
64'h40787d01_38000000,
64'h04000000_03000000,
64'h00000000_0f000000,
64'h04000000_03000000,
64'h01000000_00000000,
64'h04000000_03000000,
64'h00000000_73757063,
64'h01000000_02000000,
64'h00000030_30323531,
64'h313a3030_30303030,
64'h30314074_7261752f,
64'h636f732f_2c000000,
64'h1a000000_03000000,
64'h00006e65_736f6863,
64'h01000000_00657261,
64'h622d656e_61697261,
64'h2c687465_26000000,
@ -226,11 +234,11 @@ module bootrom (
64'h00000000_01000000,
64'h00000000_00000000,
64'h00000000_00000000,
64'h08050000_3b010000,
64'h40050000_47010000,
64'h00000000_10000000,
64'h11000000_28000000,
64'h40050000_38000000,
64'h7b060000_edfe0dd0,
64'h78050000_38000000,
64'hbf060000_edfe0dd0,
64'h00000000_00000000,
64'h00000000_00000000,
64'h00000000_00000000,