boards: litex_vexriscv: Enable LiteX DNA driver

Enable LiteX DNA ID driver in litex_vexriscv board.

Signed-off-by: Jakub Wegnerowski <jwegnerowski@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
This commit is contained in:
Jakub Wegnerowski 2019-09-11 16:17:04 +02:00 committed by Carles Cufí
commit d57a3634f7
3 changed files with 18 additions and 0 deletions

View file

@ -37,3 +37,7 @@
&eth0 {
status = "okay";
};
&dna0 {
status = "okay";
};

View file

@ -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

View file

@ -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";
};
};
};