Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339767
b: refs/heads/master
c: 4cc3c84
h: refs/heads/master
i:
  339765: 3f570e0
  339763: b3f5454
  339759: 7836aff
v: v3
  • Loading branch information
Fabio Estevam authored and Shawn Guo committed Oct 19, 2012
1 parent 7ebf967 commit 37cf83b
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eccfe8b75b09225187863ac9520a827b6400a8aa
refs/heads/master: 4cc3c840cb71da9a8e458bf89677a78ea0d61532
4 changes: 4 additions & 0 deletions trunk/arch/arm/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ ifeq ($(CONFIG_ARCH_SA1100),y)
OBJS += head-sa1100.o
endif

ifeq ($(CONFIG_ARCH_VT8500),y)
OBJS += head-vt8500.o
endif

ifeq ($(CONFIG_CPU_XSCALE),y)
OBJS += head-xscale.o
endif
Expand Down
46 changes: 46 additions & 0 deletions trunk/arch/arm/boot/compressed/head-vt8500.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* linux/arch/arm/boot/compressed/head-vt8500.S
*
* Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
*
* VIA VT8500 specific tweaks. This is merged into head.S by the linker.
*
*/

#include <linux/linkage.h>
#include <asm/mach-types.h>

.section ".start", "ax"

__VT8500_start:
@ Compare the SCC ID register against a list of known values
ldr r1, .SCCID
ldr r3, [r1]

@ VT8500 override
ldr r4, .VT8500SCC
cmp r3, r4
ldreq r7, .ID_BV07
beq .Lendvt8500

@ WM8505 override
ldr r4, .WM8505SCC
cmp r3, r4
ldreq r7, .ID_8505
beq .Lendvt8500

@ Otherwise, leave the bootloader's machine id untouched

.SCCID:
.word 0xd8120000
.VT8500SCC:
.word 0x34000102
.WM8505SCC:
.word 0x34260103

.ID_BV07:
.word MACH_TYPE_BV07
.ID_8505:
.word MACH_TYPE_WM8505_7IN_NETBOOK

.Lendvt8500:
1 change: 1 addition & 0 deletions trunk/arch/arm/configs/imx_v4_v5_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CONFIG_MODULE_UNLOAD=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
CONFIG_ARCH_MXC=y
CONFIG_ARCH_MULTI_V4T=y
CONFIG_ARCH_MULTI_V5=y
# CONFIG_ARCH_MULTI_V7 is not set
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/configs/imx_v6_v7_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CONFIG_MODULE_UNLOAD=y
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
# CONFIG_BLK_DEV_BSG is not set
CONFIG_ARCH_MXC=y
CONFIG_ARCH_MULTI_V6=y
CONFIG_ARCH_MULTI_V7=y
CONFIG_MACH_MX31LILLY=y
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-imx/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config ARCH_MXC
def_bool y if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7
bool "Freescale i.MX family" if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7
select ARCH_REQUIRE_GPIOLIB
select ARM_PATCH_PHYS_VIRT
select AUTO_ZRELADDR if !ZBOOT_ROM
Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/arm/mach-vt8500/include/mach/hardware.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* arch/arm/mach-vt8500/include/mach/hardware.h
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
18 changes: 18 additions & 0 deletions trunk/arch/arm/mach-vt8500/include/mach/i8042.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* arch/arm/mach-vt8500/include/mach/i8042.h
*
* Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/

extern unsigned long wmt_i8042_base __initdata;
extern int wmt_i8042_kbd_irq;
extern int wmt_i8042_aux_irq;
17 changes: 17 additions & 0 deletions trunk/arch/arm/mach-vt8500/include/mach/restart.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* linux/arch/arm/mach-vt8500/restart.h
*
* Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/

void vt8500_setup_restart(void);
void vt8500_restart(char mode, const char *cmd);
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-vt8500/timer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* arch/arm/mach-vt8500/timer.c
* arch/arm/mach-vt8500/timer_dt.c
*
* Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz>
* Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-vt8500/vt8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <linux/of_irq.h>
#include <linux/of_platform.h>

#include <mach/restart.h>

#include "common.h"

#define LEGACY_GPIO_BASE 0xD8110000
Expand Down

0 comments on commit 37cf83b

Please sign in to comment.