diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/arm/plat-s5p | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'arch/arm/plat-s5p')
43 files changed, 3627 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/Kconfig b/arch/arm/plat-s5p/Kconfig new file mode 100644 index 00000000000..9843c954c04 --- /dev/null +++ b/arch/arm/plat-s5p/Kconfig | |||
| @@ -0,0 +1,107 @@ | |||
| 1 | # arch/arm/plat-s5p/Kconfig | ||
| 2 | # | ||
| 3 | # Copyright (c) 2009 Samsung Electronics Co., Ltd. | ||
| 4 | # http://www.samsung.com/ | ||
| 5 | # | ||
| 6 | # Licensed under GPLv2 | ||
| 7 | |||
| 8 | config PLAT_S5P | ||
| 9 | bool | ||
| 10 | depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS4) | ||
| 11 | default y | ||
| 12 | select ARM_VIC if !ARCH_EXYNOS4 | ||
| 13 | select ARM_GIC if ARCH_EXYNOS4 | ||
| 14 | select NO_IOPORT | ||
| 15 | select ARCH_REQUIRE_GPIOLIB | ||
| 16 | select S3C_GPIO_TRACK | ||
| 17 | select S5P_GPIO_DRVSTR | ||
| 18 | select SAMSUNG_GPIOLIB_4BIT | ||
| 19 | select S3C_GPIO_CFG_S3C64XX | ||
| 20 | select S3C_GPIO_PULL_UPDOWN | ||
| 21 | select S3C_GPIO_CFG_S3C24XX | ||
| 22 | select PLAT_SAMSUNG | ||
| 23 | select SAMSUNG_CLKSRC | ||
| 24 | select SAMSUNG_IRQ_VIC_TIMER | ||
| 25 | select SAMSUNG_IRQ_UART | ||
| 26 | help | ||
| 27 | Base platform code for Samsung's S5P series SoC. | ||
| 28 | |||
| 29 | config S5P_EXT_INT | ||
| 30 | bool | ||
| 31 | help | ||
| 32 | Use the external interrupts (other than GPIO interrupts.) | ||
| 33 | Note: Do not choose this for S5P6440 and S5P6450. | ||
| 34 | |||
| 35 | config S5P_GPIO_INT | ||
| 36 | bool | ||
| 37 | help | ||
| 38 | Common code for the GPIO interrupts (other than external interrupts.) | ||
| 39 | |||
| 40 | config S5P_HRT | ||
| 41 | bool | ||
| 42 | select SAMSUNG_DEV_PWM | ||
| 43 | help | ||
| 44 | Use the High Resolution timer support | ||
| 45 | |||
| 46 | comment "System MMU" | ||
| 47 | |||
| 48 | config S5P_SYSTEM_MMU | ||
| 49 | bool "S5P SYSTEM MMU" | ||
| 50 | depends on ARCH_EXYNOS4 | ||
| 51 | help | ||
| 52 | Say Y here if you want to enable System MMU | ||
| 53 | |||
| 54 | config S5P_DEV_FIMC0 | ||
| 55 | bool | ||
| 56 | help | ||
| 57 | Compile in platform device definitions for FIMC controller 0 | ||
| 58 | |||
| 59 | config S5P_DEV_FIMC1 | ||
| 60 | bool | ||
| 61 | help | ||
| 62 | Compile in platform device definitions for FIMC controller 1 | ||
| 63 | |||
| 64 | config S5P_DEV_FIMC2 | ||
| 65 | bool | ||
| 66 | help | ||
| 67 | Compile in platform device definitions for FIMC controller 2 | ||
| 68 | |||
| 69 | config S5P_DEV_FIMC3 | ||
| 70 | bool | ||
| 71 | help | ||
| 72 | Compile in platform device definitions for FIMC controller 3 | ||
| 73 | |||
| 74 | config S5P_DEV_FIMD0 | ||
| 75 | bool | ||
| 76 | help | ||
| 77 | Compile in platform device definitions for FIMD controller 0 | ||
| 78 | |||
| 79 | config S5P_DEV_MFC | ||
| 80 | bool | ||
| 81 | help | ||
| 82 | Compile in platform device definitions for MFC | ||
| 83 | |||
| 84 | config S5P_DEV_ONENAND | ||
| 85 | bool | ||
| 86 | help | ||
| 87 | Compile in platform device definition for OneNAND controller | ||
| 88 | |||
| 89 | config S5P_DEV_CSIS0 | ||
| 90 | bool | ||
| 91 | help | ||
| 92 | Compile in platform device definitions for MIPI-CSIS channel 0 | ||
| 93 | |||
| 94 | config S5P_DEV_CSIS1 | ||
| 95 | bool | ||
| 96 | help | ||
| 97 | Compile in platform device definitions for MIPI-CSIS channel 1 | ||
| 98 | |||
| 99 | config S5P_DEV_USB_EHCI | ||
| 100 | bool | ||
| 101 | help | ||
| 102 | Compile in platform device definition for USB EHCI | ||
| 103 | |||
| 104 | config S5P_SETUP_MIPIPHY | ||
| 105 | bool | ||
| 106 | help | ||
| 107 | Compile in common setup code for MIPI-CSIS and MIPI-DSIM devices | ||
diff --git a/arch/arm/plat-s5p/Makefile b/arch/arm/plat-s5p/Makefile new file mode 100644 index 00000000000..4b53e04eeca --- /dev/null +++ b/arch/arm/plat-s5p/Makefile | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # arch/arm/plat-s5p/Makefile | ||
| 2 | # | ||
| 3 | # Copyright (c) 2009 Samsung Electronics Co., Ltd. | ||
| 4 | # http://www.samsung.com/ | ||
| 5 | # | ||
| 6 | # Licensed under GPLv2 | ||
| 7 | |||
| 8 | obj-y := | ||
| 9 | obj-m := | ||
| 10 | obj-n := dummy.o | ||
| 11 | obj- := | ||
| 12 | |||
| 13 | # Core files | ||
| 14 | |||
| 15 | obj-y += dev-pmu.o | ||
| 16 | obj-y += dev-uart.o | ||
| 17 | obj-y += cpu.o | ||
| 18 | obj-y += clock.o | ||
| 19 | obj-y += irq.o | ||
| 20 | obj-$(CONFIG_S5P_EXT_INT) += irq-eint.o | ||
| 21 | obj-$(CONFIG_S5P_GPIO_INT) += irq-gpioint.o | ||
| 22 | obj-$(CONFIG_S5P_SYSTEM_MMU) += sysmmu.o | ||
| 23 | obj-$(CONFIG_PM) += pm.o | ||
| 24 | obj-$(CONFIG_PM) += irq-pm.o | ||
| 25 | obj-$(CONFIG_S5P_HRT) += s5p-time.o | ||
| 26 | |||
| 27 | # devices | ||
| 28 | obj-$(CONFIG_S5P_DEV_MFC) += dev-mfc.o | ||
| 29 | obj-$(CONFIG_S5P_DEV_FIMC0) += dev-fimc0.o | ||
| 30 | obj-$(CONFIG_S5P_DEV_FIMC1) += dev-fimc1.o | ||
| 31 | obj-$(CONFIG_S5P_DEV_FIMC2) += dev-fimc2.o | ||
| 32 | obj-$(CONFIG_S5P_DEV_FIMC3) += dev-fimc3.o | ||
| 33 | obj-$(CONFIG_S5P_DEV_FIMD0) += dev-fimd0.o | ||
| 34 | obj-$(CONFIG_S5P_DEV_ONENAND) += dev-onenand.o | ||
| 35 | obj-$(CONFIG_S5P_DEV_CSIS0) += dev-csis0.o | ||
| 36 | obj-$(CONFIG_S5P_DEV_CSIS1) += dev-csis1.o | ||
| 37 | obj-$(CONFIG_S5P_DEV_USB_EHCI) += dev-ehci.o | ||
| 38 | obj-$(CONFIG_S5P_SETUP_MIPIPHY) += setup-mipiphy.o | ||
diff --git a/arch/arm/plat-s5p/clock.c b/arch/arm/plat-s5p/clock.c new file mode 100644 index 00000000000..5f84a3f13ef --- /dev/null +++ b/arch/arm/plat-s5p/clock.c | |||
| @@ -0,0 +1,228 @@ | |||
| 1 | /* linux/arch/arm/plat-s5p/clock.c | ||
| 2 | * | ||
| 3 | * Copyright 2009 Samsung Electronics Co., Ltd. | ||
| 4 | * http://www.samsung.com/ | ||
| 5 | * | ||
| 6 | * S5P - Common clock support | ||
| 7 | * | ||
