Skip to content

Commit 00bd60f

Browse files
committed
Merge branch 'v3.4-samsung-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into fixes
* 'v3.4-samsung-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: ARM: EXYNOS: Fix compiler warning in dma.c file ARM: EXYNOS: fix ISO C90 warning ARM: EXYNOS: use chip_id reg in uncompress to select uart base phys ARM: EXYNOS: fix CONFIG_DEBUG_LL ARM: S3C24XX: fix missing common.h in mach-s3c24xx/
2 parents 57b501b + f011fd1 commit 00bd60f

File tree

5 files changed

+39
-8
lines changed

5 files changed

+39
-8
lines changed

arch/arm/mach-exynos/common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,11 @@ core_initcall(exynos_core_init);
583583
#ifdef CONFIG_CACHE_L2X0
584584
static int __init exynos4_l2x0_cache_init(void)
585585
{
586+
int ret;
587+
586588
if (soc_is_exynos5250())
587589
return 0;
588590

589-
int ret;
590591
ret = l2x0_of_init(L2_AUX_VAL, L2_AUX_MASK);
591592
if (!ret) {
592593
l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs);

arch/arm/mach-exynos/dma.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
#include <mach/irqs.h>
3636
#include <mach/dma.h>
3737

38-
static u64 dma_dmamask = DMA_BIT_MASK(32);
39-
4038
static u8 exynos4210_pdma0_peri[] = {
4139
DMACH_PCM0_RX,
4240
DMACH_PCM0_TX,

arch/arm/mach-exynos/include/mach/debug-macro.S

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
*/
2222

2323
.macro addruart, rp, rv, tmp
24-
mov \rp, #0x10000000
25-
ldr \rp, [\rp, #0x0]
26-
and \rp, \rp, #0xf00000
27-
teq \rp, #0x500000 @@ EXYNOS5
24+
mrc p15, 0, \tmp, c0, c0, 0
25+
and \tmp, \tmp, #0xf0
26+
teq \tmp, #0xf0 @@ A15
2827
ldreq \rp, =EXYNOS5_PA_UART
2928
movne \rp, #EXYNOS4_PA_UART @@ EXYNOS4
3029
ldr \rv, =S3C_VA_UART

arch/arm/mach-exynos/include/mach/uncompress.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,24 @@ volatile u8 *uart_base;
2020

2121
#include <plat/uncompress.h>
2222

23+
static unsigned int __raw_readl(unsigned int ptr)
24+
{
25+
return *((volatile unsigned int *)ptr);
26+
}
27+
2328
static void arch_detect_cpu(void)
2429
{
25-
if (machine_is_smdk5250())
30+
u32 chip_id = __raw_readl(EXYNOS_PA_CHIPID);
31+
32+
/*
33+
* product_id is bits 31:12
34+
* bits 23:20 describe the exynosX family
35+
*
36+
*/
37+
chip_id >>= 20;
38+
chip_id &= 0xf;
39+
40+
if (chip_id == 0x5)
2641
uart_base = (volatile u8 *)EXYNOS5_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);
2742
else
2843
uart_base = (volatile u8 *)EXYNOS4_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);

arch/arm/mach-s3c24xx/common.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
3+
* http://www.samsung.com
4+
*
5+
* Common Header for S3C24XX SoCs
6+
*
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 __ARCH_ARM_MACH_S3C24XX_COMMON_H
13+
#define __ARCH_ARM_MACH_S3C24XX_COMMON_H __FILE__
14+
15+
void s3c2410_restart(char mode, const char *cmd);
16+
void s3c244x_restart(char mode, const char *cmd);
17+
18+
#endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */

0 commit comments

Comments
 (0)