Skip to content

Commit

Permalink
boards: litex_vexriscv: Enable LiteX DNA driver
Browse files Browse the repository at this point in the history
Enable LiteX DNA ID driver in litex_vexriscv board.

Signed-off-by: Jakub Wegnerowski <[email protected]>
Signed-off-by: Mateusz Holenko <[email protected]>
  • Loading branch information
Jakub Wegnerowski authored and carlescufi committed Sep 21, 2019
1 parent 10ee87a commit d57a363
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/riscv/litex_vexriscv/litex_vexriscv.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@
&eth0 {
status = "okay";
};

&dna0 {
status = "okay";
};
2 changes: 2 additions & 0 deletions boards/riscv/litex_vexriscv/litex_vexriscv_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ CONFIG_UART_CONSOLE=y
CONFIG_ETH_LITEETH=y
CONFIG_ETH_LITEETH_0=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_HWINFO=y
CONFIG_HWINFO_LITEX=y
12 changes: 12 additions & 0 deletions dts/riscv/riscv32-litex-vexriscv.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,17 @@
label = "eth0";
status = "disabled";
};
dna0: dna@e0003800 {
compatible = "litex,dna0";
/* DNA data is 57-bits long,
so it requires 8 bytes.
In LiteX each 32-bit register holds
only a single byte of meaningful data,
hence 8 registers. */
reg = <0xe0003800 0x20>;
reg-names = "mem";
label = "dna0";
status = "disabled";
};
};
};

0 comments on commit d57a363

Please sign in to comment.