avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
12
u-boot/board/xilinx/ppc405-generic/Kconfig
Normal file
12
u-boot/board/xilinx/ppc405-generic/Kconfig
Normal file
@@ -0,0 +1,12 @@
|
||||
if TARGET_XILINX_PPC405_GENERIC
|
||||
|
||||
config SYS_BOARD
|
||||
default "ppc405-generic"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "xilinx"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "xilinx-ppc405-generic"
|
||||
|
||||
endif
|
||||
7
u-boot/board/xilinx/ppc405-generic/MAINTAINERS
Normal file
7
u-boot/board/xilinx/ppc405-generic/MAINTAINERS
Normal file
@@ -0,0 +1,7 @@
|
||||
PPC405-GENERIC BOARD
|
||||
M: Ricardo Ribalda <ricardo.ribalda@gmail.com>
|
||||
S: Maintained
|
||||
F: board/xilinx/ppc405-generic/
|
||||
F: include/configs/xilinx-ppc405-generic.h
|
||||
F: configs/xilinx-ppc405-generic_defconfig
|
||||
F: configs/xilinx-ppc405-generic_flash_defconfig
|
||||
12
u-boot/board/xilinx/ppc405-generic/Makefile
Normal file
12
u-boot/board/xilinx/ppc405-generic/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
#
|
||||
# (C) Copyright 2000-2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# (C) Copyright 2008
|
||||
# Ricardo Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
|
||||
# Work supported by Qtechnology http://www.qtec.com
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-y += xilinx_ppc405_generic.o
|
||||
41
u-boot/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
Normal file
41
u-boot/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* (C) Copyright 2008
|
||||
* Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
|
||||
* This work has been supported by: QTechnology http://qtec.com/
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <asm/processor.h>
|
||||
|
||||
ulong get_PCI_freq(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int checkboard(void)
|
||||
{
|
||||
puts("Xilinx PPC405 Generic Board\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
phys_size_t initdram(int board_type)
|
||||
{
|
||||
return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
|
||||
CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
|
||||
}
|
||||
|
||||
void get_sys_info(sys_info_t *sys_info)
|
||||
{
|
||||
sys_info->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
|
||||
sys_info->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ;
|
||||
sys_info->freqPCI = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int get_serial_clock(void){
|
||||
return XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
|
||||
}
|
||||
24
u-boot/board/xilinx/ppc405-generic/xparameters.h
Normal file
24
u-boot/board/xilinx/ppc405-generic/xparameters.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* (C) Copyright 2008
|
||||
* Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@gmail.com
|
||||
* This work has been supported by: QTechnology http://qtec.com/
|
||||
* based on xparameters-ml507.h by Xilinx
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef XPARAMETER_H
|
||||
#define XPARAMETER_H
|
||||
|
||||
#define XPAR_DDR2_SDRAM_MEM_BASEADDR 0x00000000
|
||||
#define XPAR_IIC_EEPROM_BASEADDR 0x81600000
|
||||
#define XPAR_INTC_0_BASEADDR 0x81800000
|
||||
#define XPAR_SPI_0_BASEADDR 0x83400000
|
||||
#define XPAR_FLASH_MEM0_BASEADDR 0xFE000000
|
||||
#define XPAR_PLB_CLOCK_FREQ_HZ 100000000
|
||||
#define XPAR_CORE_CLOCK_FREQ_HZ 400000000
|
||||
#define XPAR_INTC_MAX_NUM_INTR_INPUTS 32
|
||||
#define XPAR_SPI_0_NUM_TRANSFER_BITS 8
|
||||
#define XPAR_UARTNS550_0_CLOCK_FREQ_HZ 100000000
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user