gpio: Add HAS_GPIO to avoid verilator build errors
The verilator build fails with warnings and errors, because NGPIO is 0 and we do things like: gpio_out : out std_ulogic_vector(NGPIO - 1 downto 0); Set NGPIO to something reasonable (eg 32) and add HAS_GPIO to avoid building the macro entirely if it isn't in use. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>pull/317/head
parent
2bd00f5119
commit
591e96d1a2
Loading…
Reference in New Issue