aboutsummaryrefslogtreecommitdiffstats
path: root/doc/building/gcc/Windows-MinGW-GNAT.rst
blob: 09274a534bece331d47878790b46ec3d1b44c303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.. _BUILD:gcc:Windows-MinGW-GNAT:

GCC Backend on Windows with GCC/GNAT (MinGW)
############################################

.. TODO::
   Under investigation on how to build that beast.

.. #
   On Windows with MinGW, GHDL is configured by ``configure`` and build by ``make``.

   * First, GHDL needs to be configured. It is common to specify a ``PREFIX``
     (installation directory like ``/usr/local`` or ``/opt/ghdl``). Without any
     other option, ``configure`` select `mcode` as backend.

   * Next, ``make`` starts the compilation process.

   * Finally, ``make install`` installs GHDL into the installation directory
     specified by ``PREFIX``.

   .. rubric:: Example:

   .. code-block:: Bash

      $ cd <ghdl>
      $ mkdir build
      $ cd build
      $ ../configure --prefix=PREFIX
      $ make
      $ make install
Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

#include "qca956x.dtsi"

/ {
	compatible = "ubnt,ubnt-unifiac-lite", "qca,qca9563";
	model = "Ubiquiti UniFi-AC-LITE/MESH/LR";

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x8000000>;
	};

	chosen {
		bootargs = "console=ttyS0,115200n8";
	};

	leds {
		compatible = "gpio-leds";

		wifi_ac {
			label = "ubnt:white:dome";
			gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
			default-state = "off";
			linux,default-trigger = "phy0tpt";
		};

		wifi_n {
			label = "ubnt:blue:dome";
			gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
			default-state = "off";
			linux,default-trigger = "phy1tpt";
		};

	};

	keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;

		reset {
			label = "Reset button";
			linux,code = <KEY_RESTART>;
			gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};
	};
};

&uart {
	status = "okay";
};

&gpio {
	status = "okay";
};

&pcie {
	status = "okay";
};

&spi {
	status = "okay";
	num-cs = <1>;

	flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <25000000>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x060000>;
				read-only;
			};

			partition@60000 {
				label = "u-boot-env";
				reg = <0x060000 0x010000>;
				read-only;
			};

			partition@70000 {
				label = "firmware";
				reg = <0x070000 0x790000>;
			};

			partition@800000 {
				label = "ubnt-airos";
				reg = <0x800000 0x790000>;
				read-only;
			};

			partition@f90000 {
				label = "bs";
				reg = <0xf90000 0x020000>;
				read-only;
			};

			partition@fb0000 {
				label = "cfg";
				reg = <0xfb0000 0x040000>;
				read-only;
			};

			eeprom: partition@ff0000 {
				label = "EEPROM";
				reg = <0xff0000 0x010000>;
				read-only;
			};
		};
	};
};

&mdio0 {
	status = "okay";

	phy-mask = <4>;
	phy4: ethernet-phy@4 {
		phy-mode = "sgmii";
		reg = <4>;
	};
};

&eth0 {
	status = "okay";

	mtd-mac-address = <&eeprom 0x0>;
	phy-handle = <&phy4>;
};

&wmac {
	status = "okay";
	mtd-cal-data = <&eeprom 0x1000>;
	mtd-mac-address = <&eeprom 0x0>;
};