Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375165
b: refs/heads/master
c: 9b75733
h: refs/heads/master
i:
  375163: 8ddb510
v: v3
  • Loading branch information
John Crispin authored and Ralf Baechle committed May 7, 2013
1 parent 541c121 commit 628bfd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 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: dd63b00804a5c842fb73b6afc52f928f0c209a07
refs/heads/master: 9b75733b7b5e056a893f829262c2a2624a66d186
16 changes: 1 addition & 15 deletions trunk/arch/mips/ath79/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,6 @@ static void ath79_halt(void)
cpu_wait();
}

static void __init ath79_detect_mem_size(void)
{
unsigned long size;

for (size = ATH79_MEM_SIZE_MIN; size < ATH79_MEM_SIZE_MAX;
size <<= 1) {
if (!memcmp(ath79_detect_mem_size,
ath79_detect_mem_size + size, 1024))
break;
}

add_memory_region(0, size, BOOT_MEM_RAM);
}

static void __init ath79_detect_sys_type(void)
{
char *chip = "????";
Expand Down Expand Up @@ -212,7 +198,7 @@ void __init plat_mem_setup(void)
AR71XX_DDR_CTRL_SIZE);

ath79_detect_sys_type();
ath79_detect_mem_size();
detect_memory_region(0, ATH79_MEM_SIZE_MIN, ATH79_MEM_SIZE_MAX);
ath79_clocks_init();

_machine_restart = ath79_restart;
Expand Down

0 comments on commit 628bfd0

Please sign in to comment.