diff options
author | Tom Rini <trini@konsulko.com> | 2017-03-14 11:08:11 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-05 13:52:20 -0400 |
commit | 936478e797a87bcd4e002bf70430b6f58584b155 (patch) | |
tree | fa37ca333a77dd69d8ef8978d4f8ca59356d533c /include | |
parent | ea3310e8aafad1da72d9a5e60568d725cbdefdbd (diff) | |
download | u-boot-936478e797a87bcd4e002bf70430b6f58584b155.tar.gz |
SPARC: Remove
The SPARC architecture is currently unmaintained, remove.
Cc: Francois Retief <fgretief@spaceteq.co.za>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ambapp.h | 225 | ||||
-rw-r--r-- | include/ambapp_ids.h | 250 | ||||
-rw-r--r-- | include/configs/gr_cpci_ax2000.h | 339 | ||||
-rw-r--r-- | include/configs/gr_ep2s60.h | 304 | ||||
-rw-r--r-- | include/configs/gr_xc3s_1500.h | 271 | ||||
-rw-r--r-- | include/configs/grsim.h | 313 | ||||
-rw-r--r-- | include/configs/grsim_leon2.h | 283 | ||||
-rw-r--r-- | include/grlib/apbuart.h | 47 | ||||
-rw-r--r-- | include/grlib/gptimer.h | 34 | ||||
-rw-r--r-- | include/grlib/greth.h | 87 | ||||
-rw-r--r-- | include/grlib/irqmp.h | 23 | ||||
-rw-r--r-- | include/netdev.h | 1 |
12 files changed, 0 insertions, 2177 deletions
diff --git a/include/ambapp.h b/include/ambapp.h deleted file mode 100644 index d79fcedb41..0000000000 --- a/include/ambapp.h +++ /dev/null @@ -1,225 +0,0 @@ -/* Interface for accessing Gaisler AMBA Plug&Play Bus. - * The AHB bus can be interfaced with a simpler bus - - * the APB bus, also freely available in GRLIB at - * www.gaisler.com. - * - * (C) Copyright 2009, 2015 - * Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __AMBAPP_H__ -#define __AMBAPP_H__ - -#include <ambapp_ids.h> - -#ifndef __ASSEMBLER__ -/* Structures used to access Plug&Play information directly */ -struct ambapp_pnp_ahb { - const unsigned int id; /* VENDOR, DEVICE, VER, IRQ, */ - const unsigned int custom[3]; - const unsigned int mbar[4]; /* MASK, ADDRESS, TYPE, - * CACHABLE/PREFETCHABLE */ -}; - -struct ambapp_pnp_apb { - const unsigned int id; /* VENDOR, DEVICE, VER, IRQ, */ - const unsigned int iobar; /* MASK, ADDRESS, TYPE, - * CACHABLE/PREFETCHABLE */ -}; - -/* AMBA Plug&Play AHB Masters & Slaves information locations - * Max devices is 64 supported by HW, however often only 16 - * are used. - */ -struct ambapp_pnp_info { - struct ambapp_pnp_ahb masters[64]; - struct ambapp_pnp_ahb slaves[63]; - const unsigned int unused[4]; - const unsigned int systemid[4]; -}; - -/* Describes a AMBA PnP bus */ -struct ambapp_bus { - int buses; /* Number of buses */ - unsigned int ioareas[6]; /* PnP I/O AREAs of AHB buses */ - unsigned int freq; /* Frequency of bus0 [Hz] */ -}; - -/* Processor Local AMBA bus */ -extern struct ambapp_bus ambapp_plb; - -/* Get Bus frequency of a certain AMBA bus */ -extern unsigned int ambapp_bus_freq( - struct ambapp_bus *abus, - int ahb_bus_index - ); - -/* AMBA PnP information of a APB Device */ -typedef struct { - unsigned int vendor; - unsigned int device; - unsigned char irq; - unsigned char ver; - unsigned int address; - unsigned int mask; - int ahb_bus_index; -} ambapp_apbdev; - -/* AMBA PnP information of a AHB Device */ -typedef struct { - unsigned int vendor; - unsigned int device; - unsigned char irq; - unsigned char ver; - unsigned int userdef[3]; - unsigned int address[4]; - unsigned int mask[4]; - int type[4]; - int ahb_bus_index; -} ambapp_ahbdev; - -/* Scan AMBA Bus for AHB Bridges */ -extern void ambapp_bus_init( - unsigned int ioarea, - unsigned int freq, - struct ambapp_bus *abus); - -/* Find APB Slave device by index using breath first search. - * - * When vendor and device are both set to zero, any device - * with a non-zero device ID will match the search. It may be - * useful when processing all devices on a AMBA bus. - */ -extern int ambapp_apb_find( - struct ambapp_bus *abus, - int vendor, - int device, - int index, - ambapp_apbdev *dev - ); - -/* Find AHB Master device by index using breath first search. - * - * When vendor and device are both set to zero, any device - * with a non-zero device ID will match the search. It may be - * useful when processing all devices on a AMBA bus. - */ -extern int ambapp_ahbmst_find( - struct ambapp_bus *abus, - int vendor, - int device, - int index, - ambapp_ahbdev *dev - ); - -/* Find AHB Slave device by index using breath first search. - * - * When vendor and device are both set to zero, any device - * with a non-zero device ID will match the search. It may be - * useful when processing all devices on a AMBA bus. - */ -extern int ambapp_ahbslv_find( - struct ambapp_bus *abus, - int vendor, - int device, - int index, - ambapp_ahbdev *dev - ); - -/* Return number of APB Slave devices of a certain ID (VENDOR:DEVICE) - * zero is returned if no devices was found. - */ -extern int ambapp_apb_count(struct ambapp_bus *abus, int vendor, int device); - -/* Return number of AHB Master devices of a certain ID (VENDOR:DEVICE) - * zero is returned if no devices was found. - */ -extern int ambapp_ahbmst_count(struct ambapp_bus *abus, int vendor, int device); - -/* Return number of AHB Slave devices of a certain ID (VENDOR:DEVICE) - * zero is returned if no devices was found. - */ -extern int ambapp_ahbslv_count(struct ambapp_bus *abus, int vendor, int device); - -#ifdef CONFIG_CMD_AMBAPP - -/* AMBA Plug&Play relocation & initialization */ -int ambapp_init_reloc(void); - -/* AMBA Plug&Play Name of Vendors and devices */ - -/* Return name of device */ -char *ambapp_device_id2str(int vendor, int id); - -/* Return name of vendor */ -char *ambapp_vendor_id2str(int vendor); - -/* Return description of a device */ -char *ambapp_device_id2desc(int vendor, int id); - -#endif - -#endif /* defined(__ASSEMBLER__) */ - -#define AMBA_DEFAULT_IOAREA 0xfff00000 -#define AMBA_CONF_AREA 0xff000 -#define AMBA_AHB_SLAVE_CONF_AREA 0x800 - -#define DEV_NONE 0 -#define DEV_AHB_MST 1 -#define DEV_AHB_SLV 2 -#define DEV_APB_SLV 3 - -#define AMBA_TYPE_APBIO 0x1 -#define AMBA_TYPE_MEM 0x2 -#define AMBA_TYPE_AHBIO 0x3 - -/* ID layout for APB and AHB devices */ -#define AMBA_PNP_ID(vendor, device) (((vendor)<<24) | ((device)<<12)) - -/* APB Slave PnP layout definitions */ -#define AMBA_APB_ID_OFS (0*4) -#define AMBA_APB_IOBAR_OFS (1*4) -#define AMBA_APB_CONF_LENGH (2*4) - -/* AHB Master/Slave layout PnP definitions */ -#define AMBA_AHB_ID_OFS (0*4) -#define AMBA_AHB_CUSTOM0_OFS (1*4) -#define AMBA_AHB_CUSTOM1_OFS (2*4) -#define AMBA_AHB_CUSTOM2_OFS (3*4) -#define AMBA_AHB_MBAR0_OFS (4*4) -#define AMBA_AHB_MBAR1_OFS (5*4) -#define AMBA_AHB_MBAR2_OFS (6*4) -#define AMBA_AHB_MBAR3_OFS (7*4) -#define AMBA_AHB_CONF_LENGH (8*4) - -/* Macros for extracting information from AMBA PnP information - * registers. - */ - -#define amba_vendor(x) (((x) >> 24) & 0xff) - -#define amba_device(x) (((x) >> 12) & 0xfff) - -#define amba_irq(conf) ((conf) & 0x1f) - -#define amba_ver(conf) (((conf)>>5) & 0x1f) - -#define amba_iobar_start(base, iobar) \ - ((base) | ((((iobar) & 0xfff00000)>>12) & (((iobar) & 0xfff0)<<4))) - -#define amba_membar_start(mbar) \ - (((mbar) & 0xfff00000) & (((mbar) & 0xfff0) << 16)) - -#define amba_membar_type(mbar) ((mbar) & 0xf) - -#define amba_membar_mask(mbar) (((mbar) >> 4) & 0xfff) - -#define amba_ahbio_adr(addr, base_ioarea) \ - ((unsigned int)(base_ioarea) | ((addr) >> 12)) - -#define amba_apb_mask(iobar) ((~(amba_membar_mask(iobar)<<8) & 0x000fffff) + 1) - -#endif diff --git a/include/ambapp_ids.h b/include/ambapp_ids.h deleted file mode 100644 index 1eae34e554..0000000000 --- a/include/ambapp_ids.h +++ /dev/null @@ -1,250 +0,0 @@ -/* AMBA Plug & Play Bus Vendor and Device IDs. - * - * (C) Copyright 2010, 2015 - * Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - - -#ifndef __AMBAPP_IDS_H__ -#define __AMBAPP_IDS_H__ - -/* Vendor ID defines */ -#define VENDOR_GAISLER 0x01 -#define VENDOR_PENDER 0x02 -#define VENDOR_ESA 0x04 -#define VENDOR_ASTRIUM 0x06 -#define VENDOR_OPENCHIP 0x07 -#define VENDOR_OPENCORES 0x08 -#define VENDOR_CONTRIB 0x09 -#define VENDOR_EONIC 0x0b -#define VENDOR_RADIONOR 0x0f -#define VENDOR_GLEICHMANN 0x10 -#define VENDOR_MENTA 0x11 -#define VENDOR_SUN 0x13 -#define VENDOR_MOVIDIA 0x14 -#define VENDOR_ORBITA 0x17 -#define VENDOR_SYNOPSYS 0x21 -#define VENDOR_NASA 0x22 -#define VENDOR_S3 0x31 -#define VENDOR_CAL 0xca -#define VENDOR_EMBEDDIT 0xea -#define VENDOR_CETON 0xcb -#define VENDOR_ACTEL 0xac -#define VENDOR_APPLECORE 0xae - -/* Aeroflex Gaisler device ID defines */ -#define GAISLER_LEON2DSU 0x002 -#define GAISLER_LEON3 0x003 -#define GAISLER_LEON3DSU 0x004 -#define GAISLER_ETHAHB 0x005 -#define GAISLER_APBMST 0x006 -#define GAISLER_AHBUART 0x007 -#define GAISLER_SRCTRL 0x008 -#define GAISLER_SDCTRL 0x009 -#define GAISLER_SSRCTRL 0x00a -#define GAISLER_APBUART 0x00c -#define GAISLER_IRQMP 0x00d -#define GAISLER_AHBRAM 0x00e -#define GAISLER_AHBDPRAM 0x00f -#define GAISLER_GPTIMER 0x011 -#define GAISLER_PCITRG 0x012 -#define GAISLER_PCISBRG 0x013 -#define GAISLER_PCIFBRG 0x014 -#define GAISLER_PCITRACE 0x015 -#define GAISLER_DMACTRL 0x016 -#define GAISLER_AHBTRACE 0x017 -#define GAISLER_DSUCTRL 0x018 -#define GAISLER_CANAHB 0x019 -#define GAISLER_GPIO 0x01a -#define GAISLER_AHBROM 0x01b -#define GAISLER_AHBJTAG 0x01c -#define GAISLER_ETHMAC 0x01d -#define GAISLER_SWNODE 0x01e -#define GAISLER_SPW 0x01f -#define GAISLER_AHB2AHB 0x020 -#define GAISLER_USBDC 0x021 -#define GAISLER_USB_DCL 0x022 -#define GAISLER_DDRMP 0x023 -#define GAISLER_ATACTRL 0x024 -#define GAISLER_DDRSP 0x025 -#define GAISLER_EHCI 0x026 -#define GAISLER_UHCI 0x027 -#define GAISLER_I2CMST 0x028 -#define GAISLER_SPW2 0x029 -#define GAISLER_AHBDMA 0x02a -#define GAISLER_NUHOSP3 0x02b -#define GAISLER_CLKGATE 0x02c -#define GAISLER_SPICTRL 0x02d -#define GAISLER_DDR2SP 0x02e -#define GAISLER_SLINK 0x02f -#define GAISLER_GRTM 0x030 -#define GAISLER_GRTC 0x031 -#define GAISLER_GRPW 0x032 -#define GAISLER_GRCTM 0x033 -#define GAISLER_GRHCAN 0x034 -#define GAISLER_GRFIFO 0x035 -#define GAISLER_GRADCDAC 0x036 -#define GAISLER_GRPULSE 0x037 -#define GAISLER_GRTIMER 0x038 -#define GAISLER_AHB2PP 0x039 -#define GAISLER_GRVERSION 0x03a -#define GAISLER_APB2PW 0x03b -#define GAISLER_PW2APB 0x03c -#define GAISLER_GRCAN 0x03d -#define GAISLER_I2CSLV 0x03e -#define GAISLER_U16550 0x03f -#define GAISLER_AHBMST_EM 0x040 -#define GAISLER_AHBSLV_EM 0x041 -#define GAISLER_GRTESTMOD 0x042 -#define GAISLER_ASCS 0x043 -#define GAISLER_IPMVBCTRL 0x044 -#define GAISLER_SPIMCTRL 0x045 -#define GAISLER_L4STAT 0x047 -#define GAISLER_LEON4 0x048 -#define GAISLER_LEON4DSU 0x049 -#define GAISLER_PWM 0x04a -#define GAISLER_L2CACHE 0x04b -#define GAISLER_SDCTRL64 0x04c -#define GAISLER_GR1553B 0x04d -#define GAISLER_1553TST 0x04e -#define GAISLER_GRIOMMU 0x04f -#define GAISLER_FTAHBRAM 0x050 -#define GAISLER_FTSRCTRL 0x051 -#define GAISLER_AHBSTAT 0x052 -#define GAISLER_LEON3FT 0x053 -#define GAISLER_FTMCTRL 0x054 -#define GAISLER_FTSDCTRL 0x055 -#define GAISLER_FTSRCTRL8 0x056 -#define GAISLER_MEMSCRUB 0x057 -#define GAISLER_FTSDCTRL64 0x058 -#define GAISLER_APBPS2 0x060 -#define GAISLER_VGACTRL 0x061 -#define GAISLER_LOGAN 0x062 -#define GAISLER_SVGACTRL 0x063 -#define GAISLER_T1AHB 0x064 -#define GAISLER_MP7WRAP 0x065 -#define GAISLER_GRSYSMON 0x066 -#define GAISLER_GRACECTRL 0x067 -#define GAISLER_ATAHBSLV 0x068 -#define GAISLER_ATAHBMST 0x069 -#define GAISLER_ATAPBSLV 0x06a -#define GAISLER_B1553BC 0x070 -#define GAISLER_B1553RT 0x071 -#define GAISLER_B1553BRM 0x072 -#define GAISLER_AES 0x073 -#define GAISLER_ECC 0x074 -#define GAISLER_PCIF 0x075 -#define GAISLER_CLKMOD 0x076 -#define GAISLER_HAPSTRAK 0x077 -#define GAISLER_TEST_1X2 0x078 -#define GAISLER_WILD2AHB 0x079 -#define GAISLER_BIO1 0x07a -#define GAISLER_AESDMA 0x07b -#define GAISLER_SATCAN 0x080 -#define GAISLER_CANMUX 0x081 -#define GAISLER_GRTMRX 0x082 -#define GAISLER_GRTCTX 0x083 -#define GAISLER_GRTMDESC 0x084 -#define GAISLER_GRTMVC 0x085 -#define GAISLER_GEFFE 0x086 -#define GAISLER_GPREG 0x087 -#define GAISLER_GRTMPAHB 0x088 -#define GAISLER_SPWCUC 0x089 -#define GAISLER_SPW2_DMA 0x08a -#define GAISLER_SPWROUTER 0x08b - -/* European Space Agency device ID defines */ -#define ESA_LEON2 0x002 -#define ESA_LEON2APB 0x003 -#define ESA_IRQ 0x005 -#define ESA_TIMER 0x006 -#define ESA_UART 0x007 -#define ESA_CFG 0x008 -#define ESA_IO 0x009 -#define ESA_MCTRL 0x00f -#define ESA_PCIARB 0x010 -#define ESA_HURRICANE 0x011 -#define ESA_SPW_RMAP 0x012 -#define ESA_AHBUART 0x013 -#define ESA_SPWA 0x014 -#define ESA_BOSCHCAN 0x015 -#define ESA_IRQ2 0x016 -#define ESA_AHBSTAT 0x017 -#define ESA_WPROT 0x018 -#define ESA_WPROT2 0x019 -#define ESA_PDEC3AMBA 0x020 -#define ESA_PTME3AMBA 0x021 - -/* OpenChip device ID defines */ -#define OPENCHIP_APBGPIO 0x001 -#define OPENCHIP_APBI2C 0x002 -#define OPENCHIP_APBSPI 0x003 -#define OPENCHIP_APBCHARLCD 0x004 -#define OPENCHIP_APBPWM 0x005 -#define OPENCHIP_APBPS2 0x006 -#define OPENCHIP_APBMMCSD 0x007 -#define OPENCHIP_APBNAND 0x008 -#define OPENCHIP_APBLPC 0x009 -#define OPENCHIP_APBCF 0x00a -#define OPENCHIP_APBSYSACE 0x00b -#define OPENCHIP_APB1WIRE 0x00c -#define OPENCHIP_APBJTAG 0x00d -#define OPENCHIP_APBSUI 0x00e - -/* Various contributions device ID defines */ -#define CONTRIB_CORE1 0x001 -#define CONTRIB_CORE2 0x002 - -/* Gleichmann Electronics device ID defines */ -#define GLEICHMANN_CUSTOM 0x001 -#define GLEICHMANN_GEOLCD01 0x002 -#define GLEICHMANN_DAC 0x003 -#define GLEICHMANN_HPI 0x004 -#define GLEICHMANN_SPI 0x005 -#define GLEICHMANN_HIFC 0x006 -#define GLEICHMANN_ADCDAC 0x007 -#define GLEICHMANN_SPIOC 0x008 -#define GLEICHMANN_AC97 0x009 - -/* Sun Microsystems device ID defines */ -#define SUN_T1 0x001 -#define SUN_S1 0x011 - -/* Orbita device ID defines */ -#define ORBITA_1553B 0x001 -#define ORBITA_429 0x002 -#define ORBITA_SPI 0x003 -#define ORBITA_I2C 0x004 -#define ORBITA_SMARTCARD 0x064 -#define ORBITA_SDCARD 0x065 -#define ORBITA_UART16550 0x066 -#define ORBITA_CRYPTO 0x067 -#define ORBITA_SYSIF 0x068 -#define ORBITA_PIO 0x069 -#define ORBITA_RTC 0x0c8 -#define ORBITA_COLORLCD 0x12c -#define ORBITA_PCI 0x190 -#define ORBITA_DSP 0x1f4 -#define ORBITA_USBHOST 0x258 -#define ORBITA_USBDEV 0x2bc - -/* NASA device ID defines */ -#define NASA_EP32 0x001 - -/* CAL device ID defines */ -#define CAL_DDRCTRL 0x188 - -/* Actel Corporation device ID defines */ -#define ACTEL_COREMP7 0x001 - -/* AppleCore device ID defines */ -#define APPLECORE_UTLEON3 0x001 -#define APPLECORE_UTLEON3DSU 0x002 - -/* Opencores device id's */ -#define OPENCORES_PCIBR 0x4 -#define OPENCORES_ETHMAC 0x5 - -#endif diff --git a/include/configs/gr_cpci_ax2000.h b/include/configs/gr_cpci_ax2000.h deleted file mode 100644 index 2c8adabc18..0000000000 --- a/include/configs/gr_cpci_ax2000.h +++ /dev/null @@ -1,339 +0,0 @@ -/* Configuration header file for Gaisler GR-CPCI-AX2000 - * AX board. Note that since the AX is removable the configuration - * for this board must be edited below. - * - * (C) Copyright 2003-2005 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * (C) Copyright 2008 - * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __CONFIG_H__ -#define __CONFIG_H__ - -/* - * High Level Configuration Options - * (easy to change) - */ - -#define CONFIG_CPCI_AX2000 1 /* ... on GR-CPCI-AX2000 board */ - -#define CONFIG_LEON_RAM_SRAM 1 -#define CONFIG_LEON_RAM_SDRAM 2 -#define CONFIG_LEON_RAM_SDRAM_NOSRAM 3 - -/* Select Memory to run from - * - * SRAM - UBoot is run in SRAM, SRAM-0x40000000, SDRAM-0x60000000 - * SDRAM - UBoot is run in SDRAM, SRAM-0x40000000 and SDRAM-0x60000000 - * SDRAM_NOSRAM - UBoot is run in SDRAM, SRAM not available, SDRAM at 0x40000000 - * - * Note, if Linux is to be used, SDRAM or SDRAM_NOSRAM is required since - * it doesn't fit into the 4Mb SRAM. - * - * SRAM is default since it will work for all systems, however will not - * be able to boot linux. - */ -#define CONFIG_LEON_RAM_SELECT CONFIG_LEON_RAM_SRAM - -/* CPU / AMBA BUS configuration */ -#define CONFIG_SYS_CLK_FREQ 20000000 /* 20MHz */ - -/* - * Serial console configuration - */ -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } - -/* Partitions */ - -/* - * Supported commands - */ -#define CONFIG_CMD_REGINFO -#define CONFIG_CMD_DIAG -#define CONFIG_CMD_IRQ - -/* - * Autobooting - */ - -#define CONFIG_PREBOOT "echo;" \ - "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \ - "echo" - -#undef CONFIG_BOOTARGS - -#define CONFIG_EXTRA_ENV_SETTINGS_BASE \ - "netdev=eth0\0" \ - "nfsargs=setenv bootargs console=ttyS0,38400 root=/dev/nfs rw " \ - "nfsroot=${serverip}:${rootpath}\0" \ - "ramargs=setenv bootargs console=ttyS0,${baudrate} root=/dev/ram rw\0" \ - "addip=setenv bootargs ${bootargs} " \ - "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ - ":${hostname}:${netdev}:off panic=1\0" \ - "flash_nfs=run nfsargs addip;" \ - "bootm ${kernel_addr}\0" \ - "flash_self=run ramargs addip;" \ - "bootm ${kernel_addr} ${ramdisk_addr}\0" \ - "getkernel=tftpboot $(scratch) $(bootfile)\0" \ - "bootargs=console=ttyS0,38400 root=/dev/nfs rw nfsroot=192.168.0.20:/export/rootfs ip=192.168.0.206:192.168.0.20:192.168.0.1:255.255.255.0:ax2000:eth0\0" - -#if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SRAM -#define CONFIG_EXTRA_ENV_SETTINGS_SELECT \ - "net_nfs=tftp 40000000 ${bootfile};run nfsargs addip;bootm\0" \ - "scratch=40200000\0" \ - "" -#elif CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SDRAM -#define CONFIG_EXTRA_ENV_SETTINGS_SELECT \ - "net_nfs=tftp 60000000 ${bootfile};run nfsargs addip;bootm\0" \ - "scratch=60800000\0" \ - "" -#else -/* More than 4Mb is assumed when running from SDRAM */ -#define CONFIG_EXTRA_ENV_SETTINGS_SELECT \ - "net_nfs=tftp 40000000 ${bootfile};run nfsargs addip;bootm\0" \ - "scratch=40800000\0" \ - "" -#endif - -#define CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_SETTINGS_BASE CONFIG_EXTRA_ENV_SETTINGS_SELECT - -#define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_GATEWAYIP 192.168.0.1 -#define CONFIG_SERVERIP 192.168.0.20 -#define CONFIG_IPADDR 192.168.0.206 -#define CONFIG_ROOTPATH "/export/rootfs" -#define CONFIG_HOSTNAME ax2000 -#define CONFIG_BOOTFILE "/uImage" - -#define CONFIG_BOOTCOMMAND "run flash_self" - -/* Memory MAP - * - * Flash: - * |--------------------------------| - * | 0x00000000 Text & Data & BSS | * - * | for Monitor | * - * | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| * - * | UNUSED / Growth | * 256kb - * |--------------------------------| - * | 0x00050000 Base custom area | * - * | kernel / FS | * - * | | * Rest of Flash - * |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| - * | END-0x00008000 Environment | * 32kb - * |--------------------------------| - * - * - * - * Main Memory (4Mb SRAM or XMb SDRAM): - * |--------------------------------| - * | UNUSED / scratch area | - * | | - * | | - * | | - * | | - * |--------------------------------| - * | Monitor .Text / .DATA / .BSS | * 256kb - * | Relocated! | * - * |--------------------------------| - * | Monitor Malloc | * 128kb (contains relocated environment) - * |--------------------------------| - * | Monitor/kernel STACK | * 64kb - * |--------------------------------| - * | Page Table for MMU systems | * 2k - * |--------------------------------| - * | PROM Code accessed from Linux | * 6kb-128b - * |--------------------------------| - * | Global data (avail from kernel)| * 128b - * |--------------------------------| - * - */ - -/* - * Flash configuration (8,16 or 32 MB) - * TEXT base always at 0xFFF00000 - * ENV_ADDR always at 0xFFF40000 - * FLASH_BASE at 0xFC000000 for 64 MB - * 0xFE000000 for 32 MB - * 0xFF000000 for 16 MB - * 0xFF800000 for 8 MB - */ -#define CONFIG_SYS_FLASH_BASE 0x00000000 -#define CONFIG_SYS_FLASH_SIZE 0x00800000 - -#define PHYS_FLASH_SECT_SIZE 0x00020000 /* 128 KB sectors */ -#define CONFIG_SYS_MAX_FLASH_SECT 64 /* max num of sects on one chip */ -#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max num of memory banks */ - -#define CONFIG_SYS_FLASH_ERASE_TOUT 240000 /* Flash Erase Timeout (in ms) */ -#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */ -#define CONFIG_SYS_FLASH_LOCK_TOUT 5 /* Timeout for Flash Set Lock Bit (in ms) */ -#define CONFIG_SYS_FLASH_UNLOCK_TOUT 10000 /* Timeout for Flash Clear Lock Bits (in ms) */ -#define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ - -/*** CFI CONFIG ***/ -#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT -#define CONFIG_FLASH_CFI_DRIVER -#define CONFIG_SYS_FLASH_CFI -/* Bypass cache when reading regs from flash memory */ -#define CONFIG_SYS_FLASH_CFI_BYPASS_READ -/* Buffered writes (32byte/go) instead of single accesses */ -#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE - -/* - * Environment settings - */ -/*#define CONFIG_ENV_IS_NOWHERE 1*/ -#define CONFIG_ENV_IS_IN_FLASH 1 -/* CONFIG_ENV_ADDR need to be at sector boundary */ -#define CONFIG_ENV_SIZE 0x8000 -#define CONFIG_ENV_SECT_SIZE 0x20000 -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SECT_SIZE) -#define CONFIG_ENV_OVERWRITE 1 - -/* - * Memory map - * - * Always 4Mb SRAM available - * SDRAM module may be available on 0x60000000, SDRAM - * is configured as if a 128Mb SDRAM module is available. - */ - -#if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SDRAM_NOSRAM -#define CONFIG_SYS_SDRAM_BASE 0x40000000 -#else -#define CONFIG_SYS_SDRAM_BASE 0x60000000 -#endif - -#define CONFIG_SYS_SDRAM_SIZE 0x08000000 -#define CONFIG_SYS_SDRAM_END (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE) - -/* 4Mb SRAM available */ -#if CONFIG_LEON_RAM_SELECT != CONFIG_LEON_RAM_SDRAM_NOSRAM -#define CONFIG_SYS_SRAM_BASE 0x40000000 -#define CONFIG_SYS_SRAM_SIZE 0x400000 -#define CONFIG_SYS_SRAM_END (CONFIG_SYS_SRAM_BASE+CONFIG_SYS_SRAM_SIZE) -#endif - -/* Select RAM used to run U-BOOT from... */ -#if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SRAM -#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SRAM_BASE -#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SRAM_SIZE -#define CONFIG_SYS_RAM_END CONFIG_SYS_SRAM_END -#else -#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE -#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END -#endif - -#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_RAM_END - GENERATED_GBL_DATA_SIZE) - -#define CONFIG_SYS_PROM_SIZE (8192-GENERATED_GBL_DATA_SIZE) -#define CONFIG_SYS_PROM_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE) - -#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_PROM_OFFSET-32) -#define CONFIG_SYS_STACK_SIZE (0x10000-32) - -#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE -#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) -# define CONFIG_SYS_RAMBOOT 1 -#endif - -#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ -#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ - -#define CONFIG_SYS_MALLOC_END (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE) -#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN) - -/* relocated monitor area */ -#define CONFIG_SYS_RELOC_MONITOR_MAX_END CONFIG_SYS_MALLOC_BASE -#define CONFIG_SYS_RELOC_MONITOR_BASE (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN) - -/* make un relocated address from relocated address */ -#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-CONFIG_SYS_TEXT_BASE)) - -/* - * Ethernet configuration uses on board SMC91C111 - */ -#define CONFIG_SMC91111 1 -#define CONFIG_SMC91111_BASE 0x20000300 /* chip select 3 */ -#define CONFIG_SMC_USE_32_BIT 1 /* 32 bit bus */ -#undef CONFIG_SMC_91111_EXT_PHY /* we use internal phy */ -/*#define CONFIG_SHOW_ACTIVITY*/ -#define CONFIG_NET_RETRY_COUNT 10 /* # of retries */ - -#define CONFIG_PHY_ADDR 0x00 - -/* - * Miscellaneous configurable options - */ -#define CONFIG_SYS_LONGHELP /* undef to save memory */ -#if defined(CONFIG_CMD_KGDB) -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -#else -#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ -#endif -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ -#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ - -#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */ -#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */ - -#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ - -/* - * Various low-level settings - */ - -/*----------------------------------------------------------------------- - * USB stuff - *----------------------------------------------------------------------- - */ -#define CONFIG_USB_CLOCK 0x0001BBBB -#define CONFIG_USB_CONFIG 0x00005000 - -/***** Gaisler GRLIB IP-Cores Config ********/ - -#define CONFIG_SYS_GRLIB_SDRAM 0 - -/* No SDRAM Configuration */ -#undef CONFIG_SYS_GRLIB_GAISLER_SDCTRL1 - -/* See, GRLIB Docs (grip.pdf) on how to set up - * These the memory controller registers. - */ -#define CONFIG_SYS_GRLIB_ESA_MCTRL1 -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG1 (0x10f800ff | (1<<11)) -#if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SDRAM_NOSRAM -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG2 0x82206000 -#else -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG2 0x82205260 -#endif -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG3 0x0809a000 - -/* GRLIB FT-MCTRL configuration */ -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1 -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG1 (0x10f800ff | (1<<11)) -#if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SDRAM_NOSRAM -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG2 0x82206000 -#else -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG2 0x82205260 -#endif -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG3 0x0809a000 - -/* no DDR controller */ -#undef CONFIG_SYS_GRLIB_GAISLER_DDRSPA1 - -/* no DDR2 Controller */ -#undef CONFIG_SYS_GRLIB_GAISLER_DDR2SPA1 - -/* default kernel command line */ -#define CONFIG_DEFAULT_KERNEL_COMMAND_LINE "console=ttyS0,38400\0\0" - -#endif /* __CONFIG_H */ diff --git a/include/configs/gr_ep2s60.h b/include/configs/gr_ep2s60.h deleted file mode 100644 index 2edb1b0ed5..0000000000 --- a/include/configs/gr_ep2s60.h +++ /dev/null @@ -1,304 +0,0 @@ -/* Configuration header file for Gaisler Research AB's Template - * design (GPL Open Source SPARC/LEON3 96MHz) for Altera NIOS - * Development board Stratix II edition, with the FPGA device - * EP2S60. - * - * (C) Copyright 2003-2005 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * (C) Copyright 2008 - * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __CONFIG_H__ -#define __CONFIG_H__ - -/* - * High Level Configuration Options - * (easy to change) - */ - -/* Altera NIOS Development board, Stratix II board */ -#define CONFIG_GR_EP2S60 1 - -/* CPU / AMBA BUS configuration */ -#define CONFIG_SYS_CLK_FREQ 96000000 /* 96MHz */ - -/* Define this is the GR-2S60-MEZZ mezzanine is available and you - * want to use the USB and GRETH functionality of the board - */ -#undef GR_2S60_MEZZ - -#ifdef GR_2S60_MEZZ -#define USE_GRETH 1 -#define USE_GRUSB 1 -#endif - -/* - * Serial console configuration - */ -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } - -/* Partitions */ - -/* - * Supported commands - */ -#define CONFIG_CMD_REGINFO -#define CONFIG_CMD_DIAG -#define CONFIG_CMD_IRQ - -/* USB support */ -#if USE_GRUSB -#define CONFIG_USB_UHCI -/* Enable needed helper functions */ -#endif - -/* - * Autobooting - */ - -#define CONFIG_PREBOOT "echo;" \ - "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \ - "echo" - -#undef CONFIG_BOOTARGS - -#define CONFIG_EXTRA_ENV_SETTINGS \ - "netdev=eth0\0" \ - "nfsargs=setenv bootargs console=ttyS0,38400 root=/dev/nfs rw " \ - "nfsroot=${serverip}:${rootpath}\0" \ - "ramargs=setenv bootargs console=ttyS0,${baudrate} root=/dev/ram rw\0" \ - "addip=setenv bootargs ${bootargs} " \ - "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ - ":${hostname}:${netdev}:off panic=1\0" \ - "flash_nfs=run nfsargs addip;" \ - "bootm ${kernel_addr}\0" \ - "flash_self=run ramargs addip;" \ - "bootm ${kernel_addr} ${ramdisk_addr}\0" \ - "net_nfs=tftp 40000000 ${bootfile};run nfsargs addip;bootm\0" \ - "scratch=40800000\0" \ - "getkernel=tftpboot $(scratch) $(bootfile)\0" \ - "bootargs=console=ttyS0,38400 root=/dev/nfs rw nfsroot=192.168.0.20:/export/rootfs ip=192.168.0.207:192.168.0.20:192.168.0.1:255.255.255.0:ml401:eth0\0" \ - "" - -#define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_GATEWAYIP 192.168.0.1 -#define CONFIG_SERVERIP 192.168.0.20 -#define CONFIG_IPADDR 192.168.0.207 -#define CONFIG_ROOTPATH "/export/rootfs" -#define CONFIG_HOSTNAME ml401 -#define CONFIG_BOOTFILE "/uImage" - -#define CONFIG_BOOTCOMMAND "run flash_self" - -/* Memory MAP - * - * Flash: - * |--------------------------------| - * | 0x00000000 Text & Data & BSS | * - * | for Monitor | * - * | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| * - * | UNUSED / Growth | * 256kb - * |--------------------------------| - * | 0x00050000 Base custom area | * - * | kernel / FS | * - * | | * Rest of Flash - * |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| - * | END-0x00008000 Environment | * 32kb - * |--------------------------------| - * - * - * - * Main Memory: - * |--------------------------------| - * | UNUSED / scratch area | - * | | - * | | - * | | - * | | - * |--------------------------------| - * | Monitor .Text / .DATA / .BSS | * 512kb - * | Relocated! | * - * |--------------------------------| - * | Monitor Malloc | * 128kb (contains relocated environment) - * |--------------------------------| - * | Monitor/kernel STACK | * 64kb - * |--------------------------------| - * | Page Table for MMU systems | * 2k - * |--------------------------------| - * | PROM Code accessed from Linux | * 6kb-128b - * |--------------------------------| - * | Global data (avail from kernel)| * 128b - * |--------------------------------| - * - */ - -/* - * Flash configuration (8,16 or 32 MB) - * TEXT base always at 0xFFF00000 - * ENV_ADDR always at 0xFFF40000 - * FLASH_BASE at 0xFC000000 for 64 MB - * 0xFE000000 for 32 MB - * 0xFF000000 for 16 MB - * 0xFF800000 for 8 MB - */ -#define CONFIG_SYS_FLASH_BASE 0x00000000 -#define CONFIG_SYS_FLASH_SIZE 0x00400000 /* FPGA Bit file is in top of FLASH, we only ues the bottom 4Mb */ - -#define PHYS_FLASH_SECT_SIZE 0x00010000 /* 64 KB sectors */ -#define CONFIG_SYS_MAX_FLASH_SECT 256 /* max num of sects on one chip */ -#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max num of memory banks */ - -#define CONFIG_SYS_FLASH_ERASE_TOUT 240000 /* Flash Erase Timeout (in ms) */ -#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */ -#define CONFIG_SYS_FLASH_LOCK_TOUT 5 /* Timeout for Flash Set Lock Bit (in ms) */ -#define CONFIG_SYS_FLASH_UNLOCK_TOUT 10000 /* Timeout for Flash Clear Lock Bits (in ms) */ -#define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ - -/*** CFI CONFIG ***/ -#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT -#define CONFIG_FLASH_CFI_DRIVER -#define CONFIG_SYS_FLASH_CFI -/* Bypass cache when reading regs from flash memory */ -#define CONFIG_SYS_FLASH_CFI_BYPASS_READ -/* Buffered writes (32byte/go) instead of single accesses */ -#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE - -/* - * Environment settings - */ -/*#define CONFIG_ENV_IS_NOWHERE 1*/ -#define CONFIG_ENV_IS_IN_FLASH 1 -/* CONFIG_ENV_ADDR need to be at sector boundary */ -#define CONFIG_ENV_SIZE 0x8000 -#define CONFIG_ENV_SECT_SIZE 0x20000 -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SECT_SIZE) -#define CONFIG_ENV_OVERWRITE 1 - -/* - * Memory map - */ -#define CONFIG_SYS_SDRAM_BASE 0x40000000 -#define CONFIG_SYS_SDRAM_SIZE 0x02000000 -#define CONFIG_SYS_SDRAM_END (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE) - -/* no SRAM available */ -#undef CONFIG_SYS_SRAM_BASE -#undef CONFIG_SYS_SRAM_SIZE - -#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE -#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END - -#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_END - GENERATED_GBL_DATA_SIZE) - -#define CONFIG_SYS_PROM_SIZE (8192-GENERATED_GBL_DATA_SIZE) -#define CONFIG_SYS_PROM_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE) - -#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_PROM_OFFSET-32) -#define CONFIG_SYS_STACK_SIZE (0x10000-32) - -#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE -#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) -# define CONFIG_SYS_RAMBOOT 1 -#endif - -#define CONFIG_SYS_MONITOR_LEN (512 << 10) /* Reserve 512 kB for Monitor */ -#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ - -#define CONFIG_SYS_MALLOC_END (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE) -#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN) - -/* relocated monitor area */ -#define CONFIG_SYS_RELOC_MONITOR_MAX_END CONFIG_SYS_MALLOC_BASE -#define CONFIG_SYS_RELOC_MONITOR_BASE (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN) - -/* make un relocated address from relocated address */ -#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-CONFIG_SYS_TEXT_BASE)) - -/* - * Ethernet configuration uses on board SMC91C111, however if a mezzanine - * with a PHY is attached the GRETH can be used on this board. - * Define USE_GRETH in order to use the mezzanine provided PHY with the - * onchip GRETH network MAC, note that this is not supported by the - * template design. - */ -#ifndef USE_GRETH - -/* USE SMC91C111 MAC */ -#define CONFIG_SMC91111 1 -#define CONFIG_SMC91111_BASE 0x20000300 /* chip select 3 */ -#define CONFIG_SMC_USE_32_BIT 1 /* 32 bit bus */ -#undef CONFIG_SMC_91111_EXT_PHY /* we use internal phy */ -/*#define CONFIG_SHOW_ACTIVITY*/ -#define CONFIG_NET_RETRY_COUNT 10 /* # of retries */ - -#else - -/* USE GRETH Ethernet Driver */ -#define CONFIG_GRETH 1 -#endif - -#define CONFIG_PHY_ADDR 0x00 - -/* - * Miscellaneous configurable options - */ -#define CONFIG_SYS_LONGHELP /* undef to save memory */ -#if defined(CONFIG_CMD_KGDB) -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -#else -#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ -#endif -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ -#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ - -#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */ -#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */ - -#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ - -/*----------------------------------------------------------------------- - * USB stuff - *----------------------------------------------------------------------- - */ -#define CONFIG_USB_CLOCK 0x0001BBBB -#define CONFIG_USB_CONFIG 0x00005000 - -/***** Gaisler GRLIB IP-Cores Config ********/ - -#define CONFIG_SYS_GRLIB_SDRAM 0 - -/* No SDRAM Configuration */ -#undef CONFIG_SYS_GRLIB_GAISLER_SDCTRL1 - -/* See, GRLIB Docs (grip.pdf) on how to set up - * These the memory controller registers. - */ -#define CONFIG_SYS_GRLIB_ESA_MCTRL1 -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG1 (0x10f800ff | (1<<11)) -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG2 0x00000000 -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG3 0x00000000 - -/* GRLIB FT-MCTRL configuration */ -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1 -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG1 (0x10f800ff | (1<<11)) -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG2 0x00000000 -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG3 0x00000000 - -/* DDR controller */ -#define CONFIG_SYS_GRLIB_GAISLER_DDRSPA1 -#define CONFIG_SYS_GRLIB_GAISLER_DDRSPA1_CTRL 0xa900830a - -/* no DDR2 Controller */ -#undef CONFIG_SYS_GRLIB_GAISLER_DDR2SPA1 - -/* default kernel command line */ -#define CONFIG_DEFAULT_KERNEL_COMMAND_LINE "console=ttyS0,38400\0\0" - -#endif /* __CONFIG_H */ diff --git a/include/configs/gr_xc3s_1500.h b/include/configs/gr_xc3s_1500.h deleted file mode 100644 index b8ac7d1d78..0000000000 --- a/include/configs/gr_xc3s_1500.h +++ /dev/null @@ -1,271 +0,0 @@ -/* Configuration header file for Gaisler GR-XC3S-1500 - * spartan board. - * - * (C) Copyright 2003-2005 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * (C) Copyright 2007 - * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __CONFIG_H__ -#define __CONFIG_H__ - -/* - * High Level Configuration Options - * (easy to change) - */ - -#define CONFIG_GRXC3S1500 1 /* ... on GR-XC3S-1500 board */ - -/* CPU / AMBA BUS configuration */ -#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */ - -/* - * Serial console configuration - */ -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } - -/* Partitions */ - -/* - * Supported commands - */ -#define CONFIG_CMD_REGINFO -#define CONFIG_CMD_DIAG -#define CONFIG_CMD_IRQ - -/* - * Autobooting - */ - -#define CONFIG_PREBOOT "echo;" \ - "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \ - "echo" - -#undef CONFIG_BOOTARGS - -#define CONFIG_EXTRA_ENV_SETTINGS \ - "netdev=eth0\0" \ - "nfsargs=setenv bootargs console=ttyS0,38400 root=/dev/nfs rw " \ - "nfsroot=${serverip}:${rootpath}\0" \ - "ramargs=setenv bootargs console=ttyS0,${baudrate} root=/dev/ram rw\0" \ - "addip=setenv bootargs ${bootargs} " \ - "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ - ":${hostname}:${netdev}:off panic=1\0" \ - "flash_nfs=run nfsargs addip;" \ - "bootm ${kernel_addr}\0" \ - "flash_self=run ramargs addip;" \ - "bootm ${kernel_addr} ${ramdisk_addr}\0" \ - "net_nfs=tftp 40000000 ${bootfile};run nfsargs addip;bootm\0" \ - "scratch=40200000\0" \ - "getkernel=tftpboot $(scratch) $(bootfile)\0" \ - "bootargs=console=ttyS0,38400 root=/dev/nfs rw nfsroot=192.168.0.20:/export/rootfs ip=192.168.0.206:192.168.0.20:192.168.0.1:255.255.255.0:grxc3s1500_daniel:eth0\0" \ - "" - -#define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_GATEWAYIP 192.168.0.1 -#define CONFIG_SERVERIP 192.168.0.20 -#define CONFIG_IPADDR 192.168.0.206 -#define CONFIG_ROOTPATH "/export/rootfs" -#define CONFIG_HOSTNAME grxc3s1500 -#define CONFIG_BOOTFILE "/uImage" - -#define CONFIG_BOOTCOMMAND "run flash_self" - -/* Memory MAP - * - * Flash: - * |--------------------------------| - * | 0x00000000 Text & Data & BSS | * - * | for Monitor | * - * | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| * - * | UNUSED / Growth | * 256kb - * |--------------------------------| - * | 0x00050000 Base custom area | * - * | kernel / FS | * - * | | * Rest of Flash - * |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| - * | END-0x00008000 Environment | * 32kb - * |--------------------------------| - * - * - * - * Main Memory: - * |--------------------------------| - * | UNUSED / scratch area | - * | | - * | | - * | | - * | | - * |--------------------------------| - * | Monitor .Text / .DATA / .BSS | * 256kb - * | Relocated! | * - * |--------------------------------| - * | Monitor Malloc | * 128kb (contains relocated environment) - * |--------------------------------| - * | Monitor/kernel STACK | * 64kb - * |--------------------------------| - * | Page Table for MMU systems | * 2k - * |--------------------------------| - * | PROM Code accessed from Linux | * 6kb-128b - * |--------------------------------| - * | Global data (avail from kernel)| * 128b - * |--------------------------------| - * - */ - -/* - * Flash configuration (8,16 or 32 MB) - * TEXT base always at 0xFFF00000 - * ENV_ADDR always at 0xFFF40000 - * FLASH_BASE at 0xFC000000 for 64 MB - * 0xFE000000 for 32 MB - * 0xFF000000 for 16 MB - * 0xFF800000 for 8 MB - */ -#define CONFIG_SYS_FLASH_BASE 0x00000000 -#define CONFIG_SYS_FLASH_SIZE 0x00800000 - -#define PHYS_FLASH_SECT_SIZE 0x00020000 /* 128 KB sectors */ -#define CONFIG_SYS_MAX_FLASH_SECT 64 /* max num of sects on one chip */ -#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max num of memory banks */ - -#define CONFIG_SYS_FLASH_ERASE_TOUT 240000 /* Flash Erase Timeout (in ms) */ -#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */ -#define CONFIG_SYS_FLASH_LOCK_TOUT 5 /* Timeout for Flash Set Lock Bit (in ms) */ -#define CONFIG_SYS_FLASH_UNLOCK_TOUT 10000 /* Timeout for Flash Clear Lock Bits (in ms) */ -#define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ - -/*** CFI CONFIG ***/ -#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT -#define CONFIG_FLASH_CFI_DRIVER -#define CONFIG_SYS_FLASH_CFI -/* Bypass cache when reading regs from flash memory */ -#define CONFIG_SYS_FLASH_CFI_BYPASS_READ -/* Buffered writes (32byte/go) instead of single accesses */ -#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE - -/* - * Environment settings - */ -/*#define CONFIG_ENV_IS_NOWHERE 1*/ -#define CONFIG_ENV_IS_IN_FLASH 1 -/* CONFIG_ENV_ADDR need to be at sector boundary */ -#define CONFIG_ENV_SIZE 0x8000 -#define CONFIG_ENV_SECT_SIZE 0x20000 -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SECT_SIZE) -#define CONFIG_ENV_OVERWRITE 1 - -/* - * Memory map - */ -#define CONFIG_SYS_SDRAM_BASE 0x40000000 -#define CONFIG_SYS_SDRAM_SIZE 0x4000000 -#define CONFIG_SYS_SDRAM_END (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE) - -/* no SRAM available */ -#undef CONFIG_SYS_SRAM_BASE -#undef CONFIG_SYS_SRAM_SIZE - -/* Always Run U-Boot from SDRAM */ -#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE -#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END - -#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_RAM_END - GENERATED_GBL_DATA_SIZE) - -#define CONFIG_SYS_PROM_SIZE (8192-GENERATED_GBL_DATA_SIZE) -#define CONFIG_SYS_PROM_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE) - -#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_PROM_OFFSET-32) -#define CONFIG_SYS_STACK_SIZE (0x10000-32) - -#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE -#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) -# define CONFIG_SYS_RAMBOOT 1 -#endif - -#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ -#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ - -#define CONFIG_SYS_MALLOC_END (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE) -#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN) - -/* relocated monitor area */ -#define CONFIG_SYS_RELOC_MONITOR_MAX_END CONFIG_SYS_MALLOC_BASE -#define CONFIG_SYS_RELOC_MONITOR_BASE (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN) - -/* make un relocated address from relocated address */ -#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-CONFIG_SYS_TEXT_BASE)) - -/* - * Ethernet configuration - */ -#define CONFIG_GRETH 1 - -#define CONFIG_PHY_ADDR 0x00 - -/* - * Miscellaneous configurable options - */ -#define CONFIG_SYS_LONGHELP /* undef to save memory */ -#if defined(CONFIG_CMD_KGDB) -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -#else -#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ -#endif -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ -#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ - -#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */ -#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */ - -#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ - -/* - * Various low-level settings - */ - -/*----------------------------------------------------------------------- - * USB stuff - *----------------------------------------------------------------------- - */ -#define CONFIG_USB_CLOCK 0x0001BBBB -#define CONFIG_USB_CONFIG 0x00005000 - -/***** Gaisler GRLIB IP-Cores Config ********/ - -#define CONFIG_SYS_GRLIB_SDRAM 0 - -/* No SDRAM Configuration */ -#undef CONFIG_SYS_GRLIB_GAISLER_SDCTRL1 - -/* See, GRLIB Docs (grip.pdf) on how to set up - * These the memory controller registers. - */ -#define CONFIG_SYS_GRLIB_ESA_MCTRL1 -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG1 (0x000000ff | (1<<11)) -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG2 0x82206000 -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG3 0x00136000 - -/* GRLIB FT-MCTRL configuration */ -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1 -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG1 (0x000000ff | (1<<11)) -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG2 0x82206000 -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG3 0x00136000 - -/* no DDR controller */ -#undef CONFIG_SYS_GRLIB_GAISLER_DDRSPA1 - -/* no DDR2 Controller */ -#undef CONFIG_SYS_GRLIB_GAISLER_DDR2SPA1 - -/* default kernel command line */ -#define CONFIG_DEFAULT_KERNEL_COMMAND_LINE "console=ttyS0,38400\0\0" - -#endif /* __CONFIG_H */ diff --git a/include/configs/grsim.h b/include/configs/grsim.h deleted file mode 100644 index 4594b131ac..0000000000 --- a/include/configs/grsim.h +++ /dev/null @@ -1,313 +0,0 @@ -/* Configuration header file for LEON3 GRSIM, trying to be similar - * to Gaisler's GR-XC3S-1500 board. - * - * (C) Copyright 2003-2005 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * (C) Copyright 2007 - * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __CONFIG_H__ -#define __CONFIG_H__ - -/* - * High Level Configuration Options - * (easy to change) - * - * Select between TSIM or GRSIM by setting CONFIG_GRSIM or CONFIG_TSIM to 1. - * - * TSIM command: - * $ tsim-leon3 -sdram 32768 -ram 4096 -rom 2048 -mmu -cas - * - * In the evaluation version of TSIM, the -sdram/-ram/-rom arguments are - * hard-coded to these values and need not be specified. (see below) - * - * Get TSIM from http://www.gaisler.com/index.php/downloads/simulators - */ - -#define CONFIG_GRSIM 0 /* ... not running on GRSIM */ -#define CONFIG_TSIM 1 /* ... running on TSIM */ - -/* CPU / AMBA BUS configuration */ -#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */ - -/* - * Serial console configuration - */ -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } - -/* Partitions */ - -/* - * Supported commands - */ -#define CONFIG_CMD_DIAG -#define CONFIG_CMD_FPGA_LOADMK -#define CONFIG_CMD_IRQ -#define CONFIG_CMD_REGINFO - -/* - * Autobooting - */ - -#define CONFIG_PREBOOT "echo;" \ - "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \ - "echo" - -#undef CONFIG_BOOTARGS - -#define CONFIG_EXTRA_ENV_SETTINGS \ - "netdev=eth0\0" \ - "nfsargs=setenv bootargs root=/dev/nfs rw " \ - "nfsroot=${serverip}:${rootpath}\0" \ - "ramargs=setenv bootargs root=/dev/ram rw\0" \ - "addip=setenv bootargs ${bootargs} " \ - "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ - ":${hostname}:${netdev}:off panic=1\0" \ - "flash_nfs=run nfsargs addip;" \ - "bootm ${kernel_addr}\0" \ - "flash_self=run ramargs addip;" \ - "bootm ${kernel_addr} ${ramdisk_addr}\0" \ - "net_nfs=tftp 40000000 ${bootfile};run nfsargs addip;bootm\0" \ - "rootpath=/export/roofs\0" \ - "scratch=40000000\0" \ - "getkernel=tftpboot $(scratch) $(bootfile)\0" \ - "bootargs=console=ttyS0,38400" \ - "" -#define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_GATEWAYIP 192.168.0.1 -#define CONFIG_SERVERIP 192.168.0.81 -#define CONFIG_IPADDR 192.168.0.80 -#define CONFIG_ROOTPATH "/export/rootfs" -#define CONFIG_HOSTNAME grxc3s1500 -#define CONFIG_BOOTFILE "/uImage" - -#define CONFIG_BOOTCOMMAND "run flash_self" - -/* Memory MAP - * - * Flash: - * |--------------------------------| - * | 0x00000000 Text & Data & BSS | * - * | for Monitor | * - * | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| * - * | UNUSED / Growth | * 256kb - * |--------------------------------| - * | 0x00050000 Base custom area | * - * | kernel / FS | * - * | | * Rest of Flash - * |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| - * | END-0x00008000 Environment | * 32kb - * |--------------------------------| - * - * - * - * Main Memory: - * |--------------------------------| - * | UNUSED / scratch area | - * | | - * | | - * | | - * | | - * |--------------------------------| - * | Monitor .Text / .DATA / .BSS | * 256kb - * | Relocated! | * - * |--------------------------------| - * | Monitor Malloc | * 128kb (contains relocated environment) - * |--------------------------------| - * | Monitor/kernel STACK | * 64kb - * |--------------------------------| - * | Page Table for MMU systems | * 2k - * |--------------------------------| - * | PROM Code accessed from Linux | * 6kb-128b - * |--------------------------------| - * | Global data (avail from kernel)| * 128b - * |--------------------------------| - * - */ - -/* - * Flash configuration (8,16 or 32 MB) - * TEXT base always at 0xFFF00000 - * ENV_ADDR always at 0xFFF40000 - * FLASH_BASE at 0xFC000000 for 64 MB - * 0xFE000000 for 32 MB - * 0xFF000000 for 16 MB - * 0xFF800000 for 8 MB - */ -#define CONFIG_SYS_FLASH_BASE 0x00000000 -#define CONFIG_SYS_FLASH_SIZE 0x00800000 -#define CONFIG_ENV_SIZE 0x8000 - -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SIZE) - -#define PHYS_FLASH_SECT_SIZE 0x00020000 /* 128 KB sectors */ -#define CONFIG_SYS_MAX_FLASH_SECT 64 /* max num of sects on one chip */ -#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max num of memory banks */ - -#define CONFIG_SYS_FLASH_ERASE_TOUT 240000 /* Flash Erase Timeout (in ms) */ -#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */ -#define CONFIG_SYS_FLASH_LOCK_TOUT 5 /* Timeout for Flash Set Lock Bit (in ms) */ -#define CONFIG_SYS_FLASH_UNLOCK_TOUT 10000 /* Timeout for Flash Clear Lock Bits (in ms) */ - -#ifdef ENABLE_FLASH_SUPPORT -/* For use with grsim FLASH emulation extension */ -#define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ - -#undef CONFIG_FLASH_8BIT /* Flash is 32-bit */ - -/*** CFI CONFIG ***/ -#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT -#define CONFIG_FLASH_CFI_DRIVER -#define CONFIG_SYS_FLASH_CFI -#endif - -/* - * Environment settings - */ -#define CONFIG_ENV_IS_NOWHERE 1 -/*#define CONFIG_ENV_IS_IN_FLASH*/ -/*#define CONFIG_ENV_SIZE 0x8000*/ -#define CONFIG_ENV_SECT_SIZE 0x40000 -#define CONFIG_ENV_OVERWRITE 1 - -/* - * Memory map - */ -#define CONFIG_SYS_SDRAM_BASE 0x60000000 -#define CONFIG_SYS_SDRAM_SIZE 0x02000000 /* 32MiB SDRAM */ -#define CONFIG_SYS_SDRAM_END (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE) - -#define CONFIG_SYS_SRAM_BASE 0x40000000 -#define CONFIG_SYS_SRAM_SIZE 0x00400000 /* 4MiB SRAM */ -#define CONFIG_SYS_SRAM_END (CONFIG_SYS_SRAM_BASE + CONFIG_SYS_SRAM_SIZE) - -/* Always Run U-Boot from SDRAM */ -#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE -#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END - -#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_RAM_END - GENERATED_GBL_DATA_SIZE) - -#define CONFIG_SYS_PROM_SIZE (8192-GENERATED_GBL_DATA_SIZE) -#define CONFIG_SYS_PROM_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE) - -#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_PROM_OFFSET-32) -#define CONFIG_SYS_STACK_SIZE (0x10000-32) - -#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE -#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) -# define CONFIG_SYS_RAMBOOT 1 -#endif - -#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ -#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ - -#define CONFIG_SYS_MALLOC_END (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE) -#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN) - -/* relocated monitor area */ -#define CONFIG_SYS_RELOC_MONITOR_MAX_END CONFIG_SYS_MALLOC_BASE -#define CONFIG_SYS_RELOC_MONITOR_BASE (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN) - -/* make un relocated address from relocated address */ -#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-CONFIG_SYS_TEXT_BASE)) - -#ifdef CONFIG_CMD_NET -/* - * Ethernet configuration - */ -#define CONFIG_GRETH 1 - -/* - * Define CONFIG_GRETH_10MBIT to force GRETH at 10Mb/s - */ -/* #define CONFIG_GRETH_10MBIT 1 */ -#define CONFIG_PHY_ADDR 0x00 - -#endif /* CONFIG_CMD_NET */ - -/* - * Miscellaneous configurable options - */ -#define CONFIG_SYS_LONGHELP /* undef to save memory */ -#if defined(CONFIG_CMD_KGDB) -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -#else -#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ -#endif -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ -#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ - -#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */ -#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */ - -#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ - -/***** Gaisler GRLIB IP-Cores Config ********/ - -#define CONFIG_SYS_GRLIB_SDRAM 0 - -#define CONFIG_SYS_GRLIB_MEMCFG1 (0x000000ff | (1<<11)) - -/* No SDRAM Configuration */ -#undef CONFIG_SYS_GRLIB_GAISLER_SDCTRL1 - -/* LEON2 MCTRL configuration */ -#define CONFIG_SYS_GRLIB_ESA_MCTRL1 -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG1 (0x000000ff | (1<<11)) -#if CONFIG_GRSIM -/* GRSIM configuration */ -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG2 0x82206000 -#else -/* TSIM configuration */ -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG2 0x81805220 -#endif -#define CONFIG_SYS_GRLIB_ESA_MCTRL1_CFG3 0x00136000 - -/* GRLIB FT-MCTRL configuration */ -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1 -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG1 (0x000000ff | (1<<11)) -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG2 0x82206000 -#define CONFIG_SYS_GRLIB_GAISLER_FTMCTRL1_CFG3 0x00136000 - -/* no DDR controller */ -#undef CONFIG_SYS_GRLIB_GAISLER_DDRSPA1 - -/* no DDR2 Controller */ -#undef CONFIG_SYS_GRLIB_GAISLER_DDR2SPA1 - -/* default kernel command line */ -#define CONFIG_DEFAULT_KERNEL_COMMAND_LINE "console=ttyS0,38400\0\0" - -/* TSIM command: - * $ ./tsim-leon3 -mmu -cas - * - * This TSIM evaluation version will expire 2015-04-02 - * - * - * TSIM/LEON3 SPARC simulator, version 2.0.35 (evaluation version) - * - * Copyright (C) 2014, Aeroflex Gaisler - all rights reserved. - * This software may only be used with a valid license. - * For latest updates, go to http://www.gaisler.com/ - * Comments or bug-reports to support@gaisler.com - * - * serial port A on stdin/stdout - * allocated 4096 K SRAM memory, in 1 bank - * allocated 32 M SDRAM memory, in 1 bank - * allocated 2048 K ROM memory - * icache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total) - * dcache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total) - * tsim> leon - * 0x80000000 Memory configuration register 1 0x000002ff - * 0x80000004 Memory configuration register 2 0x81805220 - * 0x80000008 Memory configuration register 3 0x00000000 - */ - -#endif /* __CONFIG_H */ diff --git a/include/configs/grsim_leon2.h b/include/configs/grsim_leon2.h deleted file mode 100644 index ea9e3e8877..0000000000 --- a/include/configs/grsim_leon2.h +++ /dev/null @@ -1,283 +0,0 @@ -/* Configuration header file for LEON2 GRSIM. - * - * (C) Copyright 2003-2005 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * (C) Copyright 2007, 2015 - * Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __CONFIG_H__ -#define __CONFIG_H__ - -/* - * High Level Configuration Options - * (easy to change) - * - * Select between TSIM or GRSIM by setting CONFIG_GRSIM or CONFIG_TSIM to 1. - * - * TSIM command - * tsim-leon -sdram 0 -ram 32000 -rom 8192 -mmu - * - */ - -#define CONFIG_GRSIM 0 /* ... not running on GRSIM */ -#define CONFIG_TSIM 1 /* ... running on TSIM */ - -/* CPU / AMBA BUS configuration */ -#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */ - -/* - * Serial console configuration - */ -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } - -/* Partitions */ - -/* - * Supported commands - */ -#define CONFIG_CMD_DIAG -#define CONFIG_CMD_FPGA_LOADMK -#define CONFIG_CMD_IRQ -#define CONFIG_CMD_REGINFO - -/* - * Autobooting - */ - -#define CONFIG_PREBOOT "echo;" \ - "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \ - "echo" - -#undef CONFIG_BOOTARGS - -#define CONFIG_EXTRA_ENV_SETTINGS \ - "netdev=eth0\0" \ - "nfsargs=setenv bootargs root=/dev/nfs rw " \ - "nfsroot=${serverip}:${rootpath}\0" \ - "ramargs=setenv bootargs root=/dev/ram rw\0" \ - "addip=setenv bootargs ${bootargs} " \ - "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ - ":${hostname}:${netdev}:off panic=1\0" \ - "flash_nfs=run nfsargs addip;" \ - "bootm ${kernel_addr}\0" \ - "flash_self=run ramargs addip;" \ - "bootm ${kernel_addr} ${ramdisk_addr}\0" \ - "net_nfs=tftp 40000000 ${bootfile};run nfsargs addip;bootm\0" \ - "rootpath=/export/roofs\0" \ - "scratch=40000000\0" \ - "getkernel=tftpboot $(scratch) $(bootfile)\0" \ - "bootargs=console=ttyS0,38400" \ - "" -#define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_GATEWAYIP 192.168.0.1 -#define CONFIG_SERVERIP 192.168.0.81 -#define CONFIG_IPADDR 192.168.0.80 -#define CONFIG_ROOTPATH "/export/rootfs" -#define CONFIG_HOSTNAME grxc3s1500 -#define CONFIG_BOOTFILE "/uImage" - -#define CONFIG_BOOTCOMMAND "run flash_self" - -/* Memory MAP - * - * Flash: - * |--------------------------------| - * | 0x00000000 Text & Data & BSS | * - * | for Monitor | * - * | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| * - * | UNUSED / Growth | * 256kb - * |--------------------------------| - * | 0x00050000 Base custom area | * - * | kernel / FS | * - * | | * Rest of Flash - * |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| - * | END-0x00008000 Environment | * 32kb - * |--------------------------------| - * - * - * - * Main Memory: - * |--------------------------------| - * | UNUSED / scratch area | - * | | - * | | - * | | - * | | - * |--------------------------------| - * | Monitor .Text / .DATA / .BSS | * 256kb - * | Relocated! | * - * |--------------------------------| - * | Monitor Malloc | * 128kb (contains relocated environment) - * |--------------------------------| - * | Monitor/kernel STACK | * 64kb - * |--------------------------------| - * | Page Table for MMU systems | * 2k - * |--------------------------------| - * | PROM Code accessed from Linux | * 6kb-128b - * |--------------------------------| - * | Global data (avail from kernel)| * 128b - * |--------------------------------| - * - */ - -/* - * Flash configuration (8,16 or 32 MB) - * TEXT base always at 0xFFF00000 - * ENV_ADDR always at 0xFFF40000 - * FLASH_BASE at 0xFC000000 for 64 MB - * 0xFE000000 for 32 MB - * 0xFF000000 for 16 MB - * 0xFF800000 for 8 MB - */ -#define CONFIG_SYS_FLASH_BASE 0x00000000 -#define CONFIG_SYS_FLASH_SIZE 0x00800000 -#define CONFIG_ENV_SIZE 0x8000 - -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SIZE) - -#define PHYS_FLASH_SECT_SIZE 0x00020000 /* 128 KB sectors */ -#define CONFIG_SYS_MAX_FLASH_SECT 64 /* max num of sects on one chip */ -#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max num of memory banks */ - -#define CONFIG_SYS_FLASH_ERASE_TOUT 240000 /* Flash Erase Timeout (in ms) */ -#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */ -#define CONFIG_SYS_FLASH_LOCK_TOUT 5 /* Timeout for Flash Set Lock Bit (in ms) */ -#define CONFIG_SYS_FLASH_UNLOCK_TOUT 10000 /* Timeout for Flash Clear Lock Bits (in ms) */ - -#ifdef ENABLE_FLASH_SUPPORT -/* For use with grsim FLASH emulation extension */ -#define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */ - -#undef CONFIG_FLASH_8BIT /* Flash is 32-bit */ - -/*** CFI CONFIG ***/ -#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT -#define CONFIG_FLASH_CFI_DRIVER -#define CONFIG_SYS_FLASH_CFI -#endif - -/* - * Environment settings - */ -#define CONFIG_ENV_IS_NOWHERE 1 -/*#define CONFIG_ENV_IS_IN_FLASH*/ -/*#define CONFIG_ENV_SIZE 0x8000*/ -#define CONFIG_ENV_SECT_SIZE 0x40000 -#define CONFIG_ENV_OVERWRITE 1 - -/* - * Memory map - */ -#define CONFIG_SYS_SDRAM_BASE 0x40000000 -#define CONFIG_SYS_SDRAM_SIZE 0x00800000 -#define CONFIG_SYS_SDRAM_END (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE) - -/* no SRAM available */ -#undef CONFIG_SYS_SRAM_BASE -#undef CONFIG_SYS_SRAM_SIZE - -/* Always Run U-Boot from SDRAM */ -#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE -#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END - -#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_RAM_END - GENERATED_GBL_DATA_SIZE) - -#define CONFIG_SYS_PROM_SIZE (8192-GENERATED_GBL_DATA_SIZE) -#define CONFIG_SYS_PROM_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE) - -#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_PROM_OFFSET-32) -#define CONFIG_SYS_STACK_SIZE (0x10000-32) - -#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE -#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) -# define CONFIG_SYS_RAMBOOT 1 -#endif - -#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ -#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ -#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ - -#define CONFIG_SYS_MALLOC_END (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE) -#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN) - -/* relocated monitor area */ -#define CONFIG_SYS_RELOC_MONITOR_MAX_END CONFIG_SYS_MALLOC_BASE -#define CONFIG_SYS_RELOC_MONITOR_BASE (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN) - -/* make un relocated address from relocated address */ -#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-CONFIG_SYS_TEXT_BASE)) - -/* - * Ethernet configuration - */ -/*#define CONFIG_GRETH 1*/ - -/* - * Define CONFIG_GRETH_10MBIT to force GRETH at 10Mb/s - */ -/* #define CONFIG_GRETH_10MBIT 1 */ -#define CONFIG_PHY_ADDR 0x00 - -/* - * Miscellaneous configurable options - */ -#define CONFIG_SYS_LONGHELP /* undef to save memory */ -#if defined(CONFIG_CMD_KGDB) -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -#else -#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ -#endif -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ -#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ - -#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */ -#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */ - -#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ - -/***** Gaisler GRLIB IP-Cores Config ********/ - -#define CONFIG_SYS_GRLIB_SDRAM 0 -#define CONFIG_SYS_GRLIB_MEMCFG1 (0x000000ff | (1<<11)) -#if CONFIG_GRSIM -#define CONFIG_SYS_GRLIB_MEMCFG2 0x82206000 -#else -#define CONFIG_SYS_GRLIB_MEMCFG2 0x00001820 -#endif -#define CONFIG_SYS_GRLIB_MEMCFG3 0x00136000 - -/*** LEON2 UART 1 ***/ - -/* UART1 Define to 1 or 0 */ -#define LEON2_UART1_LOOPBACK_ENABLE 0 -#define LEON2_UART1_FLOWCTRL_ENABLE 0 -#define LEON2_UART1_PARITY_ENABLE 0 -#define LEON2_UART1_ODDPAR_ENABLE 0 - -/*** LEON2 UART 2 ***/ - -/* UART2 Define to 1 or 0 */ -#define LEON2_UART2_LOOPBACK_ENABLE 0 -#define LEON2_UART2_FLOWCTRL_ENABLE 0 -#define LEON2_UART2_PARITY_ENABLE 0 -#define LEON2_UART2_ODDPAR_ENABLE 0 - -#define LEON_CONSOLE_UART1 1 -#define LEON_CONSOLE_UART2 2 - -/* Use UART2 as console */ -#define LEON2_CONSOLE_SELECT LEON_CONSOLE_UART1 - -/* LEON2 I/O Port */ -/*#define LEON2_IO_PORT_DIR 0x0000aa00*/ - -/* default kernel command line */ -#define CONFIG_DEFAULT_KERNEL_COMMAND_LINE "console=ttyS0,38400\0\0" - -#endif /* __CONFIG_H */ diff --git a/include/grlib/apbuart.h b/include/grlib/apbuart.h deleted file mode 100644 index 1e1eb9a77c..0000000000 --- a/include/grlib/apbuart.h +++ /dev/null @@ -1,47 +0,0 @@ -/* GRLIB APBUART definitions - * - * (C) Copyright 2010, 2015 - * Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __GRLIB_APBUART_H__ -#define __GRLIB_APBUART_H__ - -/* APBUART Register map */ -typedef struct { - volatile unsigned int data; - volatile unsigned int status; - volatile unsigned int ctrl; - volatile unsigned int scaler; -} ambapp_dev_apbuart; - -/* - * The following defines the bits in the LEON UART Status Registers. - */ - -#define APBUART_STATUS_DR 0x00000001 /* Data Ready */ -#define APBUART_STATUS_TSE 0x00000002 /* TX Send Register Empty */ -#define APBUART_STATUS_THE 0x00000004 /* TX Hold Register Empty */ -#define APBUART_STATUS_BR 0x00000008 /* Break Error */ -#define APBUART_STATUS_OE 0x00000010 /* RX Overrun Error */ -#define APBUART_STATUS_PE 0x00000020 /* RX Parity Error */ -#define APBUART_STATUS_FE 0x00000040 /* RX Framing Error */ -#define APBUART_STATUS_ERR 0x00000078 /* Error Mask */ - -/* - * The following defines the bits in the LEON UART Ctrl Registers. - */ - -#define APBUART_CTRL_RE 0x00000001 /* Receiver enable */ -#define APBUART_CTRL_TE 0x00000002 /* Transmitter enable */ -#define APBUART_CTRL_RI 0x00000004 /* Receiver interrupt enable */ -#define APBUART_CTRL_TI 0x00000008 /* Transmitter interrupt enable */ -#define APBUART_CTRL_PS 0x00000010 /* Parity select */ -#define APBUART_CTRL_PE 0x00000020 /* Parity enable */ -#define APBUART_CTRL_FL 0x00000040 /* Flow control enable */ -#define APBUART_CTRL_LB 0x00000080 /* Loop Back enable */ -#define APBUART_CTRL_DBG (1<<11) /* Debug Bit used by GRMON */ - -#endif diff --git a/include/grlib/gptimer.h b/include/grlib/gptimer.h deleted file mode 100644 index 8b2b1651b0..0000000000 --- a/include/grlib/gptimer.h +++ /dev/null @@ -1,34 +0,0 @@ -/* GRLIB GPTIMER (General Purpose Timer) definitions - * - * (C) Copyright 2010, 2015 - * Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __GRLIB_GPTIMER_H__ -#define __GRLIB_GPTIMER_H__ - -typedef struct { - volatile unsigned int val; - volatile unsigned int rld; - volatile unsigned int ctrl; - volatile unsigned int unused; -} ambapp_dev_gptimer_element; - -#define GPTIMER_CTRL_EN 0x1 /* Timer enable */ -#define GPTIMER_CTRL_RS 0x2 /* Timer reStart */ -#define GPTIMER_CTRL_LD 0x4 /* Timer reLoad */ -#define GPTIMER_CTRL_IE 0x8 /* interrupt enable */ -#define GPTIMER_CTRL_IP 0x10 /* interrupt flag/pending */ -#define GPTIMER_CTRL_CH 0x20 /* Chain with previous timer */ - -typedef struct { - volatile unsigned int scalar; - volatile unsigned int scalar_reload; - volatile unsigned int config; - volatile unsigned int unused; - volatile ambapp_dev_gptimer_element e[8]; -} ambapp_dev_gptimer; - -#endif diff --git a/include/grlib/greth.h b/include/grlib/greth.h deleted file mode 100644 index 89c1e49387..0000000000 --- a/include/grlib/greth.h +++ /dev/null @@ -1,87 +0,0 @@ -/* Gaisler.com GRETH 10/100/1000 Ethernet MAC definitions - * - * (C) Copyright 2010, 2015 - * Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __GRLIB_GRETH_H__ -#define __GRLIB_GRETH_H__ - -#define GRETH_FD 0x10 -#define GRETH_RESET 0x40 -#define GRETH_MII_BUSY 0x8 -#define GRETH_MII_NVALID 0x10 - -/* MII registers */ -#define GRETH_MII_EXTADV_1000FD 0x00000200 -#define GRETH_MII_EXTADV_1000HD 0x00000100 -#define GRETH_MII_EXTPRT_1000FD 0x00000800 -#define GRETH_MII_EXTPRT_1000HD 0x00000400 - -#define GRETH_MII_100T4 0x00000200 -#define GRETH_MII_100TXFD 0x00000100 -#define GRETH_MII_100TXHD 0x00000080 -#define GRETH_MII_10FD 0x00000040 -#define GRETH_MII_10HD 0x00000020 - -#define GRETH_BD_EN 0x800 -#define GRETH_BD_WR 0x1000 -#define GRETH_BD_IE 0x2000 -#define GRETH_BD_LEN 0x7FF - -#define GRETH_TXEN 0x1 -#define GRETH_INT_TX 0x8 -#define GRETH_TXI 0x4 -#define GRETH_TXBD_STATUS 0x0001C000 -#define GRETH_TXBD_MORE 0x20000 -#define GRETH_TXBD_IPCS 0x40000 -#define GRETH_TXBD_TCPCS 0x80000 -#define GRETH_TXBD_UDPCS 0x100000 -#define GRETH_TXBD_ERR_LC 0x10000 -#define GRETH_TXBD_ERR_UE 0x4000 -#define GRETH_TXBD_ERR_AL 0x8000 -#define GRETH_TXBD_NUM 128 -#define GRETH_TXBD_NUM_MASK (GRETH_TXBD_NUM-1) -#define GRETH_TX_BUF_SIZE 2048 - -#define GRETH_INT_RX 0x4 -#define GRETH_RXEN 0x2 -#define GRETH_RXI 0x8 -#define GRETH_RXBD_STATUS 0xFFFFC000 -#define GRETH_RXBD_ERR_AE 0x4000 -#define GRETH_RXBD_ERR_FT 0x8000 -#define GRETH_RXBD_ERR_CRC 0x10000 -#define GRETH_RXBD_ERR_OE 0x20000 -#define GRETH_RXBD_ERR_LE 0x40000 -#define GRETH_RXBD_IP_DEC 0x80000 -#define GRETH_RXBD_IP_CSERR 0x100000 -#define GRETH_RXBD_UDP_DEC 0x200000 -#define GRETH_RXBD_UDP_CSERR 0x400000 -#define GRETH_RXBD_TCP_DEC 0x800000 -#define GRETH_RXBD_TCP_CSERR 0x1000000 - -#define GRETH_RXBD_NUM 128 -#define GRETH_RXBD_NUM_MASK (GRETH_RXBD_NUM-1) -#define GRETH_RX_BUF_SIZE 2048 - -/* Ethernet configuration registers */ -typedef struct _greth_regs { - volatile unsigned int control; - volatile unsigned int status; - volatile unsigned int esa_msb; - volatile unsigned int esa_lsb; - volatile unsigned int mdio; - volatile unsigned int tx_desc_p; - volatile unsigned int rx_desc_p; - volatile unsigned int edcl_ip; -} greth_regs; - -/* Ethernet buffer descriptor */ -typedef struct _greth_bd { - volatile unsigned int stat; - unsigned int addr; /* Buffer address not changed by HW */ -} greth_bd; - -#endif diff --git a/include/grlib/irqmp.h b/include/grlib/irqmp.h deleted file mode 100644 index 0354d5c21c..0000000000 --- a/include/grlib/irqmp.h +++ /dev/null @@ -1,23 +0,0 @@ -/* GRLIB IRQMP (IRQ Multi-processor controller) definitions - * - * (C) Copyright 2010, 2015 - * Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __GRLIB_IRQMP_H__ -#define __GRLIB_IRQMP_H__ - -typedef struct { - volatile unsigned int ilevel; - volatile unsigned int ipend; - volatile unsigned int iforce; - volatile unsigned int iclear; - volatile unsigned int mstatus; - volatile unsigned int notused[11]; - volatile unsigned int cpu_mask[16]; - volatile unsigned int cpu_force[16]; -} ambapp_dev_irqmp; - -#endif diff --git a/include/netdev.h b/include/netdev.h index 7a211bc609..8eb8b46619 100644 --- a/include/netdev.h +++ b/include/netdev.h @@ -50,7 +50,6 @@ int fecmxc_initialize_multi(bd_t *bis, int dev_id, int phy_id, uint32_t addr); int ftgmac100_initialize(bd_t *bits); int ftmac100_initialize(bd_t *bits); int ftmac110_initialize(bd_t *bits); -int greth_initialize(bd_t *bis); void gt6426x_eth_initialize(bd_t *bis); int ks8851_mll_initialize(u8 dev_num, int base_addr); int lan91c96_initialize(u8 dev_num, int base_addr); |