Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332274
b: refs/heads/master
c: 2f6528e
h: refs/heads/master
v: v3
  • Loading branch information
Jayachandran C authored and John Crispin committed Aug 22, 2012
1 parent 586278d commit a1b5381
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9f16821205d7561bf9d622855e1aa95e5c77f0c
refs/heads/master: 2f6528e15a4592c762a690c1320518368593ae75
1 change: 1 addition & 0 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ config NLM_XLP_BOARD
select ZONE_DMA if 64BIT
select SYNC_R4K
select SYS_HAS_EARLY_PRINTK
select USE_OF
help
This board is based on Netlogic XLP Processor.
Say Y here if you have a XLP based board.
Expand Down
15 changes: 15 additions & 0 deletions trunk/arch/mips/netlogic/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
if NLM_XLP_BOARD || NLM_XLR_BOARD

if NLM_XLP_BOARD
config DT_XLP_EVP
bool "Built-in device tree for XLP EVP/SVP boards"
default y
help
Add an FDT blob for XLP EVP and SVP boards into the kernel.
This DTB will be used if the firmware does not pass in a DTB
pointer to the kernel. The corresponding DTS file is at
arch/mips/netlogic/dts/xlp_evp.dts
endif

config NLM_COMMON
bool

endif
1 change: 1 addition & 0 deletions trunk/arch/mips/netlogic/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
obj-$(CONFIG_NLM_COMMON) += common/
obj-$(CONFIG_CPU_XLR) += xlr/
obj-$(CONFIG_CPU_XLP) += xlp/
obj-$(CONFIG_CPU_XLP) += dts/
4 changes: 4 additions & 0 deletions trunk/arch/mips/netlogic/dts/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
obj-$(CONFIG_DT_XLP_EVP) := xlp_evp.dtb.o

$(obj)/%.dtb: $(obj)/%.dts
$(call if_changed,dtc)
12 changes: 11 additions & 1 deletion trunk/arch/mips/netlogic/xlp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ unsigned long nlm_common_ebase = 0x0;
/* default to uniprocessor */
uint32_t nlm_coremask = 1, nlm_cpumask = 1;
int nlm_threads_per_core = 1;
extern u32 __dtb_start[];

static void nlm_linux_exit(void)
{
Expand Down Expand Up @@ -97,9 +98,18 @@ void __init prom_init(void)
{
void *fdtp;

fdtp = (void *)(long)fw_arg0;
xlp_mmu_init();
nlm_hal_init();

/*
* If no FDT pointer is passed in, use the built-in FDT.
* device_tree_init() does not handle CKSEG0 pointers in
* 64-bit, so convert pointer.
*/
fdtp = (void *)(long)fw_arg0;
if (!fdtp)
fdtp = __dtb_start;
fdtp = phys_to_virt(__pa(fdtp));
early_init_devtree(fdtp);

nlm_common_ebase = read_c0_ebase() & (~((1 << 12) - 1));
Expand Down

0 comments on commit a1b5381

Please sign in to comment.