mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-17 21:10:46 +00:00
Merge branch 'marsellus' into dustin
This commit is contained in:
commit
2c772db65d
5 changed files with 73 additions and 1 deletions
23
configs/fpgas/marsellus/virtex7.sh
Normal file
23
configs/fpgas/marsellus/virtex7.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
export PULPRT_TARGET=marsellus
|
||||
export PULPRUN_TARGET=marsellus
|
||||
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then
|
||||
DIR="$(readlink -f -- "${(%):-%x}")"
|
||||
scriptDir="$(dirname $DIR)"
|
||||
else
|
||||
|
||||
scriptDir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||
|
||||
fi
|
||||
|
||||
source $scriptDir/../../common.sh
|
||||
|
||||
export PULPRUN_PLATFORM=fpga
|
||||
|
||||
#Virtex7 uses 10MHz SoC Frequency
|
||||
export PULPRT_CONFIG_CFLAGS='-DARCHI_FPGA_FREQUENCY=10000000'
|
||||
|
||||
export io=uart
|
||||
|
||||
22
configs/fpgas/pulp/virtex7.sh
Normal file
22
configs/fpgas/pulp/virtex7.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
export PULPRT_TARGET=pulp
|
||||
export PULPRUN_TARGET=pulp
|
||||
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then
|
||||
DIR="$(readlink -f -- "${(%):-%x}")"
|
||||
scriptDir="$(dirname $DIR)"
|
||||
else
|
||||
|
||||
scriptDir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||
|
||||
fi
|
||||
|
||||
source $scriptDir/../../common.sh
|
||||
|
||||
export PULPRUN_PLATFORM=fpga
|
||||
|
||||
#Virtex7 uses 10MHz SoC Frequency
|
||||
export PULPRT_CONFIG_CFLAGS='-DARCHI_FPGA_FREQUENCY=10000000'
|
||||
|
||||
export io=uart
|
||||
|
|
@ -22,8 +22,17 @@
|
|||
* FPGA
|
||||
*/
|
||||
|
||||
#define ARCHI_FPGA_FREQUENCY 5000000
|
||||
#ifndef ARCHI_FPGA_FREQUENCY
|
||||
#define ARCHI_FPGA_FREQUENCY 1000000
|
||||
#endif
|
||||
|
||||
#ifndef ARCHI_FPGA_FC_FREQUENCY
|
||||
#define ARCHI_FPGA_FC_FREQUENCY 2000000
|
||||
#endif
|
||||
|
||||
#ifndef ARCHI_FPGA_CL_FREQUENCY
|
||||
#define ARCHI_FPGA_CL_FREQUENCY 20000000
|
||||
#endif
|
||||
/*
|
||||
* MEMORIES
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -18,12 +18,25 @@
|
|||
|
||||
void pos_soc_init()
|
||||
{
|
||||
#if __PLATFORM__ != ARCHI_PLATFORM_FPGA
|
||||
|
||||
pos_fll_constructor();
|
||||
|
||||
pos_freq_domains[PI_FREQ_DOMAIN_FC] = pos_fll_init(POS_FLL_FC);
|
||||
|
||||
pos_freq_domains[PI_FREQ_DOMAIN_PERIPH] = pos_fll_init(POS_FLL_PERIPH);
|
||||
|
||||
|
||||
pos_freq_domains[PI_FREQ_DOMAIN_CL] = pos_fll_init(POS_FLL_CL);
|
||||
|
||||
#else
|
||||
|
||||
pos_freq_domains[PI_FREQ_DOMAIN_FC] = ARCHI_FPGA_FC_FREQUENCY;
|
||||
|
||||
pos_freq_domains[PI_FREQ_DOMAIN_PERIPH] = ARCHI_FPGA_FREQUENCY;
|
||||
|
||||
pos_freq_domains[PI_FREQ_DOMAIN_CL] = ARCHI_FPGA_CL_FREQUENCY;
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,4 +41,9 @@ PULP_SRCS += kernel/chips/marsellus/soc.c
|
|||
|
||||
|
||||
include $(PULPRT_HOME)/rules/pulpos/configs/default.mk
|
||||
|
||||
ifeq '$(platform)' 'fpga'
|
||||
CONFIG_IO_UART=1
|
||||
endif
|
||||
|
||||
include $(PULPRT_HOME)/rules/pulpos/default_rules.mk
|
||||
Loading…
Reference in a new issue