blob: 493f4f365ddfe65a8ceab62908bc2ff6725a1ef1 [file] [log] [blame]
Kukjin Kim171c0672012-02-10 11:57:53 +09001/*
2 * Copyright (c) 2010-2012 Samsung Electronics Co., Ltd.
Kukjin Kim7d30e8b2011-02-14 16:33:10 +09003 * http://www.samsung.com
Changhwan Youn2b12b5c2010-07-26 21:08:52 +09004 *
Kukjin Kim171c0672012-02-10 11:57:53 +09005 * EXYNOS - uncompress code
Changhwan Youn2b12b5c2010-07-26 21:08:52 +09006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10*/
11
12#ifndef __ASM_ARCH_UNCOMPRESS_H
13#define __ASM_ARCH_UNCOMPRESS_H __FILE__
14
Kukjin Kim171c0672012-02-10 11:57:53 +090015#include <asm/mach-types.h>
16
Changhwan Youn2b12b5c2010-07-26 21:08:52 +090017#include <mach/map.h>
Kukjin Kim171c0672012-02-10 11:57:53 +090018
19volatile u8 *uart_base;
20
Changhwan Youn2b12b5c2010-07-26 21:08:52 +090021#include <plat/uncompress.h>
22
23static void arch_detect_cpu(void)
24{
Kukjin Kim171c0672012-02-10 11:57:53 +090025 if (machine_is_smdk5250())
26 uart_base = (volatile u8 *)EXYNOS5_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);
27 else
28 uart_base = (volatile u8 *)EXYNOS4_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);
Changhwan Youn2b12b5c2010-07-26 21:08:52 +090029
30 /*
31 * For preventing FIFO overrun or infinite loop of UART console,
32 * fifo_max should be the minimum fifo size of all of the UART channels
33 */
34 fifo_mask = S5PV210_UFSTAT_TXMASK;
35 fifo_max = 15 << S5PV210_UFSTAT_TXSHIFT;
36}
37#endif /* __ASM_ARCH_UNCOMPRESS_H */