#
# LEON3 configuration written in linux configuration language
#
# Written by Jiri Gaisler, Gaisler Research
#
# Comments and bug reports to jiri@gaisler.com
#
#

#define_bool CONFIG_MCTRL_RMW y

define_bool CONFIG_HAS_SHARED_GRFPU y

mainmenu_name "LEON3MP GR-CPCI-XC4V Design Configuration"

mainmenu_option next_comment
  comment 'Synthesis      '
  source lib/techmap/gencomp/tech.in
  if [ "$CONFIG_SYN_VIRTEX4" = "y" ]; then
    choice 'FPGA type                                      ' \
	  "XC4V-LX100		CONFIG_FPGA_LX100 \
          XC4V-LX160		CONFIG_FPGA_LX160 \
          XC4V-LX200   		CONFIG_FPGA_LX200" XC4V-LX100
  fi
endmenu

mainmenu_option next_comment
  comment 'Clock generation'
  source lib/techmap/clocks/clkgen.in
endmenu

source lib/gaisler/leon3/leon3.in
source lib/grlib/amba/amba.in

mainmenu_option next_comment
  comment 'Debug Link           '
  source lib/gaisler/uart/dcom.in
  source lib/gaisler/jtag/jtag.in
  source lib/gaisler/net/edcl.in
endmenu

mainmenu_option next_comment
  comment 'Memory controllers             '
    source lib/esa/memoryctrl/mctrl.in
    source lib/gaisler/misc/ahbstat.in
endmenu

mainmenu_option next_comment
comment 'Peripherals             '

  mainmenu_option next_comment
  comment 'On-chip RAM/ROM                 '
    source lib/gaisler/misc/ahbram.in
  endmenu

  mainmenu_option next_comment
  comment 'Ethernet             '
    source lib/gaisler/greth/greth.in
  endmenu

  mainmenu_option next_comment
  comment 'CAN                     '
    source lib/gaisler/can/can_mc.in
  endmenu

  mainmenu_option next_comment
  comment 'Spacewire      '
    source lib/gaisler/spacewire/spacewire.in
  endmenu

  mainmenu_option next_comment
  comment 'PCI              '
    source lib/gaisler/pci/pci_target.in
    source lib/gaisler/pci/pci_mtf.in
    source lib/gaisler/pci/pcidma.in
    source lib/gaisler/pci/pci.in
    source lib/esa/pci/pci_arb.in
    source lib/gaisler/pci/pcitrace.in
  endmenu

  mainmenu_option next_comment
  comment 'UARTs, timers and I/O port         '
    source lib/gaisler/uart/uart1.in
    source lib/gaisler/uart/uart2.in
    source lib/gaisler/leon3/irqmp.in
    source lib/gaisler/misc/gptimer.in
    source lib/gaisler/misc/grgpio.in
  endmenu

endmenu

mainmenu_option next_comment
comment 'VHDL Debugging        '
  source lib/grlib/util/debug.in
endmenu
