diff options
Diffstat (limited to 'arch/arm/mach-s5pc100/include')
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/debug-macro.S | 6 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/dma.h | 4 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/entry-macro.S | 31 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/gpio.h | 7 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/io.h | 18 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/map.h | 193 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/memory.h | 18 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/pwm-clock.h | 56 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/regs-fb.h | 105 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/regs-irq.h | 1 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/spi-clocks.h | 18 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/system.h | 21 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/tick.h | 29 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/timex.h | 24 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/uncompress.h | 28 | ||||
| -rw-r--r-- | arch/arm/mach-s5pc100/include/mach/vmalloc.h | 17 | 
16 files changed, 91 insertions, 485 deletions
diff --git a/arch/arm/mach-s5pc100/include/mach/debug-macro.S b/arch/arm/mach-s5pc100/include/mach/debug-macro.S index b2ba95ddf8e..22c23859e45 100644 --- a/arch/arm/mach-s5pc100/include/mach/debug-macro.S +++ b/arch/arm/mach-s5pc100/include/mach/debug-macro.S @@ -13,8 +13,8 @@  /* pull in the relevant register and map files. */ +#include <linux/serial_s3c.h>  #include <mach/map.h> -#include <plat/regs-serial.h>  	/* note, for the boot process to work we have to keep the UART  	 * virtual address aligned to an 1MiB boundary for the L1 @@ -22,7 +22,7 @@  	 * aligned and add in the offset when we load the value here.  	 */ -	.macro addruart, rp, rv +	.macro addruart, rp, rv, tmp  		ldr	\rp, = S3C_PA_UART  		ldr	\rv, = S3C_VA_UART  #if CONFIG_DEBUG_S3C_UART != 0 @@ -36,4 +36,4 @@   * will be fine with us.   */ -#include <plat/debug-macro.S> +#include <debug/samsung.S> diff --git a/arch/arm/mach-s5pc100/include/mach/dma.h b/arch/arm/mach-s5pc100/include/mach/dma.h index 81209eb1409..201842a3769 100644 --- a/arch/arm/mach-s5pc100/include/mach/dma.h +++ b/arch/arm/mach-s5pc100/include/mach/dma.h @@ -20,7 +20,7 @@  #ifndef __MACH_DMA_H  #define __MACH_DMA_H -/* This platform uses the common S3C DMA API driver for PL330 */ -#include <plat/s3c-dma-pl330.h> +/* This platform uses the common DMA API driver for PL330 */ +#include <plat/dma-pl330.h>  #endif /* __MACH_DMA_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/entry-macro.S b/arch/arm/mach-s5pc100/include/mach/entry-macro.S index ba76af052c8..bad0700457d 100644 --- a/arch/arm/mach-s5pc100/include/mach/entry-macro.S +++ b/arch/arm/mach-s5pc100/include/mach/entry-macro.S @@ -12,39 +12,8 @@   * warranty of any kind, whether express or implied.  */ -#include <asm/hardware/vic.h> -#include <mach/map.h> -#include <plat/irqs.h> - -	.macro	disable_fiq -	.endm -  	.macro	get_irqnr_preamble, base, tmp -	ldr	\base, =VA_VIC0 -	.endm - -	.macro	arch_ret_to_user, tmp1, tmp2  	.endm  	.macro	get_irqnr_and_base, irqnr, irqstat, base, tmp - -	@ check the vic0 -	mov	\irqnr, # S5P_IRQ_OFFSET + 31 -	ldr	\irqstat, [ \base, # VIC_IRQ_STATUS ] -	teq	\irqstat, #0 - -	@ otherwise try vic1 -	addeq	\tmp, \base, #(VA_VIC1 - VA_VIC0) -	addeq	\irqnr, \irqnr, #32 -	ldreq	\irqstat, [ \tmp, # VIC_IRQ_STATUS ] -	teqeq	\irqstat, #0 - -	@ otherwise try vic2 -	addeq	\tmp, \base, #(VA_VIC2 - VA_VIC0) -	addeq	\irqnr, \irqnr, #32 -	ldreq	\irqstat, [ \tmp, # VIC_IRQ_STATUS ] -	teqeq	\irqstat, #0 - -	clzne	\irqstat, \irqstat -	subne	\irqnr, \irqnr, \irqstat  	.endm diff --git a/arch/arm/mach-s5pc100/include/mach/gpio.h b/arch/arm/mach-s5pc100/include/mach/gpio.h index 29a8a12d9b4..5e1a924b595 100644 --- a/arch/arm/mach-s5pc100/include/mach/gpio.h +++ b/arch/arm/mach-s5pc100/include/mach/gpio.h @@ -15,11 +15,6 @@  #ifndef __ASM_ARCH_GPIO_H  #define __ASM_ARCH_GPIO_H __FILE__ -#define gpio_get_value	__gpio_get_value -#define gpio_set_value	__gpio_set_value -#define gpio_cansleep	__gpio_cansleep -#define gpio_to_irq	__gpio_to_irq -  /* GPIO bank sizes */  #define S5PC100_GPIO_A0_NR	(8)  #define S5PC100_GPIO_A1_NR	(5) @@ -146,6 +141,4 @@ enum s5p_gpio_number {  /* define the number of gpios we need to the one after the MP04() range */  #define ARCH_NR_GPIOS		(S5PC100_GPIO_END + 1) -#include <asm-generic/gpio.h> -  #endif /* __ASM_ARCH_GPIO_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/io.h b/arch/arm/mach-s5pc100/include/mach/io.h deleted file mode 100644 index 819acf5eaf8..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/io.h +++ /dev/null @@ -1,18 +0,0 @@ -/* arch/arm/mach-s5pc100/include/mach/io.h - * - * Copyright 2008 Simtec Electronics - *	Ben Dooks <ben-linux@fluff.org> - * - * Default IO routines for S5PC100 systems - */ - -#ifndef __ASM_ARM_ARCH_IO_H -#define __ASM_ARM_ARCH_IO_H - -/* No current ISA/PCI bus support. */ -#define __io(a)		__typesafe_io(a) -#define __mem_pci(a)	(a) - -#define IO_SPACE_LIMIT (0xFFFFFFFF) - -#endif diff --git a/arch/arm/mach-s5pc100/include/mach/map.h b/arch/arm/mach-s5pc100/include/mach/map.h index 32e9cab5c86..2550b6112b8 100644 --- a/arch/arm/mach-s5pc100/include/mach/map.h +++ b/arch/arm/mach-s5pc100/include/mach/map.h @@ -1,5 +1,8 @@  /* linux/arch/arm/mach-s5pc100/include/mach/map.h   * + * Copyright (c) 2011 Samsung Electronics Co., Ltd. + *		http://www.samsung.com/ + *   * Copyright 2009 Samsung Electronics Co.   *	Byungho Min <bhmin@samsung.com>   * @@ -16,143 +19,119 @@  #include <plat/map-base.h>  #include <plat/map-s5p.h> -/* - * map-base.h has already defined virtual memory address - * S3C_VA_IRQ		S3C_ADDR(0x00000000)	irq controller(s) - * S3C_VA_SYS		S3C_ADDR(0x00100000)	system control - * S3C_VA_MEM		S3C_ADDR(0x00200000)	system control (not used) - * S3C_VA_TIMER		S3C_ADDR(0x00300000)	timer block - * S3C_VA_WATCHDOG	S3C_ADDR(0x00400000)	watchdog - * S3C_VA_UART		S3C_ADDR(0x01000000)	UART - * - * S5PC100 specific virtual memory address can be defined here - * S5PC1XX_VA_GPIO	S3C_ADDR(0x00500000)	GPIO - * - */ +#define S5PC100_PA_SDRAM		0x20000000 + +#define S5PC100_PA_ONENAND		0xE7100000 +#define S5PC100_PA_ONENAND_BUF		0xB0000000 -#define S5PC100_PA_ONENAND_BUF	(0xB0000000) -#define S5PC100_SZ_ONENAND_BUF	(SZ_256M - SZ_32M) +#define S5PC100_PA_CHIPID		0xE0000000 -/* Chip ID */ +#define S5PC100_PA_SYSCON		0xE0100000 -#define S5PC100_PA_CHIPID	(0xE0000000) -#define S5P_PA_CHIPID		S5PC100_PA_CHIPID +#define S5PC100_PA_OTHERS		0xE0200000 -#define S5PC100_PA_SYSCON	(0xE0100000) -#define S5P_PA_SYSCON		S5PC100_PA_SYSCON +#define S5PC100_PA_GPIO			0xE0300000 -#define S5PC100_PA_OTHERS	(0xE0200000) -#define S5PC100_VA_OTHERS	(S3C_VA_SYS + 0x10000) +#define S5PC100_PA_VIC0			0xE4000000 +#define S5PC100_PA_VIC1			0xE4100000 +#define S5PC100_PA_VIC2			0xE4200000 -#define S5PC100_PA_GPIO		(0xE0300000) -#define S5PC1XX_VA_GPIO		S3C_ADDR(0x00500000) +#define S5PC100_PA_SROMC		0xE7000000 -/* Interrupt */ -#define S5PC100_PA_VIC0		(0xE4000000) -#define S5PC100_PA_VIC1		(0xE4100000) -#define S5PC100_PA_VIC2		(0xE4200000) -#define S5PC100_VA_VIC		S3C_VA_IRQ -#define S5PC100_VA_VIC_OFFSET	0x10000 -#define S5PC1XX_VA_VIC(x)	(S5PC100_VA_VIC + ((x) * S5PC100_VA_VIC_OFFSET)) +#define S5PC100_PA_CFCON		0xE7800000 +#define S5PC100_PA_MDMA			0xE8100000 +#define S5PC100_PA_PDMA0		0xE9000000 +#define S5PC100_PA_PDMA1		0xE9200000 -#define S5PC100_PA_ONENAND	(0xE7100000) +#define S5PC100_PA_TIMER		0xEA000000 +#define S5PC100_PA_SYSTIMER		0xEA100000 +#define S5PC100_PA_WATCHDOG		0xEA200000 +#define S5PC100_PA_RTC			0xEA300000 -#define S5PC100_PA_CFCON	(0xE7800000) +#define S5PC100_PA_UART			0xEC000000 -/* DMA */ -#define S5PC100_PA_MDMA		(0xE8100000) -#define S5PC100_PA_PDMA0	(0xE9000000) -#define S5PC100_PA_PDMA1	(0xE9200000) +#define S5PC100_PA_IIC0			0xEC100000 +#define S5PC100_PA_IIC1			0xEC200000 -/* Timer */ -#define S5PC100_PA_TIMER	(0xEA000000) -#define S5P_PA_TIMER		S5PC100_PA_TIMER +#define S5PC100_PA_SPI0			0xEC300000 +#define S5PC100_PA_SPI1			0xEC400000 +#define S5PC100_PA_SPI2			0xEC500000 -#define S5PC100_PA_SYSTIMER	(0xEA100000) +#define S5PC100_PA_USB_HSOTG		0xED200000 +#define S5PC100_PA_USB_HSPHY		0xED300000 -#define S5PC100_PA_WATCHDOG	(0xEA200000) -#define S5PC100_PA_RTC		(0xEA300000) +#define S5PC100_PA_HSMMC(x)		(0xED800000 + ((x) * 0x100000)) -#define S5PC100_PA_UART		(0xEC000000) +#define S5PC100_PA_FB			0xEE000000 -#define S5P_PA_UART0		(S5PC100_PA_UART + 0x0) -#define S5P_PA_UART1		(S5PC100_PA_UART + 0x400) -#define S5P_PA_UART2		(S5PC100_PA_UART + 0x800) -#define S5P_PA_UART3		(S5PC100_PA_UART + 0xC00) -#define S5P_SZ_UART		SZ_256 +#define S5PC100_PA_FIMC0		0xEE200000 +#define S5PC100_PA_FIMC1		0xEE300000 +#define S5PC100_PA_FIMC2		0xEE400000 -#define S5PC100_PA_IIC0		(0xEC100000) -#define S5PC100_PA_IIC1		(0xEC200000) +#define S5PC100_PA_I2S0			0xF2000000 +#define S5PC100_PA_I2S1			0xF2100000 +#define S5PC100_PA_I2S2			0xF2200000 -/* SPI */ -#define S5PC100_PA_SPI0		0xEC300000 -#define S5PC100_PA_SPI1		0xEC400000 -#define S5PC100_PA_SPI2		0xEC500000 +#define S5PC100_PA_AC97			0xF2300000 -/* USB HS OTG */ -#define S5PC100_PA_USB_HSOTG	(0xED200000) -#define S5PC100_PA_USB_HSPHY	(0xED300000) +#define S5PC100_PA_PCM0			0xF2400000 +#define S5PC100_PA_PCM1			0xF2500000 -#define S5PC100_PA_FB		(0xEE000000) +#define S5PC100_PA_SPDIF		0xF2600000 -#define S5PC100_PA_FIMC0	(0xEE200000) -#define S5PC100_PA_FIMC1	(0xEE300000) -#define S5PC100_PA_FIMC2	(0xEE400000) +#define S5PC100_PA_TSADC		0xF3000000 -#define S5PC100_PA_I2S0		(0xF2000000) -#define S5PC100_PA_I2S1		(0xF2100000) -#define S5PC100_PA_I2S2		(0xF2200000) +#define S5PC100_PA_KEYPAD		0xF3100000 -#define S5PC100_PA_AC97		0xF2300000 +/* Compatibiltiy Defines */ -/* PCM */ -#define S5PC100_PA_PCM0		0xF2400000 -#define S5PC100_PA_PCM1		0xF2500000 +#define S3C_PA_FB			S5PC100_PA_FB +#define S3C_PA_HSMMC0			S5PC100_PA_HSMMC(0) +#define S3C_PA_HSMMC1			S5PC100_PA_HSMMC(1) +#define S3C_PA_HSMMC2			S5PC100_PA_HSMMC(2) +#define S3C_PA_IIC			S5PC100_PA_IIC0 +#define S3C_PA_IIC1			S5PC100_PA_IIC1 +#define S3C_PA_KEYPAD			S5PC100_PA_KEYPAD +#define S3C_PA_ONENAND			S5PC100_PA_ONENAND +#define S3C_PA_ONENAND_BUF		S5PC100_PA_ONENAND_BUF +#define S3C_PA_RTC			S5PC100_PA_RTC +#define S3C_PA_TSADC			S5PC100_PA_TSADC +#define S3C_PA_USB_HSOTG		S5PC100_PA_USB_HSOTG +#define S3C_PA_USB_HSPHY		S5PC100_PA_USB_HSPHY +#define S3C_PA_WDT			S5PC100_PA_WATCHDOG +#define S3C_PA_SPI0			S5PC100_PA_SPI0 +#define S3C_PA_SPI1			S5PC100_PA_SPI1 +#define S3C_PA_SPI2			S5PC100_PA_SPI2 -#define S5PC100_PA_SPDIF	0xF2600000 +#define S5P_PA_CHIPID			S5PC100_PA_CHIPID +#define S5P_PA_FIMC0			S5PC100_PA_FIMC0 +#define S5P_PA_FIMC1			S5PC100_PA_FIMC1 +#define S5P_PA_FIMC2			S5PC100_PA_FIMC2 +#define S5P_PA_SDRAM			S5PC100_PA_SDRAM +#define S5P_PA_SROMC			S5PC100_PA_SROMC +#define S5P_PA_SYSCON			S5PC100_PA_SYSCON +#define S5P_PA_TIMER			S5PC100_PA_TIMER -#define S5PC100_PA_TSADC	(0xF3000000) +#define SAMSUNG_PA_ADC			S5PC100_PA_TSADC +#define SAMSUNG_PA_CFCON		S5PC100_PA_CFCON +#define SAMSUNG_PA_KEYPAD		S5PC100_PA_KEYPAD +#define SAMSUNG_PA_TIMER		S5PC100_PA_TIMER -/* KEYPAD */ -#define S5PC100_PA_KEYPAD	(0xF3100000) +#define S5PC100_VA_OTHERS		(S3C_VA_SYS + 0x10000) -#define S5PC100_PA_HSMMC(x)	(0xED800000 + ((x) * 0x100000)) +#define S3C_SZ_ONENAND_BUF		(SZ_256M - SZ_32M) -#define S5PC100_PA_SDRAM	(0x20000000) -#define S5P_PA_SDRAM		S5PC100_PA_SDRAM +/* UART */ -/* compatibiltiy defines. */ -#define S3C_PA_UART		S5PC100_PA_UART -#define S3C_PA_IIC		S5PC100_PA_IIC0 -#define S3C_PA_IIC1		S5PC100_PA_IIC1 -#define S3C_PA_FB		S5PC100_PA_FB -#define S3C_PA_G2D		S5PC100_PA_G2D -#define S3C_PA_G3D		S5PC100_PA_G3D -#define S3C_PA_JPEG		S5PC100_PA_JPEG -#define S3C_PA_ROTATOR		S5PC100_PA_ROTATOR -#define S5P_VA_VIC0		S5PC1XX_VA_VIC(0) -#define S5P_VA_VIC1		S5PC1XX_VA_VIC(1) -#define S5P_VA_VIC2		S5PC1XX_VA_VIC(2) -#define S3C_PA_USB_HSOTG	S5PC100_PA_USB_HSOTG -#define S3C_PA_USB_HSPHY	S5PC100_PA_USB_HSPHY -#define S3C_PA_HSMMC0		S5PC100_PA_HSMMC(0) -#define S3C_PA_HSMMC1		S5PC100_PA_HSMMC(1) -#define S3C_PA_HSMMC2		S5PC100_PA_HSMMC(2) -#define S3C_PA_KEYPAD		S5PC100_PA_KEYPAD -#define S3C_PA_WDT		S5PC100_PA_WATCHDOG -#define S3C_PA_TSADC		S5PC100_PA_TSADC -#define S3C_PA_ONENAND		S5PC100_PA_ONENAND -#define S3C_PA_ONENAND_BUF	S5PC100_PA_ONENAND_BUF -#define S3C_SZ_ONENAND_BUF	S5PC100_SZ_ONENAND_BUF -#define S3C_PA_RTC		S5PC100_PA_RTC +#define S3C_PA_UART			S5PC100_PA_UART -#define SAMSUNG_PA_ADC		S5PC100_PA_TSADC -#define SAMSUNG_PA_CFCON	S5PC100_PA_CFCON -#define SAMSUNG_PA_KEYPAD	S5PC100_PA_KEYPAD +#define S5P_PA_UART(x)			(S3C_PA_UART + ((x) * S3C_UART_OFFSET)) +#define S5P_PA_UART0			S5P_PA_UART(0) +#define S5P_PA_UART1			S5P_PA_UART(1) +#define S5P_PA_UART2			S5P_PA_UART(2) +#define S5P_PA_UART3			S5P_PA_UART(3) -#define S5P_PA_FIMC0		S5PC100_PA_FIMC0 -#define S5P_PA_FIMC1		S5PC100_PA_FIMC1 -#define S5P_PA_FIMC2		S5PC100_PA_FIMC2 +#define S5P_SZ_UART			SZ_256 -#endif /* __ASM_ARCH_C100_MAP_H */ +#endif /* __ASM_ARCH_MAP_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/memory.h b/arch/arm/mach-s5pc100/include/mach/memory.h deleted file mode 100644 index 4b60d18179f..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/memory.h +++ /dev/null @@ -1,18 +0,0 @@ -/* arch/arm/mach-s5pc100/include/mach/memory.h - * - * Copyright 2008 Samsung Electronics Co. - *      Byungho Min <bhmin@samsung.com> - * - * Based on mach-s3c6400/include/mach/memory.h - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_MEMORY_H -#define __ASM_ARCH_MEMORY_H - -#define PHYS_OFFSET     	UL(0x20000000) - -#endif diff --git a/arch/arm/mach-s5pc100/include/mach/pwm-clock.h b/arch/arm/mach-s5pc100/include/mach/pwm-clock.h deleted file mode 100644 index b34d2f7aae5..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/pwm-clock.h +++ /dev/null @@ -1,56 +0,0 @@ -/* linux/arch/arm/mach-s5pc100/include/mach/pwm-clock.h - * - * Copyright 2009 Samsung Electronics Co. - *      Byungho Min <bhmin@samsung.com> - * - * S5PC100 - pwm clock and timer support - * - * Based on mach-s3c6400/include/mach/pwm-clock.h - */ - -/** - * pwm_cfg_src_is_tclk() - return whether the given mux config is a tclk - * @tcfg: The timer TCFG1 register bits shifted down to 0. - * - * Return true if the given configuration from TCFG1 is a TCLK instead - * any of the TDIV clocks. - */ -static inline int pwm_cfg_src_is_tclk(unsigned long tcfg) -{ -	return tcfg >= S3C64XX_TCFG1_MUX_TCLK; -} - -/** - * tcfg_to_divisor() - convert tcfg1 setting to a divisor - * @tcfg1: The tcfg1 setting, shifted down. - * - * Get the divisor value for the given tcfg1 setting. We assume the - * caller has already checked to see if this is not a TCLK source. - */ -static inline unsigned long tcfg_to_divisor(unsigned long tcfg1) -{ -	return 1 << tcfg1; -} - -/** - * pwm_tdiv_has_div1() - does the tdiv setting have a /1 - * - * Return true if we have a /1 in the tdiv setting. - */ -static inline unsigned int pwm_tdiv_has_div1(void) -{ -	return 1; -} - -/** - * pwm_tdiv_div_bits() - calculate TCFG1 divisor value. - * @div: The divisor to calculate the bit information for. - * - * Turn a divisor into the necessary bit field for TCFG1. - */ -static inline unsigned long pwm_tdiv_div_bits(unsigned int div) -{ -	return ilog2(div); -} - -#define S3C_TCFG1_MUX_TCLK S3C64XX_TCFG1_MUX_TCLK diff --git a/arch/arm/mach-s5pc100/include/mach/regs-fb.h b/arch/arm/mach-s5pc100/include/mach/regs-fb.h deleted file mode 100644 index 4be4cc9abf7..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/regs-fb.h +++ /dev/null @@ -1,105 +0,0 @@ -/* arch/arm/mach-s5pc100/include/mach/regs-fb.h - * - * Copyright 2009 Samsung Electronics Co. - *   Pawel Osciak <p.osciak@samsung.com> - * - * Framebuffer register definitions for Samsung S5PC100. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_REGS_FB_H -#define __ASM_ARCH_REGS_FB_H __FILE__ - -#include <plat/regs-fb-v4.h> - -/* VP1 interface timing control */ -#define VP1CON0						(0x118) -#define VP1_RATECON_EN					(1 << 31) -#define VP1_CLKRATE_MASK				(0xff) - -#define VP1CON1						(0x11c) -#define VP1_VTREGCON_EN					(1 << 31) -#define VP1_VBPD_MASK					(0xfff) -#define VP1_VBPD_SHIFT					(16) - - -#define WPALCON_H					(0x19c) -#define WPALCON_L					(0x1a0) - -/* Pallete contro for WPAL0 and WPAL1 is the same as in S3C64xx, but - * different for WPAL2-4 - */ -/* In WPALCON_L (aka WPALCON) */ -#define WPALCON_W1PAL_32BPP_A888			(0x7 << 3) -#define WPALCON_W0PAL_32BPP_A888			(0x7 << 0) - -/* To set W2PAL-W4PAL consist of one bit from WPALCON_L and two from WPALCON_H, - * e.g. W2PAL[2..0] is made of (WPALCON_H[10..9], WPALCON_L[6]). - */ -#define WPALCON_L_WxPAL_L_MASK				(0x1) -#define WPALCON_L_W2PAL_L_SHIFT				(6) -#define WPALCON_L_W3PAL_L_SHIFT				(7) -#define WPALCON_L_W4PAL_L_SHIFT				(8) - -#define WPALCON_L_WxPAL_H_MASK				(0x3) -#define WPALCON_H_W2PAL_H_SHIFT				(9) -#define WPALCON_H_W3PAL_H_SHIFT				(13) -#define WPALCON_H_W4PAL_H_SHIFT				(17) - -/* Per-window alpha value registers */ -/* For window 0 8-bit alpha values are in VIDW0ALPHAx, - * for windows 1-4 alpha values consist of two parts, the 4 low bits are - * taken from VIDWxALPHAx and 4 high bits are from VIDOSDxC, - * e.g. WIN1_ALPHA0_B[7..0] = (VIDOSD1C[3..0], VIDW1ALPHA0[3..0]) - */ -#define VIDWxALPHA0(_win)				(0x200 + (_win * 8)) -#define VIDWxALPHA1(_win)				(0x204 + (_win * 8)) - -/* Only for window 0 in VIDW0ALPHAx. */ -#define VIDW0ALPHAx_R(_x)				((_x) << 16) -#define VIDW0ALPHAx_R_MASK				(0xff << 16) -#define VIDW0ALPHAx_R_SHIFT				(16) -#define VIDW0ALPHAx_G(_x)				((_x) << 8) -#define VIDW0ALPHAx_G_MASK				(0xff << 8) -#define VIDW0ALPHAx_G_SHIFT				(8) -#define VIDW0ALPHAx_B(_x)				((_x) << 0) -#define VIDW0ALPHAx_B_MASK				(0xff << 0) -#define VIDW0ALPHAx_B_SHIFT				(0) - -/* Low 4 bits of alpha0-1 for windows 1-4 */ -#define VIDW14ALPHAx_R_L(_x)				((_x) << 16) -#define VIDW14ALPHAx_R_L_MASK				(0xf << 16) -#define VIDW14ALPHAx_R_L_SHIFT				(16) -#define VIDW14ALPHAx_G_L(_x)				((_x) << 8) -#define VIDW14ALPHAx_G_L_MASK				(0xf << 8) -#define VIDW14ALPHAx_G_L_SHIFT				(8) -#define VIDW14ALPHAx_B_L(_x)				((_x) << 0) -#define VIDW14ALPHAx_B_L_MASK				(0xf << 0) -#define VIDW14ALPHAx_B_L_SHIFT				(0) - - -/* Per-window blending equation control registers */ -#define BLENDEQx(_win)					(0x244 + ((_win) * 4)) -#define BLENDEQ1					(0x244) -#define BLENDEQ2					(0x248) -#define BLENDEQ3					(0x24c) -#define BLENDEQ4					(0x250) - -#define BLENDEQx_Q_FUNC(_x)				((_x) << 18) -#define BLENDEQx_Q_FUNC_MASK				(0xf << 18) -#define BLENDEQx_P_FUNC(_x)				((_x) << 12) -#define BLENDEQx_P_FUNC_MASK				(0xf << 12) -#define BLENDEQx_B_FUNC(_x)				((_x) << 6) -#define BLENDEQx_B_FUNC_MASK				(0xf << 6) -#define BLENDEQx_A_FUNC(_x)				((_x) << 0) -#define BLENDEQx_A_FUNC_MASK				(0xf << 0) - -#define BLENDCON					(0x260) -#define BLENDCON_8BIT_ALPHA				(1 << 0) - - -#endif /* __ASM_ARCH_REGS_FB_H */ - diff --git a/arch/arm/mach-s5pc100/include/mach/regs-irq.h b/arch/arm/mach-s5pc100/include/mach/regs-irq.h index 4d9036d0f28..761627897f3 100644 --- a/arch/arm/mach-s5pc100/include/mach/regs-irq.h +++ b/arch/arm/mach-s5pc100/include/mach/regs-irq.h @@ -14,6 +14,5 @@  #define __ASM_ARCH_REGS_IRQ_H __FILE__  #include <mach/map.h> -#include <asm/hardware/vic.h>  #endif /* __ASM_ARCH_REGS_IRQ_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/spi-clocks.h b/arch/arm/mach-s5pc100/include/mach/spi-clocks.h deleted file mode 100644 index 65e426370bb..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/spi-clocks.h +++ /dev/null @@ -1,18 +0,0 @@ -/* linux/arch/arm/mach-s5pc100/include/mach/spi-clocks.h - * - * Copyright (C) 2010 Samsung Electronics Co. Ltd. - *	Jaswinder Singh <jassi.brar@samsung.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __S5PC100_PLAT_SPI_CLKS_H -#define __S5PC100_PLAT_SPI_CLKS_H __FILE__ - -#define S5PC100_SPI_SRCCLK_PCLK		0 -#define S5PC100_SPI_SRCCLK_48M		1 -#define S5PC100_SPI_SRCCLK_SPIBUS	2 - -#endif /* __S5PC100_PLAT_SPI_CLKS_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/system.h b/arch/arm/mach-s5pc100/include/mach/system.h deleted file mode 100644 index a9ea57c0660..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/system.h +++ /dev/null @@ -1,21 +0,0 @@ -/* linux/arch/arm/mach-s5pc100/include/mach/system.h - * - * Copyright 2009 Samsung Electronics Co. - *      Byungho Min <bhmin@samsung.com> - * - * S5PC100 - system implementation - * - * Based on mach-s3c6400/include/mach/system.h - */ - -#ifndef __ASM_ARCH_SYSTEM_H -#define __ASM_ARCH_SYSTEM_H __FILE__ - -#include <plat/system-reset.h> - -static void arch_idle(void) -{ -	/* nothing here yet */ -} - -#endif /* __ASM_ARCH_IRQ_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/tick.h b/arch/arm/mach-s5pc100/include/mach/tick.h deleted file mode 100644 index 20f68730ed1..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/tick.h +++ /dev/null @@ -1,29 +0,0 @@ -/* linux/arch/arm/mach-s5pc100/include/mach/tick.h - * - * Copyright 2009 Samsung Electronics Co. - *	Byungho Min <bhmin@samsung.com> - * - * S3C64XX - Timer tick support definitions - * - * Based on mach-s3c6400/include/mach/tick.h - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_TICK_H -#define __ASM_ARCH_TICK_H __FILE__ - -/* note, the timer interrutps turn up in 2 places, the vic and then - * the timer block. We take the VIC as the base at the moment. - */ -static inline u32 s3c24xx_ostimer_pending(void) -{ -	u32 pend = __raw_readl(VA_VIC0 + VIC_RAW_STATUS); -	return pend & (1 << (IRQ_TIMER4_VIC - S5P_IRQ_VIC0(0))); -} - -#define TICK_MAX	(0xffffffff) - -#endif /* __ASM_ARCH_TICK_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/timex.h b/arch/arm/mach-s5pc100/include/mach/timex.h deleted file mode 100644 index 47ffb17aff9..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/timex.h +++ /dev/null @@ -1,24 +0,0 @@ -/* arch/arm/mach-s5pc100/include/mach/timex.h - * - * Copyright (c) 2003-2005 Simtec Electronics - *	Ben Dooks <ben@simtec.co.uk> - * - * S3C6400 - time parameters - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_TIMEX_H -#define __ASM_ARCH_TIMEX_H - -/* CLOCK_TICK_RATE needs to be evaluatable by the cpp, so making it - * a variable is useless. It seems as long as we make our timers an - * exact multiple of HZ, any value that makes a 1->1 correspondence - * for the time conversion functions to/from jiffies is acceptable. -*/ - -#define CLOCK_TICK_RATE 12000000 - -#endif /* __ASM_ARCH_TIMEX_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/uncompress.h b/arch/arm/mach-s5pc100/include/mach/uncompress.h deleted file mode 100644 index 01ccf535e76..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/uncompress.h +++ /dev/null @@ -1,28 +0,0 @@ -/* arch/arm/mach-s5pc100/include/mach/uncompress.h - * - * Copyright 2009 Samsung Electronics Co. - *	Byungho Min <bhmin@samsung.com> - * - * S5PC100 - uncompress code - * - * Based on mach-s3c6400/include/mach/uncompress.h - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_UNCOMPRESS_H -#define __ASM_ARCH_UNCOMPRESS_H - -#include <mach/map.h> -#include <plat/uncompress.h> - -static void arch_detect_cpu(void) -{ -	/* we do not need to do any cpu detection here at the moment. */ -	fifo_mask = S3C2440_UFSTAT_TXMASK; -	fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT; -} - -#endif /* __ASM_ARCH_UNCOMPRESS_H */ diff --git a/arch/arm/mach-s5pc100/include/mach/vmalloc.h b/arch/arm/mach-s5pc100/include/mach/vmalloc.h deleted file mode 100644 index 44c8e5726d9..00000000000 --- a/arch/arm/mach-s5pc100/include/mach/vmalloc.h +++ /dev/null @@ -1,17 +0,0 @@ -/* arch/arm/mach-s5pc100/include/mach/vmalloc.h - * - * Copyright 2010 Ben Dooks <ben-linux@fluff.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * S3C6400 vmalloc definition -*/ - -#ifndef __ASM_ARCH_VMALLOC_H -#define __ASM_ARCH_VMALLOC_H - -#define VMALLOC_END	0xF6000000UL - -#endif /* __ASM_ARCH_VMALLOC_H */  | 
