mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-10 04:08:52 +00:00
s3c64xx: Add ifdef at the S3C64XX only codes
The s3c6400.h file is only for S3C64XX cpu and the pheripheral port address(0x70000000 - 0x7fffffff) exists at only S3C64XX cpu, so they should be included by only S3C64XX cpu. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
0468afff30
commit
803472beb7
2 changed files with 6 additions and 0 deletions
|
@ -33,7 +33,9 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#ifdef CONFIG_S3C64XX
|
||||||
#include <asm/arch/s3c6400.h>
|
#include <asm/arch/s3c6400.h>
|
||||||
|
#endif
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
|
|
||||||
static void cache_flush (void);
|
static void cache_flush (void);
|
||||||
|
|
|
@ -35,7 +35,9 @@
|
||||||
#ifdef CONFIG_ENABLE_MMU
|
#ifdef CONFIG_ENABLE_MMU
|
||||||
#include <asm/proc/domain.h>
|
#include <asm/proc/domain.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_S3C64XX
|
||||||
#include <asm/arch/s3c6400.h>
|
#include <asm/arch/s3c6400.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_ENABLE_MMU) && !defined(CONFIG_SYS_PHY_UBOOT_BASE)
|
#if !defined(CONFIG_ENABLE_MMU) && !defined(CONFIG_SYS_PHY_UBOOT_BASE)
|
||||||
#define CONFIG_SYS_PHY_UBOOT_BASE CONFIG_SYS_UBOOT_BASE
|
#define CONFIG_SYS_PHY_UBOOT_BASE CONFIG_SYS_UBOOT_BASE
|
||||||
|
@ -190,10 +192,12 @@ mmu_disable:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mmu_disable_phys:
|
mmu_disable_phys:
|
||||||
|
#ifdef CONFIG_S3C64XX
|
||||||
/* Peri port setup */
|
/* Peri port setup */
|
||||||
ldr r0, =0x70000000
|
ldr r0, =0x70000000
|
||||||
orr r0, r0, #0x13
|
orr r0, r0, #0x13
|
||||||
mcr p15,0,r0,c15,c2,4 @ 256M (0x70000000 - 0x7fffffff)
|
mcr p15,0,r0,c15,c2,4 @ 256M (0x70000000 - 0x7fffffff)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Go setup Memory and board specific bits prior to relocation.
|
* Go setup Memory and board specific bits prior to relocation.
|
||||||
|
|
Loading…
Reference in a new issue