Skip to content

Commit

Permalink
ARM: mach-davinci: remove mach/memory.h
Browse files Browse the repository at this point in the history
Move some DDR2 related defines into a private <mach/ddr2.h> beforehand.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
  • Loading branch information
Nicolas Pitre authored and Nicolas Pitre committed Oct 13, 2011
1 parent f4220fe commit 0020afb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 41 deletions.
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,7 @@ config ARCH_DAVINCI
select GENERIC_ALLOCATOR
select GENERIC_IRQ_CHIP
select ARCH_HAS_HOLES_MEMORYMODEL
select NO_MACH_MEMORY_H
help
Support for TI's DaVinci platform.

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-davinci/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <asm/proc-fns.h>

#include <mach/cpuidle.h>
#include <mach/memory.h>
#include <mach/ddr2.h>

#define DAVINCI_CPUIDLE_MAX_STATES 2

Expand Down
4 changes: 4 additions & 0 deletions arch/arm/mach-davinci/include/mach/ddr2.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#define DDR2_SDRCR_OFFSET 0xc
#define DDR2_SRPD_BIT (1 << 23)
#define DDR2_MCLKSTOPEN_BIT (1 << 30)
#define DDR2_LPMODEN_BIT (1 << 31)
39 changes: 0 additions & 39 deletions arch/arm/mach-davinci/include/mach/memory.h

This file was deleted.

2 changes: 1 addition & 1 deletion arch/arm/mach-davinci/sleep.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <mach/psc.h>
#include <mach/memory.h>
#include <mach/ddr2.h>

#include "clock.h"

Expand Down

0 comments on commit 0020afb

Please sign in to comment.