
# 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_LEON3FT_PRESENT y
#define_bool CONFIG_HAS_SHARED_GRFPU y

mainmenu_name "LEON3MP Design Configuration"

mainmenu_option next_comment
  comment 'Synthesis      '
  source lib/techmap/gencomp/tech.in

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 'Peripherals             '

  mainmenu_option next_comment
  comment 'Memory controller             '
    source lib/esa/memoryctrl/mctrl.in
    source lib/gaisler/ddr/ddr2sp.in
#    mainmenu_option next_comment
#    comment 'Xilinx MIG DDR2 controller   '
#      if [ "$CONFIG_DDR2SP" = "n" ]; then
#	bool 'Enable Xilinx MIG DDR2 controller' CONFIG_MIG_DDR2
#      fi
#    endmenu
    source lib/gaisler/misc/ahbstat.in
  endmenu

  mainmenu_option next_comment
  comment 'On-chip RAM/ROM                 '
    source lib/gaisler/misc/ahbrom.in
    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 'UART, timer, I/O port and interrupt controller'
    if [ "$CONFIG_DSU_UART" != "y" ]; then
      source lib/gaisler/uart/uart1.in
    fi
    source lib/gaisler/irqmp/irqmp.in
    source lib/gaisler/misc/gptimer.in
    source lib/gaisler/misc/grgpio.in
  endmenu

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

  mainmenu_option next_comment
  comment 'Keybord and VGA interface'
    source lib/gaisler/misc/ps2vga.in
  endmenu
  mainmenu_option next_comment
  comment 'SPI'
    source lib/gaisler/spi/spimctrl.in
#    source lib/gaisler/spi/spictrl.in
  endmenu

endmenu

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