-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Xilinx ML507 Board is a Virtex 5 prototyping board that includes, among others: -Virtex 5 FX FPGA (With a ppc440x5 in it) -256MB of SDRAM2 -32MB of Flash -I2C Eeprom -System ACE chip -Serial ATA connectors -RS232 Level Conversors -Ethernet Transceiver This patch gives support to a standard design produced by EDK for this board: ppc440, uartlite, xilinx_int and flash - Includes Changes propossed by Stefan Roese and Michal Simek Signed-off-by: Ricardo Ribalda Delgado <[email protected]> Acked-by: Stefan Roese <[email protected]>
- Loading branch information
Showing
11 changed files
with
468 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -399,6 +399,11 @@ N: Stelian Pop | |
E: [email protected] | ||
D: Atmel AT91CAP9ADK support | ||
|
||
N: Ricardo Ribalda Delgado | ||
E: [email protected] | ||
D: PPC440x5 (Virtex5), ML507 Board, eeprom_simul, adt7460 | ||
W: http://www.ii.uam.es/~rribalda | ||
|
||
N: Stefan Roese | ||
E: [email protected] | ||
D: AMCC PPC4xx Support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,6 +311,10 @@ Daniel Poirot <[email protected]> | |
sbc8240 MPC8240 | ||
sbc405 PPC405GP | ||
|
||
Ricardo Ribalda <[email protected]> | ||
|
||
ml507 PPC440x5 | ||
|
||
Stefan Roese <[email protected]> | ||
|
||
P3M7448 MPC7448 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,6 +209,7 @@ LIST_4xx=" \ | |
MIP405T \ | ||
ML2 \ | ||
ml300 \ | ||
ml507 \ | ||
ocotea \ | ||
OCRTC \ | ||
ORSG \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# | ||
# (C) Copyright 2000-2006 | ||
# Wolfgang Denk, DENX Software Engineering, [email protected]. | ||
# | ||
# See file CREDITS for list of people who contributed to this | ||
# project. | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||
# MA 02111-1307 USA | ||
# | ||
|
||
include $(TOPDIR)/config.mk | ||
ifneq ($(OBJTREE),$(SRCTREE)) | ||
endif | ||
|
||
INCS := | ||
CFLAGS += $(INCS) | ||
HOST_CFLAGS += $(INCS) | ||
|
||
LIB = $(obj)lib$(BOARD).a | ||
|
||
COBJS = $(BOARD).o | ||
|
||
SOBJS = init.o | ||
|
||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) | ||
OBJS := $(addprefix $(obj),$(COBJS)) | ||
SOBJS := $(addprefix $(obj),$(SOBJS)) | ||
|
||
$(LIB): $(OBJS) $(SOBJS) | ||
$(AR) $(ARFLAGS) $@ $^ | ||
|
||
clean: | ||
rm -f $(SOBJS) $(OBJS) | ||
|
||
distclean: clean | ||
rm -f $(LIB) core *.bak .depend | ||
|
||
######################################################################### | ||
|
||
# defines $(obj).depend target | ||
include $(SRCTREE)/rules.mk | ||
|
||
sinclude $(obj).depend | ||
|
||
######################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# (C) Copyright 2000 | ||
# Wolfgang Denk, DENX Software Engineering, [email protected]. | ||
# | ||
# See file CREDITS for list of people who contributed to this | ||
# project. | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||
# MA 02111-1307 USA | ||
# | ||
|
||
TEXT_BASE = 0x04000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* (C) Copyright 2008 | ||
* Ricado Ribalda-Universidad Autonoma de [email protected] | ||
* This work has been supported by: QTechnology http://qtec.com/ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <ppc_asm.tmpl> | ||
#include <config.h> | ||
#include <asm-ppc/mmu.h> | ||
|
||
.section .bootpg,"ax" | ||
.globl tlbtab | ||
|
||
tlbtab: | ||
tlbtab_start | ||
/* SDRAM */ | ||
tlbentry(XPAR_DDR2_SDRAM_MEM_BASEADDR, SZ_256M, CFG_SDRAM_BASE, 0, | ||
AC_R | AC_W | AC_X | SA_G | SA_I) | ||
/* UART */ | ||
tlbentry(XPAR_UARTLITE_0_BASEADDR, SZ_64K, XPAR_UARTLITE_0_BASEADDR, 0, | ||
AC_R | AC_W | SA_G | SA_I) | ||
/* PIC */ | ||
tlbentry(XPAR_INTC_0_BASEADDR, SZ_64K, XPAR_INTC_0_BASEADDR, 0, | ||
AC_R | AC_W | SA_G | SA_I) | ||
/* I2C */ | ||
tlbentry(XPAR_IIC_EEPROM_BASEADDR, SZ_64K, XPAR_IIC_EEPROM_BASEADDR, 0, | ||
AC_R | AC_W | SA_G | SA_I) | ||
/* Net */ | ||
tlbentry(XPAR_LLTEMAC_0_BASEADDR, SZ_64K, XPAR_LLTEMAC_0_BASEADDR, 0, | ||
AC_R | AC_W | SA_G | SA_I) | ||
/*Flash*/ | ||
tlbentry(XPAR_FLASH_MEM0_BASEADDR, SZ_256M, XPAR_FLASH_MEM0_BASEADDR, 0, | ||
AC_R | AC_W | SA_G | SA_I) | ||
tlbtab_end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* (C) Copyright 2008 | ||
* Ricado Ribalda-Universidad Autonoma de [email protected] | ||
* This work has been supported by: QTechnology http://qtec.com/ | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <config.h> | ||
#include <common.h> | ||
#include <asm/processor.h> | ||
|
||
int board_pre_init(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
int checkboard(void) | ||
{ | ||
puts ("ML507 Board\n"); | ||
return 0; | ||
} | ||
|
||
phys_size_t initdram(int board_type) | ||
{ | ||
return CFG_SDRAM_SIZE_MB * 1024 * 1024; | ||
} | ||
|
||
void get_sys_info(sys_info_t * sysInfo) | ||
{ | ||
sysInfo->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ; | ||
sysInfo->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ; | ||
sysInfo->freqPCI = 0; | ||
|
||
return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
/* | ||
* (C) Copyright 2000 | ||
* Wolfgang Denk, DENX Software Engineering, [email protected]. | ||
* 2008: | ||
* Modified by: Ricardo Ribalda Delgado [email protected] | ||
* | ||
* See file CREDITS for list of people who contributed to this | ||
* project. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation; either version 2 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||
* MA 02111-1307 USA | ||
*/ | ||
|
||
OUTPUT_ARCH(powerpc) | ||
ENTRY(_start_440) | ||
/* Do we need any of these for elf? | ||
__DYNAMIC = 0; */ | ||
SECTIONS | ||
{ | ||
/* Read-only sections, merged into text segment: */ | ||
. = + SIZEOF_HEADERS; | ||
.interp : { *(.interp) } | ||
.hash : { *(.hash) } | ||
.dynsym : { *(.dynsym) } | ||
.dynstr : { *(.dynstr) } | ||
.rel.text : { *(.rel.text) } | ||
.rela.text : { *(.rela.text) } | ||
.rel.data : { *(.rel.data) } | ||
.rela.data : { *(.rela.data) } | ||
.rel.rodata : { *(.rel.rodata) } | ||
.rela.rodata : { *(.rela.rodata) } | ||
.rel.got : { *(.rel.got) } | ||
.rela.got : { *(.rela.got) } | ||
.rel.ctors : { *(.rel.ctors) } | ||
.rela.ctors : { *(.rela.ctors) } | ||
.rel.dtors : { *(.rel.dtors) } | ||
.rela.dtors : { *(.rela.dtors) } | ||
.rel.bss : { *(.rel.bss) } | ||
.rela.bss : { *(.rela.bss) } | ||
.rel.plt : { *(.rel.plt) } | ||
.rela.plt : { *(.rela.plt) } | ||
.init : { *(.init) } | ||
.plt : { *(.plt) } | ||
.text : | ||
{ | ||
*(.text) | ||
*(.fixup) | ||
*(.got1) | ||
} | ||
_etext = .; | ||
PROVIDE (etext = .); | ||
.rodata : | ||
{ | ||
*(.rodata) | ||
*(.rodata1) | ||
*(.rodata.str1.4) | ||
*(.eh_frame) | ||
} | ||
.fini : { *(.fini) } =0 | ||
.ctors : { *(.ctors) } | ||
.dtors : { *(.dtors) } | ||
|
||
/* Read-write section, merged into data segment: */ | ||
. = (. + 0x00FF) & 0xFFFFFF00; | ||
_erotext = .; | ||
PROVIDE (erotext = .); | ||
.reloc : | ||
{ | ||
*(.got) | ||
_GOT2_TABLE_ = .; | ||
*(.got2) | ||
_FIXUP_TABLE_ = .; | ||
*(.fixup) | ||
} | ||
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | ||
__fixup_entries = (. - _FIXUP_TABLE_)>>2; | ||
|
||
.data : | ||
{ | ||
*(.data) | ||
*(.data1) | ||
*(.sdata) | ||
*(.sdata2) | ||
*(.dynamic) | ||
CONSTRUCTORS | ||
} | ||
_edata = .; | ||
PROVIDE (edata = .); | ||
|
||
. = .; | ||
__u_boot_cmd_start = .; | ||
.u_boot_cmd : { *(.u_boot_cmd) } | ||
__u_boot_cmd_end = .; | ||
|
||
|
||
. = .; | ||
__start___ex_table = .; | ||
__ex_table : { *(__ex_table) } | ||
__stop___ex_table = .; | ||
|
||
. = ALIGN(256); | ||
__init_begin = .; | ||
.text.init : { *(.text.init) } | ||
.data.init : { *(.data.init) } | ||
. = ALIGN(256); | ||
__init_end = .; | ||
|
||
__bss_start = .; | ||
.bss (NOLOAD) : | ||
{ | ||
*(.sbss) *(.scommon) | ||
*(.dynbss) | ||
*(.bss) | ||
*(COMMON) | ||
} | ||
_end = . ; | ||
PROVIDE (end = .); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* (C) Copyright 2008 | ||
* Ricado Ribalda-Universidad Autonoma de [email protected] | ||
* This work has been supported by: QTechnology http://qtec.com/ | ||
* based on xparameters-ml507.h by Xilinx | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef XPARAMETER_H | ||
#define XPARAMETER_H | ||
|
||
#define XPAR_DDR2_SDRAM_MEM_BASEADDR 0x00000000 | ||
#define XPAR_INTC_0_BASEADDR 0x81800000 | ||
#define XPAR_UARTLITE_0_BASEADDR 0x84000000 | ||
#define XPAR_IIC_EEPROM_BASEADDR 0x81600000 | ||
#define XPAR_LLTEMAC_0_BASEADDR 0x81c00000 | ||
#define XPAR_FLASH_MEM0_BASEADDR 0xFC000000 | ||
#define XPAR_PLB_CLOCK_FREQ_HZ 100000000 | ||
#define XPAR_CORE_CLOCK_FREQ_HZ 400000000 | ||
#define XPAR_INTC_MAX_NUM_INTR_INPUTS 13 | ||
|
||
#endif |
Oops, something went wrong.