ARM: S5P64X0: Use common uncompress.h part for plat-samsung
authorTomasz Figa <tomasz.figa@gmail.com>
Tue, 18 Jun 2013 17:22:22 +0000 (02:22 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 18 Jun 2013 17:22:22 +0000 (02:22 +0900)
commit5336539ab8c18c3e13d9cd020dd7a0b798dfb11d
treef9289e8ff7c6d1b73540b79989d0efad8cff7cf2
parent76c1b8386b31aeda911afaf11f032006d403addf
ARM: S5P64X0: Use common uncompress.h part for plat-samsung

Since uart_base can be set dynamically in arch_detect_cpu(), there is no
need to have a copy of all code locally, just to override UART base
address.

This patch removes any duplicate code in uncompress.h variant of s5p64x0
and implements proper arch_detect_cpu() function to initialize UART with
SoC-specific parameters.

While at it, replace hard-coded register address with macro.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s5p64x0/include/mach/uncompress.h