1 Commits
r79 ... r79-tk1

Author SHA1 Message Date
0dcae1f330 Add support for Nvidia Jetson TK1 2019-08-23 16:28:44 +02:00
4 changed files with 38 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
# PF: TEGRA # PF: TEGRA
# PFDESCR: NVIDIA Tegra platform # PFDESCR: NVIDIA Tegra platform
# PFSELECT: CAN_ARM_CPU_CORTEX_A9 CAN_ARM_CACHE_L2CXX0
# PFDEPENDS: ARM # PFDEPENDS: ARM
choice choice
@@ -10,10 +9,19 @@ choice
config PF_TEGRA2 config PF_TEGRA2
bool "Tegra2" bool "Tegra2"
depends on PF_TEGRA depends on PF_TEGRA
select CAN_ARM_CPU_CORTEX_A9
select CAN_ARM_CACHE_L2CXX0
config PF_TEGRA3 config PF_TEGRA3
bool "Tegra3" bool "Tegra3"
depends on PF_TEGRA depends on PF_TEGRA
select CAN_ARM_CPU_CORTEX_A9
select CAN_ARM_CACHE_L2CXX0
config PF_TEGRAK1
bool "TegraK1"
depends on PF_TEGRA
select CAN_ARM_CPU_CORTEX_A15
endchoice endchoice

View File

@@ -5,6 +5,7 @@ PREPROCESS_PARTS-$(CONFIG_PF_TEGRA_TIMER_MP) += mptimer
PREPROCESS_PARTS-$(CONFIG_PF_TEGRA_TIMER_TMR) += tegra_timer_tmr PREPROCESS_PARTS-$(CONFIG_PF_TEGRA_TIMER_TMR) += tegra_timer_tmr
RAM_PHYS_BASE-$(CONFIG_PF_TEGRA2) := $(if $(CONFIG_ARM_EM_TZ),0x30000000,0x0) RAM_PHYS_BASE-$(CONFIG_PF_TEGRA2) := $(if $(CONFIG_ARM_EM_TZ),0x30000000,0x0)
RAM_PHYS_BASE-$(CONFIG_PF_TEGRA3) := $(if $(CONFIG_ARM_EM_TZ),0xa0000000,0x80000000) RAM_PHYS_BASE-$(CONFIG_PF_TEGRA3) := $(if $(CONFIG_ARM_EM_TZ),0xa0000000,0x80000000)
RAM_PHYS_BASE-$(CONFIG_PF_TEGRAK1) := 0x80000000
RAM_PHYS_BASE := $(RAM_PHYS_BASE-y) RAM_PHYS_BASE := $(RAM_PHYS_BASE-y)
INTERFACES_KERNEL += gic INTERFACES_KERNEL += gic
MPCORE_PHYS_BASE := 0x50040000 MPCORE_PHYS_BASE := 0x50040000

View File

@@ -5,3 +5,7 @@ INTERFACE[arm && pf_tegra2]:
INTERFACE[arm && pf_tegra3]: INTERFACE[arm && pf_tegra3]:
#define TARGET_NAME "Tegra3" #define TARGET_NAME "Tegra3"
INTERFACE[arm && pf_tegrak1]:
#define TARGET_NAME "TegraK1"

View File

@@ -1,4 +1,4 @@
INTERFACE [arm && pf_tegra]: INTERFACE [arm && !pf_tegrak1]:
EXTENSION class Mem_layout EXTENSION class Mem_layout
{ {
@@ -18,3 +18,24 @@ public:
Pmc_phys_base = 0x7000e400, Pmc_phys_base = 0x7000e400,
}; };
}; };
INTERFACE [arm && pf_tegrak1]:
EXTENSION class Mem_layout
{
public:
enum Phys_layout_tegra : Address
{
Mp_scu_phys_base = 0x50040000,
L2cxx0_phys_base = 0x50043000,
Gic_cpu_phys_base = 0x50042000,
Gic_dist_phys_base = 0x50041000,
Gic2_cpu_phys_base = 0x50020000,
Gic2_dist_phys_base = 0x50021000,
Tmr_phys_base = 0x60005000,
Clock_reset_phys_base = 0x60006000,
Pmc_phys_base = 0x7000e400,
};
};