csky: Support dynamic start physical address
authorGuo Ren <ren_guo@c-sky.com>
Mon, 8 Apr 2019 03:12:25 +0000 (11:12 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 05:44:57 +0000 (13:44 +0800)
commitf62e31623d718a7c20d9da98de48361624d7360a
tree686ee8d9ea793443c6ad184f36074c2e391c535c
parentbf241682936293291dcf40fd93cdd0f5e6222902
csky: Support dynamic start physical address

Before this patch csky-linux need CONFIG_RAM_BASE to determine start
physical address. Now we use phys_offset variable to replace the macro
of PHYS_OFFSET and we setup phys_offset with real physical address which
is determined during startup in head.S.

With this patch we needn't re-compile kernel for different start
physical address. ie: 0x0 / 0xc0000000 start physical address could use
the same vmlinux, be care different start address must be 512MB aligned.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/abiv1/inc/abi/ckmmu.h
arch/csky/abiv1/inc/abi/entry.h
arch/csky/abiv2/inc/abi/ckmmu.h
arch/csky/abiv2/inc/abi/entry.h
arch/csky/include/asm/mmu_context.h
arch/csky/include/asm/page.h
arch/csky/kernel/entry.S
arch/csky/kernel/setup.c