sandbox: Add and build AXI bus and device
authorMario Six <mario.six@gdsys.cc>
Thu, 9 Aug 2018 12:51:19 +0000 (14:51 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 11 Aug 2018 06:10:07 +0000 (08:10 +0200)
Add test AXI drivers to the sandbox.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
arch/sandbox/dts/sandbox.dts
arch/sandbox/dts/test.dts
configs/sandbox_defconfig

index 9f444c96a9ecead08d1745d2e82089e19eea3498..6ac37f1ed7bedfc6e790d96a3accbc65ba6045b0 100644 (file)
@@ -11,6 +11,7 @@
                i2c0 = &i2c_0;
                pci0 = &pci;
                rtc0 = &rtc_0;
+               axi0 = &axi;
        };
 
        chosen {
                        };
                };
        };
+
+       axi: axi@0 {
+               compatible = "sandbox,axi";
+               #address-cells = <0x1>;
+               #size-cells = <0x1>;
+               store@0 {
+                       compatible = "sandbox,sandbox_store";
+                       reg = <0x0 0x400>;
+               };
+       };
 };
 
 #include "cros-ec-keyboard.dtsi"
index 70356461959d34691e8d867341a4904869429170..4483134d6c8c24e78c11330420466f3bcb8d56c1 100644 (file)
@@ -36,6 +36,7 @@
                usb0 = &usb_0;
                usb1 = &usb_1;
                usb2 = &usb_2;
+               axi0 = &axi;
        };
 
        a-test {
                compatible = "sandbox,wdt";
        };
 
+       axi: axi@0 {
+               compatible = "sandbox,axi";
+               #address-cells = <0x1>;
+               #size-cells = <0x1>;
+               store@0 {
+                       compatible = "sandbox,sandbox_store";
+                       reg = <0x0 0x400>;
+               };
+       };
+
        chosen {
                #address-cells = <1>;
                #size-cells = <1>;
index afc34298ed9f6a74dda68c4eedcd912741480441..c8bd15477d3be3bed5ea3415ad2596f0f2c09777 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_CMD_REMOTEPROC=y
 CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_AXI=y
 CONFIG_CMD_TFTPPUT=y
 CONFIG_CMD_TFTPSRV=y
 CONFIG_CMD_RARP=y
@@ -80,6 +81,8 @@ CONFIG_DEVRES=y
 CONFIG_DEBUG_DEVRES=y
 CONFIG_ADC=y
 CONFIG_ADC_SANDBOX=y
+CONFIG_AXI=y
+CONFIG_AXI_SANDBOX=y
 CONFIG_CLK=y
 CONFIG_CPU=y
 CONFIG_DM_DEMO=y