You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge tag 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull arm soc-specific updates from Arnd Bergmann:
"This is stuff that does not fit well into another category and in
particular is not related to a particular board. The largest part in
here is extending the am33xx support in the omap platform."
Fix up trivial conflicts in arch/arm/mach-{imx/mach-mx35_3ds.c, tegra/Makefile}
* tag 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (74 commits)
ARM: LPC32xx: Add PWM support
ARM: LPC32xx: Add PWM clock
ARM: LPC32xx: Set system serial based on cpu unique id
ARM: vexpress: Config option for early printk console
ARM: vexpress: Add Device Tree for V2P-CA15_CA7 core tile
ARM: vexpress: Convert V2P-CA15 Device Tree to 64 bit addresses
ARM: vexpress: Add fixed regulator for SMSC
ARM: vexpress: Add missing SP804 interrupt in motherboard's DTS files
ARM: vexpress: Initial common clock support
ARM: SAMSUNG: Introduce Kconfig variable for Samsung custom clk API
ARM: EXYNOS: Add missing static storage class specifier in pmu.c file
ARM: EXYNOS: Make combiner_init function static
ARM: EXYNOS: Update HSOTG PHY clock setting for EXYNOS4X12
ARM: versatile: Make plat-versatile clock optional
ARM: vexpress: Check master site in daughterboard's sysctl operations
ARM: vexpress: remove automatic errata workaround selection
ARM: LPC32xx: Adjust to pl08x DMA interface changes
ARM: EXYNOS: Clear SYS_WDTRESET bit to use watchdog reset
ARM: imx: fix mx51 ehci setup errors
ARM: imx: make ehci power/oc polarities configurable
...
This commit is contained in:
+7
-4
@@ -260,6 +260,7 @@ config ARCH_INTEGRATOR
|
|||||||
select ICST
|
select ICST
|
||||||
select GENERIC_CLOCKEVENTS
|
select GENERIC_CLOCKEVENTS
|
||||||
select PLAT_VERSATILE
|
select PLAT_VERSATILE
|
||||||
|
select PLAT_VERSATILE_CLOCK
|
||||||
select PLAT_VERSATILE_FPGA_IRQ
|
select PLAT_VERSATILE_FPGA_IRQ
|
||||||
select NEED_MACH_IO_H
|
select NEED_MACH_IO_H
|
||||||
select NEED_MACH_MEMORY_H
|
select NEED_MACH_MEMORY_H
|
||||||
@@ -277,6 +278,7 @@ config ARCH_REALVIEW
|
|||||||
select GENERIC_CLOCKEVENTS
|
select GENERIC_CLOCKEVENTS
|
||||||
select ARCH_WANT_OPTIONAL_GPIOLIB
|
select ARCH_WANT_OPTIONAL_GPIOLIB
|
||||||
select PLAT_VERSATILE
|
select PLAT_VERSATILE
|
||||||
|
select PLAT_VERSATILE_CLOCK
|
||||||
select PLAT_VERSATILE_CLCD
|
select PLAT_VERSATILE_CLCD
|
||||||
select ARM_TIMER_SP804
|
select ARM_TIMER_SP804
|
||||||
select GPIO_PL061 if GPIOLIB
|
select GPIO_PL061 if GPIOLIB
|
||||||
@@ -295,6 +297,7 @@ config ARCH_VERSATILE
|
|||||||
select ARCH_WANT_OPTIONAL_GPIOLIB
|
select ARCH_WANT_OPTIONAL_GPIOLIB
|
||||||
select NEED_MACH_IO_H if PCI
|
select NEED_MACH_IO_H if PCI
|
||||||
select PLAT_VERSATILE
|
select PLAT_VERSATILE
|
||||||
|
select PLAT_VERSATILE_CLOCK
|
||||||
select PLAT_VERSATILE_CLCD
|
select PLAT_VERSATILE_CLCD
|
||||||
select PLAT_VERSATILE_FPGA_IRQ
|
select PLAT_VERSATILE_FPGA_IRQ
|
||||||
select ARM_TIMER_SP804
|
select ARM_TIMER_SP804
|
||||||
@@ -307,7 +310,7 @@ config ARCH_VEXPRESS
|
|||||||
select ARM_AMBA
|
select ARM_AMBA
|
||||||
select ARM_TIMER_SP804
|
select ARM_TIMER_SP804
|
||||||
select CLKDEV_LOOKUP
|
select CLKDEV_LOOKUP
|
||||||
select HAVE_MACH_CLKDEV
|
select COMMON_CLK
|
||||||
select GENERIC_CLOCKEVENTS
|
select GENERIC_CLOCKEVENTS
|
||||||
select HAVE_CLK
|
select HAVE_CLK
|
||||||
select HAVE_PATA_PLATFORM
|
select HAVE_PATA_PLATFORM
|
||||||
@@ -315,6 +318,7 @@ config ARCH_VEXPRESS
|
|||||||
select NO_IOPORT
|
select NO_IOPORT
|
||||||
select PLAT_VERSATILE
|
select PLAT_VERSATILE
|
||||||
select PLAT_VERSATILE_CLCD
|
select PLAT_VERSATILE_CLCD
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
help
|
help
|
||||||
This enables support for the ARM Ltd Versatile Express boards.
|
This enables support for the ARM Ltd Versatile Express boards.
|
||||||
|
|
||||||
@@ -567,6 +571,7 @@ config ARCH_LPC32XX
|
|||||||
select CLKDEV_LOOKUP
|
select CLKDEV_LOOKUP
|
||||||
select GENERIC_CLOCKEVENTS
|
select GENERIC_CLOCKEVENTS
|
||||||
select USE_OF
|
select USE_OF
|
||||||
|
select HAVE_PWM
|
||||||
help
|
help
|
||||||
Support for the NXP LPC32XX family of processors
|
Support for the NXP LPC32XX family of processors
|
||||||
|
|
||||||
@@ -913,7 +918,7 @@ config ARCH_NOMADIK
|
|||||||
select ARM_AMBA
|
select ARM_AMBA
|
||||||
select ARM_VIC
|
select ARM_VIC
|
||||||
select CPU_ARM926T
|
select CPU_ARM926T
|
||||||
select CLKDEV_LOOKUP
|
select COMMON_CLK
|
||||||
select GENERIC_CLOCKEVENTS
|
select GENERIC_CLOCKEVENTS
|
||||||
select PINCTRL
|
select PINCTRL
|
||||||
select MIGHT_HAVE_CACHE_L2X0
|
select MIGHT_HAVE_CACHE_L2X0
|
||||||
@@ -1022,8 +1027,6 @@ source "arch/arm/mach-kirkwood/Kconfig"
|
|||||||
|
|
||||||
source "arch/arm/mach-ks8695/Kconfig"
|
source "arch/arm/mach-ks8695/Kconfig"
|
||||||
|
|
||||||
source "arch/arm/mach-lpc32xx/Kconfig"
|
|
||||||
|
|
||||||
source "arch/arm/mach-msm/Kconfig"
|
source "arch/arm/mach-msm/Kconfig"
|
||||||
|
|
||||||
source "arch/arm/mach-mv78xx0/Kconfig"
|
source "arch/arm/mach-mv78xx0/Kconfig"
|
||||||
|
|||||||
@@ -310,6 +310,32 @@ choice
|
|||||||
The uncompressor code port configuration is now handled
|
The uncompressor code port configuration is now handled
|
||||||
by CONFIG_S3C_LOWLEVEL_UART_PORT.
|
by CONFIG_S3C_LOWLEVEL_UART_PORT.
|
||||||
|
|
||||||
|
config DEBUG_VEXPRESS_UART0_DETECT
|
||||||
|
bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
|
||||||
|
depends on ARCH_VEXPRESS && CPU_CP15_MMU
|
||||||
|
help
|
||||||
|
This option enables a simple heuristic which tries to determine
|
||||||
|
the motherboard's memory map variant (original or RS1) and then
|
||||||
|
choose the relevant UART0 base address.
|
||||||
|
|
||||||
|
Note that this will only work with standard A-class core tiles,
|
||||||
|
and may fail with non-standard SMM or custom software models.
|
||||||
|
|
||||||
|
config DEBUG_VEXPRESS_UART0_CA9
|
||||||
|
bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)"
|
||||||
|
depends on ARCH_VEXPRESS
|
||||||
|
help
|
||||||
|
This option selects UART0 at 0x10009000. Except for custom models,
|
||||||
|
this applies only to the V2P-CA9 tile.
|
||||||
|
|
||||||
|
config DEBUG_VEXPRESS_UART0_RS1
|
||||||
|
bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)"
|
||||||
|
depends on ARCH_VEXPRESS
|
||||||
|
help
|
||||||
|
This option selects UART0 at 0x1c090000. This applies to most
|
||||||
|
of the tiles using the RS1 memory map, including all new A-class
|
||||||
|
core tiles, FPGA-based SMMs and software models.
|
||||||
|
|
||||||
config DEBUG_LL_UART_NONE
|
config DEBUG_LL_UART_NONE
|
||||||
bool "No low-level debugging UART"
|
bool "No low-level debugging UART"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -0,0 +1,157 @@
|
|||||||
|
/*
|
||||||
|
* Embedded Artists LPC3250 board
|
||||||
|
*
|
||||||
|
* Copyright 2012 Roland Stigge <stigge@antcom.de>
|
||||||
|
*
|
||||||
|
* The code contained herein is licensed under the GNU General Public
|
||||||
|
* License. You may obtain a copy of the GNU General Public License
|
||||||
|
* Version 2 or later at the following locations:
|
||||||
|
*
|
||||||
|
* http://www.opensource.org/licenses/gpl-license.html
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
/include/ "lpc32xx.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "Embedded Artists LPC3250 board based on NXP LPC3250";
|
||||||
|
compatible = "ea,ea3250", "nxp,lpc3250";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
memory {
|
||||||
|
device_type = "memory";
|
||||||
|
reg = <0 0x4000000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ahb {
|
||||||
|
mac: ethernet@31060000 {
|
||||||
|
phy-mode = "rmii";
|
||||||
|
use-iram;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Here, choose exactly one from: ohci, usbd */
|
||||||
|
ohci@31020000 {
|
||||||
|
transceiver = <&isp1301>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
usbd@31020000 {
|
||||||
|
transceiver = <&isp1301>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* 128MB Flash via SLC NAND controller */
|
||||||
|
slc: flash@20020000 {
|
||||||
|
status = "okay";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
nxp,wdr-clks = <14>;
|
||||||
|
nxp,wwidth = <260000000>;
|
||||||
|
nxp,whold = <104000000>;
|
||||||
|
nxp,wsetup = <200000000>;
|
||||||
|
nxp,rdr-clks = <14>;
|
||||||
|
nxp,rwidth = <34666666>;
|
||||||
|
nxp,rhold = <104000000>;
|
||||||
|
nxp,rsetup = <200000000>;
|
||||||
|
nand-on-flash-bbt;
|
||||||
|
gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */
|
||||||
|
|
||||||
|
mtd0@00000000 {
|
||||||
|
label = "ea3250-boot";
|
||||||
|
reg = <0x00000000 0x00080000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
mtd1@00080000 {
|
||||||
|
label = "ea3250-uboot";
|
||||||
|
reg = <0x00080000 0x000c0000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
|
|
||||||
|
mtd2@00140000 {
|
||||||
|
label = "ea3250-kernel";
|
||||||
|
reg = <0x00140000 0x00400000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mtd3@00540000 {
|
||||||
|
label = "ea3250-rootfs";
|
||||||
|
reg = <0x00540000 0x07ac0000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
apb {
|
||||||
|
uart5: serial@40090000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
uart3: serial@40080000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
uart6: serial@40098000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
i2c1: i2c@400A0000 {
|
||||||
|
clock-frequency = <100000>;
|
||||||
|
|
||||||
|
eeprom@50 {
|
||||||
|
compatible = "at,24c256";
|
||||||
|
reg = <0x50>;
|
||||||
|
};
|
||||||
|
|
||||||
|
eeprom@57 {
|
||||||
|
compatible = "at,24c64";
|
||||||
|
reg = <0x57>;
|
||||||
|
};
|
||||||
|
|
||||||
|
uda1380: uda1380@18 {
|
||||||
|
compatible = "nxp,uda1380";
|
||||||
|
reg = <0x18>;
|
||||||
|
power-gpio = <&gpio 0x59 0>;
|
||||||
|
reset-gpio = <&gpio 0x51 0>;
|
||||||
|
dac-clk = "wspll";
|
||||||
|
};
|
||||||
|
|
||||||
|
pca9532: pca9532@60 {
|
||||||
|
compatible = "nxp,pca9532";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
reg = <0x60>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
i2c2: i2c@400A8000 {
|
||||||
|
clock-frequency = <100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
i2cusb: i2c@31020300 {
|
||||||
|
clock-frequency = <100000>;
|
||||||
|
|
||||||
|
isp1301: usb-transceiver@2d {
|
||||||
|
compatible = "nxp,isp1301";
|
||||||
|
reg = <0x2d>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sd@20098000 {
|
||||||
|
wp-gpios = <&pca9532 5 0>;
|
||||||
|
cd-gpios = <&pca9532 4 0>;
|
||||||
|
cd-inverted;
|
||||||
|
bus-width = <4>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fab {
|
||||||
|
uart1: serial@40014000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -35,13 +35,14 @@
|
|||||||
slc: flash@20020000 {
|
slc: flash@20020000 {
|
||||||
compatible = "nxp,lpc3220-slc";
|
compatible = "nxp,lpc3220-slc";
|
||||||
reg = <0x20020000 0x1000>;
|
reg = <0x20020000 0x1000>;
|
||||||
status = "disable"
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
mlc: flash@200B0000 {
|
mlc: flash@200a8000 {
|
||||||
compatible = "nxp,lpc3220-mlc";
|
compatible = "nxp,lpc3220-mlc";
|
||||||
reg = <0x200B0000 0x1000>;
|
reg = <0x200a8000 0x11000>;
|
||||||
status = "disable"
|
interrupts = <11 0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
dma@31000000 {
|
dma@31000000 {
|
||||||
@@ -57,21 +58,21 @@
|
|||||||
compatible = "nxp,ohci-nxp", "usb-ohci";
|
compatible = "nxp,ohci-nxp", "usb-ohci";
|
||||||
reg = <0x31020000 0x300>;
|
reg = <0x31020000 0x300>;
|
||||||
interrupts = <0x3b 0>;
|
interrupts = <0x3b 0>;
|
||||||
status = "disable"
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
usbd@31020000 {
|
usbd@31020000 {
|
||||||
compatible = "nxp,lpc3220-udc";
|
compatible = "nxp,lpc3220-udc";
|
||||||
reg = <0x31020000 0x300>;
|
reg = <0x31020000 0x300>;
|
||||||
interrupts = <0x3d 0>, <0x3e 0>, <0x3c 0>, <0x3a 0>;
|
interrupts = <0x3d 0>, <0x3e 0>, <0x3c 0>, <0x3a 0>;
|
||||||
status = "disable"
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
clcd@31040000 {
|
clcd@31040000 {
|
||||||
compatible = "arm,pl110", "arm,primecell";
|
compatible = "arm,pl110", "arm,primecell";
|
||||||
reg = <0x31040000 0x1000>;
|
reg = <0x31040000 0x1000>;
|
||||||
interrupts = <0x0e 0>;
|
interrupts = <0x0e 0>;
|
||||||
status = "disable"
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
mac: ethernet@31060000 {
|
mac: ethernet@31060000 {
|
||||||
@@ -114,9 +115,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
sd@20098000 {
|
sd@20098000 {
|
||||||
compatible = "arm,pl180", "arm,primecell";
|
compatible = "arm,pl18x", "arm,primecell";
|
||||||
reg = <0x20098000 0x1000>;
|
reg = <0x20098000 0x1000>;
|
||||||
interrupts = <0x0f 0>, <0x0d 0>;
|
interrupts = <0x0f 0>, <0x0d 0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
i2s1: i2s@2009C000 {
|
i2s1: i2s@2009C000 {
|
||||||
@@ -124,24 +126,42 @@
|
|||||||
reg = <0x2009C000 0x1000>;
|
reg = <0x2009C000 0x1000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* UART5 first since it is the default console, ttyS0 */
|
||||||
|
uart5: serial@40090000 {
|
||||||
|
/* actually, ns16550a w/ 64 byte fifos! */
|
||||||
|
compatible = "nxp,lpc3220-uart";
|
||||||
|
reg = <0x40090000 0x1000>;
|
||||||
|
interrupts = <9 0>;
|
||||||
|
clock-frequency = <13000000>;
|
||||||
|
reg-shift = <2>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
uart3: serial@40080000 {
|
uart3: serial@40080000 {
|
||||||
compatible = "nxp,serial";
|
compatible = "nxp,lpc3220-uart";
|
||||||
reg = <0x40080000 0x1000>;
|
reg = <0x40080000 0x1000>;
|
||||||
|
interrupts = <7 0>;
|
||||||
|
clock-frequency = <13000000>;
|
||||||
|
reg-shift = <2>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
uart4: serial@40088000 {
|
uart4: serial@40088000 {
|
||||||
compatible = "nxp,serial";
|
compatible = "nxp,lpc3220-uart";
|
||||||
reg = <0x40088000 0x1000>;
|
reg = <0x40088000 0x1000>;
|
||||||
};
|
interrupts = <8 0>;
|
||||||
|
clock-frequency = <13000000>;
|
||||||
uart5: serial@40090000 {
|
reg-shift = <2>;
|
||||||
compatible = "nxp,serial";
|
status = "disabled";
|
||||||
reg = <0x40090000 0x1000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
uart6: serial@40098000 {
|
uart6: serial@40098000 {
|
||||||
compatible = "nxp,serial";
|
compatible = "nxp,lpc3220-uart";
|
||||||
reg = <0x40098000 0x1000>;
|
reg = <0x40098000 0x1000>;
|
||||||
|
interrupts = <10 0>;
|
||||||
|
clock-frequency = <13000000>;
|
||||||
|
reg-shift = <2>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c1: i2c@400A0000 {
|
i2c1: i2c@400A0000 {
|
||||||
@@ -192,18 +212,24 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
uart1: serial@40014000 {
|
uart1: serial@40014000 {
|
||||||
compatible = "nxp,serial";
|
compatible = "nxp,lpc3220-hsuart";
|
||||||
reg = <0x40014000 0x1000>;
|
reg = <0x40014000 0x1000>;
|
||||||
|
interrupts = <26 0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
uart2: serial@40018000 {
|
uart2: serial@40018000 {
|
||||||
compatible = "nxp,serial";
|
compatible = "nxp,lpc3220-hsuart";
|
||||||
reg = <0x40018000 0x1000>;
|
reg = <0x40018000 0x1000>;
|
||||||
|
interrupts = <25 0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
uart7: serial@4001C000 {
|
uart7: serial@4001c000 {
|
||||||
compatible = "nxp,serial";
|
compatible = "nxp,lpc3220-hsuart";
|
||||||
reg = <0x4001C000 0x1000>;
|
reg = <0x4001c000 0x1000>;
|
||||||
|
interrupts = <24 0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
rtc@40024000 {
|
rtc@40024000 {
|
||||||
@@ -235,19 +261,21 @@
|
|||||||
compatible = "nxp,lpc3220-adc";
|
compatible = "nxp,lpc3220-adc";
|
||||||
reg = <0x40048000 0x1000>;
|
reg = <0x40048000 0x1000>;
|
||||||
interrupts = <0x27 0>;
|
interrupts = <0x27 0>;
|
||||||
status = "disable"
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
tsc@40048000 {
|
tsc@40048000 {
|
||||||
compatible = "nxp,lpc3220-tsc";
|
compatible = "nxp,lpc3220-tsc";
|
||||||
reg = <0x40048000 0x1000>;
|
reg = <0x40048000 0x1000>;
|
||||||
interrupts = <0x27 0>;
|
interrupts = <0x27 0>;
|
||||||
status = "disable"
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
key@40050000 {
|
key@40050000 {
|
||||||
compatible = "nxp,lpc3220-key";
|
compatible = "nxp,lpc3220-key";
|
||||||
reg = <0x40050000 0x1000>;
|
reg = <0x40050000 0x1000>;
|
||||||
|
interrupts = <54 0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -54,6 +54,17 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
nxp,wdr-clks = <14>;
|
||||||
|
nxp,wwidth = <40000000>;
|
||||||
|
nxp,whold = <100000000>;
|
||||||
|
nxp,wsetup = <100000000>;
|
||||||
|
nxp,rdr-clks = <14>;
|
||||||
|
nxp,rwidth = <40000000>;
|
||||||
|
nxp,rhold = <66666666>;
|
||||||
|
nxp,rsetup = <100000000>;
|
||||||
|
nand-on-flash-bbt;
|
||||||
|
gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */
|
||||||
|
|
||||||
mtd0@00000000 {
|
mtd0@00000000 {
|
||||||
label = "phy3250-boot";
|
label = "phy3250-boot";
|
||||||
reg = <0x00000000 0x00064000>;
|
reg = <0x00000000 0x00064000>;
|
||||||
@@ -83,6 +94,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
apb {
|
apb {
|
||||||
|
uart5: serial@40090000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
uart3: serial@40080000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
i2c1: i2c@400A0000 {
|
i2c1: i2c@400A0000 {
|
||||||
clock-frequency = <100000>;
|
clock-frequency = <100000>;
|
||||||
|
|
||||||
@@ -114,16 +133,58 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ssp0: ssp@20084000 {
|
ssp0: ssp@20084000 {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
pl022,num-chipselects = <1>;
|
||||||
|
cs-gpios = <&gpio 3 5 0>;
|
||||||
|
|
||||||
eeprom: at25@0 {
|
eeprom: at25@0 {
|
||||||
|
pl022,hierarchy = <0>;
|
||||||
|
pl022,interface = <0>;
|
||||||
|
pl022,slave-tx-disable = <0>;
|
||||||
|
pl022,com-mode = <0>;
|
||||||
|
pl022,rx-level-trig = <1>;
|
||||||
|
pl022,tx-level-trig = <1>;
|
||||||
|
pl022,ctrl-len = <11>;
|
||||||
|
pl022,wait-state = <0>;
|
||||||
|
pl022,duplex = <0>;
|
||||||
|
|
||||||
|
at25,byte-len = <0x8000>;
|
||||||
|
at25,addr-mode = <2>;
|
||||||
|
at25,page-size = <64>;
|
||||||
|
|
||||||
compatible = "atmel,at25";
|
compatible = "atmel,at25";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <5000000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sd@20098000 {
|
||||||
|
wp-gpios = <&gpio 3 0 0>;
|
||||||
|
cd-gpios = <&gpio 3 1 0>;
|
||||||
|
cd-inverted;
|
||||||
|
bus-width = <4>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fab {
|
fab {
|
||||||
|
uart2: serial@40018000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
tsc@40048000 {
|
tsc@40048000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
key@40050000 {
|
||||||
|
status = "okay";
|
||||||
|
keypad,num-rows = <1>;
|
||||||
|
keypad,num-columns = <1>;
|
||||||
|
nxp,debounce-delay-ms = <3>;
|
||||||
|
nxp,scan-delay-ms = <34>;
|
||||||
|
linux,keymap = <0x00000002>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,8 @@
|
|||||||
reg-io-width = <4>;
|
reg-io-width = <4>;
|
||||||
smsc,irq-active-high;
|
smsc,irq-active-high;
|
||||||
smsc,irq-push-pull;
|
smsc,irq-push-pull;
|
||||||
|
vdd33a-supply = <&v2m_fixed_3v3>;
|
||||||
|
vddvario-supply = <&v2m_fixed_3v3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
usb@2,03000000 {
|
usb@2,03000000 {
|
||||||
@@ -157,6 +159,7 @@
|
|||||||
v2m_timer23: timer@120000 {
|
v2m_timer23: timer@120000 {
|
||||||
compatible = "arm,sp804", "arm,primecell";
|
compatible = "arm,sp804", "arm,primecell";
|
||||||
reg = <0x120000 0x1000>;
|
reg = <0x120000 0x1000>;
|
||||||
|
interrupts = <3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* DVI I2C bus */
|
/* DVI I2C bus */
|
||||||
@@ -197,5 +200,13 @@
|
|||||||
interrupts = <14>;
|
interrupts = <14>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
v2m_fixed_3v3: fixedregulator@0 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "3V3";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-always-on;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -54,6 +54,8 @@
|
|||||||
reg-io-width = <4>;
|
reg-io-width = <4>;
|
||||||
smsc,irq-active-high;
|
smsc,irq-active-high;
|
||||||
smsc,irq-push-pull;
|
smsc,irq-push-pull;
|
||||||
|
vdd33a-supply = <&v2m_fixed_3v3>;
|
||||||
|
vddvario-supply = <&v2m_fixed_3v3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
usb@3,03000000 {
|
usb@3,03000000 {
|
||||||
@@ -156,6 +158,7 @@
|
|||||||
v2m_timer23: timer@12000 {
|
v2m_timer23: timer@12000 {
|
||||||
compatible = "arm,sp804", "arm,primecell";
|
compatible = "arm,sp804", "arm,primecell";
|
||||||
reg = <0x12000 0x1000>;
|
reg = <0x12000 0x1000>;
|
||||||
|
interrupts = <3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* DVI I2C bus */
|
/* DVI I2C bus */
|
||||||
@@ -196,5 +199,13 @@
|
|||||||
interrupts = <14>;
|
interrupts = <14>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
v2m_fixed_3v3: fixedregulator@0 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "3V3";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-always-on;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
arm,hbi = <0x237>;
|
arm,hbi = <0x237>;
|
||||||
compatible = "arm,vexpress,v2p-ca15,tc1", "arm,vexpress,v2p-ca15", "arm,vexpress";
|
compatible = "arm,vexpress,v2p-ca15,tc1", "arm,vexpress,v2p-ca15", "arm,vexpress";
|
||||||
interrupt-parent = <&gic>;
|
interrupt-parent = <&gic>;
|
||||||
#address-cells = <1>;
|
#address-cells = <2>;
|
||||||
#size-cells = <1>;
|
#size-cells = <2>;
|
||||||
|
|
||||||
chosen { };
|
chosen { };
|
||||||
|
|
||||||
@@ -47,23 +47,23 @@
|
|||||||
|
|
||||||
memory@80000000 {
|
memory@80000000 {
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x80000000 0x40000000>;
|
reg = <0 0x80000000 0 0x40000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
hdlcd@2b000000 {
|
hdlcd@2b000000 {
|
||||||
compatible = "arm,hdlcd";
|
compatible = "arm,hdlcd";
|
||||||
reg = <0x2b000000 0x1000>;
|
reg = <0 0x2b000000 0 0x1000>;
|
||||||
interrupts = <0 85 4>;
|
interrupts = <0 85 4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
memory-controller@2b0a0000 {
|
memory-controller@2b0a0000 {
|
||||||
compatible = "arm,pl341", "arm,primecell";
|
compatible = "arm,pl341", "arm,primecell";
|
||||||
reg = <0x2b0a0000 0x1000>;
|
reg = <0 0x2b0a0000 0 0x1000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
wdt@2b060000 {
|
wdt@2b060000 {
|
||||||
compatible = "arm,sp805", "arm,primecell";
|
compatible = "arm,sp805", "arm,primecell";
|
||||||
reg = <0x2b060000 0x1000>;
|
reg = <0 0x2b060000 0 0x1000>;
|
||||||
interrupts = <98>;
|
interrupts = <98>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -72,23 +72,23 @@
|
|||||||
#interrupt-cells = <3>;
|
#interrupt-cells = <3>;
|
||||||
#address-cells = <0>;
|
#address-cells = <0>;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
reg = <0x2c001000 0x1000>,
|
reg = <0 0x2c001000 0 0x1000>,
|
||||||
<0x2c002000 0x1000>,
|
<0 0x2c002000 0 0x1000>,
|
||||||
<0x2c004000 0x2000>,
|
<0 0x2c004000 0 0x2000>,
|
||||||
<0x2c006000 0x2000>;
|
<0 0x2c006000 0 0x2000>;
|
||||||
interrupts = <1 9 0xf04>;
|
interrupts = <1 9 0xf04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
memory-controller@7ffd0000 {
|
memory-controller@7ffd0000 {
|
||||||
compatible = "arm,pl354", "arm,primecell";
|
compatible = "arm,pl354", "arm,primecell";
|
||||||
reg = <0x7ffd0000 0x1000>;
|
reg = <0 0x7ffd0000 0 0x1000>;
|
||||||
interrupts = <0 86 4>,
|
interrupts = <0 86 4>,
|
||||||
<0 87 4>;
|
<0 87 4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
dma@7ffb0000 {
|
dma@7ffb0000 {
|
||||||
compatible = "arm,pl330", "arm,primecell";
|
compatible = "arm,pl330", "arm,primecell";
|
||||||
reg = <0x7ffb0000 0x1000>;
|
reg = <0 0x7ffb0000 0 0x1000>;
|
||||||
interrupts = <0 92 4>,
|
interrupts = <0 92 4>,
|
||||||
<0 88 4>,
|
<0 88 4>,
|
||||||
<0 89 4>,
|
<0 89 4>,
|
||||||
@@ -111,12 +111,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
motherboard {
|
motherboard {
|
||||||
ranges = <0 0 0x08000000 0x04000000>,
|
ranges = <0 0 0 0x08000000 0x04000000>,
|
||||||
<1 0 0x14000000 0x04000000>,
|
<1 0 0 0x14000000 0x04000000>,
|
||||||
<2 0 0x18000000 0x04000000>,
|
<2 0 0 0x18000000 0x04000000>,
|
||||||
<3 0 0x1c000000 0x04000000>,
|
<3 0 0 0x1c000000 0x04000000>,
|
||||||
<4 0 0x0c000000 0x04000000>,
|
<4 0 0 0x0c000000 0x04000000>,
|
||||||
<5 0 0x10000000 0x04000000>;
|
<5 0 0 0x10000000 0x04000000>;
|
||||||
|
|
||||||
interrupt-map-mask = <0 0 63>;
|
interrupt-map-mask = <0 0 63>;
|
||||||
interrupt-map = <0 0 0 &gic 0 0 4>,
|
interrupt-map = <0 0 0 &gic 0 0 4>,
|
||||||
|
|||||||
@@ -0,0 +1,188 @@
|
|||||||
|
/*
|
||||||
|
* ARM Ltd. Versatile Express
|
||||||
|
*
|
||||||
|
* CoreTile Express A15x2 A7x3
|
||||||
|
* Cortex-A15_A7 MPCore (V2P-CA15_A7)
|
||||||
|
*
|
||||||
|
* HBI-0249A
|
||||||
|
*/
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "V2P-CA15_CA7";
|
||||||
|
arm,hbi = <0x249>;
|
||||||
|
compatible = "arm,vexpress,v2p-ca15_a7", "arm,vexpress";
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
#address-cells = <2>;
|
||||||
|
#size-cells = <2>;
|
||||||
|
|
||||||
|
chosen { };
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
serial0 = &v2m_serial0;
|
||||||
|
serial1 = &v2m_serial1;
|
||||||
|
serial2 = &v2m_serial2;
|
||||||
|
serial3 = &v2m_serial3;
|
||||||
|
i2c0 = &v2m_i2c_dvi;
|
||||||
|
i2c1 = &v2m_i2c_pcie;
|
||||||
|
};
|
||||||
|
|
||||||
|
cpus {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
cpu0: cpu@0 {
|
||||||
|
device_type = "cpu";
|
||||||
|
compatible = "arm,cortex-a15";
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu1: cpu@1 {
|
||||||
|
device_type = "cpu";
|
||||||
|
compatible = "arm,cortex-a15";
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* A7s disabled till big.LITTLE patches are available...
|
||||||
|
cpu2: cpu@2 {
|
||||||
|
device_type = "cpu";
|
||||||
|
compatible = "arm,cortex-a7";
|
||||||
|
reg = <0x100>;
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu3: cpu@3 {
|
||||||
|
device_type = "cpu";
|
||||||
|
compatible = "arm,cortex-a7";
|
||||||
|
reg = <0x101>;
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu4: cpu@4 {
|
||||||
|
device_type = "cpu";
|
||||||
|
compatible = "arm,cortex-a7";
|
||||||
|
reg = <0x102>;
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
|
||||||
|
memory@80000000 {
|
||||||
|
device_type = "memory";
|
||||||
|
reg = <0 0x80000000 0 0x40000000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
wdt@2a490000 {
|
||||||
|
compatible = "arm,sp805", "arm,primecell";
|
||||||
|
reg = <0 0x2a490000 0 0x1000>;
|
||||||
|
interrupts = <98>;
|
||||||
|
};
|
||||||
|
|
||||||
|
hdlcd@2b000000 {
|
||||||
|
compatible = "arm,hdlcd";
|
||||||
|
reg = <0 0x2b000000 0 0x1000>;
|
||||||
|
interrupts = <0 85 4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
memory-controller@2b0a0000 {
|
||||||
|
compatible = "arm,pl341", "arm,primecell";
|
||||||
|
reg = <0 0x2b0a0000 0 0x1000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
gic: interrupt-controller@2c001000 {
|
||||||
|
compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
|
||||||
|
#interrupt-cells = <3>;
|
||||||
|
#address-cells = <0>;
|
||||||
|
interrupt-controller;
|
||||||
|
reg = <0 0x2c001000 0 0x1000>,
|
||||||
|
<0 0x2c002000 0 0x1000>,
|
||||||
|
<0 0x2c004000 0 0x2000>,
|
||||||
|
<0 0x2c006000 0 0x2000>;
|
||||||
|
interrupts = <1 9 0xf04>;
|
||||||
|
};
|
||||||
|
|
||||||
|
memory-controller@7ffd0000 {
|
||||||
|
compatible = "arm,pl354", "arm,primecell";
|
||||||
|
reg = <0 0x7ffd0000 0 0x1000>;
|
||||||
|
interrupts = <0 86 4>,
|
||||||
|
<0 87 4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
dma@7ff00000 {
|
||||||
|
compatible = "arm,pl330", "arm,primecell";
|
||||||
|
reg = <0 0x7ff00000 0 0x1000>;
|
||||||
|
interrupts = <0 92 4>,
|
||||||
|
<0 88 4>,
|
||||||
|
<0 89 4>,
|
||||||
|
<0 90 4>,
|
||||||
|
<0 91 4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
timer {
|
||||||
|
compatible = "arm,armv7-timer";
|
||||||
|
interrupts = <1 13 0xf08>,
|
||||||
|
<1 14 0xf08>,
|
||||||
|
<1 11 0xf08>,
|
||||||
|
<1 10 0xf08>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pmu {
|
||||||
|
compatible = "arm,cortex-a15-pmu", "arm,cortex-a9-pmu";
|
||||||
|
interrupts = <0 68 4>,
|
||||||
|
<0 69 4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
motherboard {
|
||||||
|
ranges = <0 0 0 0x08000000 0x04000000>,
|
||||||
|
<1 0 0 0x14000000 0x04000000>,
|
||||||
|
<2 0 0 0x18000000 0x04000000>,
|
||||||
|
<3 0 0 0x1c000000 0x04000000>,
|
||||||
|
<4 0 0 0x0c000000 0x04000000>,
|
||||||
|
<5 0 0 0x10000000 0x04000000>;
|
||||||
|
|
||||||
|
interrupt-map-mask = <0 0 63>;
|
||||||
|
interrupt-map = <0 0 0 &gic 0 0 4>,
|
||||||
|
<0 0 1 &gic 0 1 4>,
|
||||||
|
<0 0 2 &gic 0 2 4>,
|
||||||
|
<0 0 3 &gic 0 3 4>,
|
||||||
|
<0 0 4 &gic 0 4 4>,
|
||||||
|
<0 0 5 &gic 0 5 4>,
|
||||||
|
<0 0 6 &gic 0 6 4>,
|
||||||
|
<0 0 7 &gic 0 7 4>,
|
||||||
|
<0 0 8 &gic 0 8 4>,
|
||||||
|
<0 0 9 &gic 0 9 4>,
|
||||||
|
<0 0 10 &gic 0 10 4>,
|
||||||
|
<0 0 11 &gic 0 11 4>,
|
||||||
|
<0 0 12 &gic 0 12 4>,
|
||||||
|
<0 0 13 &gic 0 13 4>,
|
||||||
|
<0 0 14 &gic 0 14 4>,
|
||||||
|
<0 0 15 &gic 0 15 4>,
|
||||||
|
<0 0 16 &gic 0 16 4>,
|
||||||
|
<0 0 17 &gic 0 17 4>,
|
||||||
|
<0 0 18 &gic 0 18 4>,
|
||||||
|
<0 0 19 &gic 0 19 4>,
|
||||||
|
<0 0 20 &gic 0 20 4>,
|
||||||
|
<0 0 21 &gic 0 21 4>,
|
||||||
|
<0 0 22 &gic 0 22 4>,
|
||||||
|
<0 0 23 &gic 0 23 4>,
|
||||||
|
<0 0 24 &gic 0 24 4>,
|
||||||
|
<0 0 25 &gic 0 25 4>,
|
||||||
|
<0 0 26 &gic 0 26 4>,
|
||||||
|
<0 0 27 &gic 0 27 4>,
|
||||||
|
<0 0 28 &gic 0 28 4>,
|
||||||
|
<0 0 29 &gic 0 29 4>,
|
||||||
|
<0 0 30 &gic 0 30 4>,
|
||||||
|
<0 0 31 &gic 0 31 4>,
|
||||||
|
<0 0 32 &gic 0 32 4>,
|
||||||
|
<0 0 33 &gic 0 33 4>,
|
||||||
|
<0 0 34 &gic 0 34 4>,
|
||||||
|
<0 0 35 &gic 0 35 4>,
|
||||||
|
<0 0 36 &gic 0 36 4>,
|
||||||
|
<0 0 37 &gic 0 37 4>,
|
||||||
|
<0 0 38 &gic 0 38 4>,
|
||||||
|
<0 0 39 &gic 0 39 4>,
|
||||||
|
<0 0 40 &gic 0 40 4>,
|
||||||
|
<0 0 41 &gic 0 41 4>,
|
||||||
|
<0 0 42 &gic 0 42 4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/include/ "vexpress-v2m-rs1.dtsi"
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
CONFIG_EXPERIMENTAL=y
|
CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_SYSVIPC=y
|
CONFIG_SYSVIPC=y
|
||||||
|
CONFIG_NO_HZ=y
|
||||||
|
CONFIG_HIGH_RES_TIMERS=y
|
||||||
CONFIG_IKCONFIG=y
|
CONFIG_IKCONFIG=y
|
||||||
CONFIG_IKCONFIG_PROC=y
|
CONFIG_IKCONFIG_PROC=y
|
||||||
CONFIG_LOG_BUF_SHIFT=16
|
CONFIG_LOG_BUF_SHIFT=16
|
||||||
@@ -16,8 +18,6 @@ CONFIG_MODULE_UNLOAD=y
|
|||||||
# CONFIG_BLK_DEV_BSG is not set
|
# CONFIG_BLK_DEV_BSG is not set
|
||||||
CONFIG_PARTITION_ADVANCED=y
|
CONFIG_PARTITION_ADVANCED=y
|
||||||
CONFIG_ARCH_LPC32XX=y
|
CONFIG_ARCH_LPC32XX=y
|
||||||
CONFIG_NO_HZ=y
|
|
||||||
CONFIG_HIGH_RES_TIMERS=y
|
|
||||||
CONFIG_PREEMPT=y
|
CONFIG_PREEMPT=y
|
||||||
CONFIG_AEABI=y
|
CONFIG_AEABI=y
|
||||||
CONFIG_ZBOOT_ROM_TEXT=0x0
|
CONFIG_ZBOOT_ROM_TEXT=0x0
|
||||||
@@ -52,13 +52,17 @@ CONFIG_MTD=y
|
|||||||
CONFIG_MTD_CMDLINE_PARTS=y
|
CONFIG_MTD_CMDLINE_PARTS=y
|
||||||
CONFIG_MTD_CHAR=y
|
CONFIG_MTD_CHAR=y
|
||||||
CONFIG_MTD_BLOCK=y
|
CONFIG_MTD_BLOCK=y
|
||||||
|
CONFIG_MTD_M25P80=y
|
||||||
CONFIG_MTD_NAND=y
|
CONFIG_MTD_NAND=y
|
||||||
CONFIG_MTD_NAND_MUSEUM_IDS=y
|
CONFIG_MTD_NAND_MUSEUM_IDS=y
|
||||||
|
CONFIG_MTD_NAND_SLC_LPC32XX=y
|
||||||
|
CONFIG_MTD_NAND_MLC_LPC32XX=y
|
||||||
CONFIG_BLK_DEV_LOOP=y
|
CONFIG_BLK_DEV_LOOP=y
|
||||||
CONFIG_BLK_DEV_CRYPTOLOOP=y
|
CONFIG_BLK_DEV_CRYPTOLOOP=y
|
||||||
CONFIG_BLK_DEV_RAM=y
|
CONFIG_BLK_DEV_RAM=y
|
||||||
CONFIG_BLK_DEV_RAM_COUNT=1
|
CONFIG_BLK_DEV_RAM_COUNT=1
|
||||||
CONFIG_BLK_DEV_RAM_SIZE=16384
|
CONFIG_BLK_DEV_RAM_SIZE=16384
|
||||||
|
CONFIG_EEPROM_AT24=y
|
||||||
CONFIG_EEPROM_AT25=y
|
CONFIG_EEPROM_AT25=y
|
||||||
CONFIG_SCSI=y
|
CONFIG_SCSI=y
|
||||||
CONFIG_BLK_DEV_SD=y
|
CONFIG_BLK_DEV_SD=y
|
||||||
@@ -79,16 +83,22 @@ CONFIG_LPC_ENET=y
|
|||||||
# CONFIG_NET_VENDOR_STMICRO is not set
|
# CONFIG_NET_VENDOR_STMICRO is not set
|
||||||
CONFIG_SMSC_PHY=y
|
CONFIG_SMSC_PHY=y
|
||||||
# CONFIG_WLAN is not set
|
# CONFIG_WLAN is not set
|
||||||
|
CONFIG_INPUT_MATRIXKMAP=y
|
||||||
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||||
CONFIG_INPUT_MOUSEDEV_SCREEN_X=240
|
CONFIG_INPUT_MOUSEDEV_SCREEN_X=240
|
||||||
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=320
|
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=320
|
||||||
CONFIG_INPUT_EVDEV=y
|
CONFIG_INPUT_EVDEV=y
|
||||||
|
# CONFIG_KEYBOARD_ATKBD is not set
|
||||||
|
CONFIG_KEYBOARD_LPC32XX=y
|
||||||
# CONFIG_INPUT_MOUSE is not set
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
CONFIG_INPUT_TOUCHSCREEN=y
|
CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
CONFIG_TOUCHSCREEN_LPC32XX=y
|
CONFIG_TOUCHSCREEN_LPC32XX=y
|
||||||
|
CONFIG_SERIO_LIBPS2=y
|
||||||
# CONFIG_LEGACY_PTYS is not set
|
# CONFIG_LEGACY_PTYS is not set
|
||||||
CONFIG_SERIAL_8250=y
|
CONFIG_SERIAL_8250=y
|
||||||
CONFIG_SERIAL_8250_CONSOLE=y
|
CONFIG_SERIAL_8250_CONSOLE=y
|
||||||
|
CONFIG_SERIAL_HS_LPC32XX=y
|
||||||
|
CONFIG_SERIAL_OF_PLATFORM=y
|
||||||
# CONFIG_HW_RANDOM is not set
|
# CONFIG_HW_RANDOM is not set
|
||||||
CONFIG_I2C=y
|
CONFIG_I2C=y
|
||||||
CONFIG_I2C_CHARDEV=y
|
CONFIG_I2C_CHARDEV=y
|
||||||
@@ -96,7 +106,8 @@ CONFIG_I2C_PNX=y
|
|||||||
CONFIG_SPI=y
|
CONFIG_SPI=y
|
||||||
CONFIG_SPI_PL022=y
|
CONFIG_SPI_PL022=y
|
||||||
CONFIG_GPIO_SYSFS=y
|
CONFIG_GPIO_SYSFS=y
|
||||||
# CONFIG_HWMON is not set
|
CONFIG_SENSORS_DS620=y
|
||||||
|
CONFIG_SENSORS_MAX6639=y
|
||||||
CONFIG_WATCHDOG=y
|
CONFIG_WATCHDOG=y
|
||||||
CONFIG_PNX4008_WATCHDOG=y
|
CONFIG_PNX4008_WATCHDOG=y
|
||||||
CONFIG_FB=y
|
CONFIG_FB=y
|
||||||
@@ -133,6 +144,8 @@ CONFIG_MMC=y
|
|||||||
CONFIG_MMC_ARMMMCI=y
|
CONFIG_MMC_ARMMMCI=y
|
||||||
CONFIG_NEW_LEDS=y
|
CONFIG_NEW_LEDS=y
|
||||||
CONFIG_LEDS_CLASS=y
|
CONFIG_LEDS_CLASS=y
|
||||||
|
CONFIG_LEDS_PCA9532=y
|
||||||
|
CONFIG_LEDS_PCA9532_GPIO=y
|
||||||
CONFIG_LEDS_GPIO=y
|
CONFIG_LEDS_GPIO=y
|
||||||
CONFIG_LEDS_TRIGGERS=y
|
CONFIG_LEDS_TRIGGERS=y
|
||||||
CONFIG_LEDS_TRIGGER_TIMER=y
|
CONFIG_LEDS_TRIGGER_TIMER=y
|
||||||
@@ -146,10 +159,10 @@ CONFIG_RTC_DRV_DS1374=y
|
|||||||
CONFIG_RTC_DRV_PCF8563=y
|
CONFIG_RTC_DRV_PCF8563=y
|
||||||
CONFIG_RTC_DRV_LPC32XX=y
|
CONFIG_RTC_DRV_LPC32XX=y
|
||||||
CONFIG_DMADEVICES=y
|
CONFIG_DMADEVICES=y
|
||||||
CONFIG_AMBA_PL08X=y
|
|
||||||
CONFIG_STAGING=y
|
CONFIG_STAGING=y
|
||||||
CONFIG_IIO=y
|
|
||||||
CONFIG_LPC32XX_ADC=y
|
CONFIG_LPC32XX_ADC=y
|
||||||
|
CONFIG_MAX517=y
|
||||||
|
CONFIG_IIO=y
|
||||||
CONFIG_EXT2_FS=y
|
CONFIG_EXT2_FS=y
|
||||||
CONFIG_AUTOFS4_FS=y
|
CONFIG_AUTOFS4_FS=y
|
||||||
CONFIG_MSDOS_FS=y
|
CONFIG_MSDOS_FS=y
|
||||||
@@ -159,7 +172,6 @@ CONFIG_JFFS2_FS=y
|
|||||||
CONFIG_JFFS2_FS_WBUF_VERIFY=y
|
CONFIG_JFFS2_FS_WBUF_VERIFY=y
|
||||||
CONFIG_CRAMFS=y
|
CONFIG_CRAMFS=y
|
||||||
CONFIG_NFS_FS=y
|
CONFIG_NFS_FS=y
|
||||||
CONFIG_NFS_V3=y
|
|
||||||
CONFIG_ROOT_NFS=y
|
CONFIG_ROOT_NFS=y
|
||||||
CONFIG_NLS_CODEPAGE_437=y
|
CONFIG_NLS_CODEPAGE_437=y
|
||||||
CONFIG_NLS_ASCII=y
|
CONFIG_NLS_ASCII=y
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ config AINTC
|
|||||||
bool
|
bool
|
||||||
|
|
||||||
config CP_INTC
|
config CP_INTC
|
||||||
|
select IRQ_DOMAIN
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config ARCH_DAVINCI_DMx
|
config ARCH_DAVINCI_DMx
|
||||||
|
|||||||
@@ -39,3 +39,4 @@ obj-$(CONFIG_MACH_OMAPL138_HAWKBOARD) += board-omapl138-hawk.o
|
|||||||
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
|
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
|
||||||
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
||||||
obj-$(CONFIG_SUSPEND) += pm.o sleep.o
|
obj-$(CONFIG_SUSPEND) += pm.o sleep.o
|
||||||
|
obj-$(CONFIG_HAVE_CLK) += pm_domain.o
|
||||||
|
|||||||
@@ -9,8 +9,10 @@
|
|||||||
* kind, whether express or implied.
|
* kind, whether express or implied.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <linux/export.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
|
#include <linux/irqdomain.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
@@ -28,7 +30,7 @@ static inline void cp_intc_write(unsigned long value, unsigned offset)
|
|||||||
|
|
||||||
static void cp_intc_ack_irq(struct irq_data *d)
|
static void cp_intc_ack_irq(struct irq_data *d)
|
||||||
{
|
{
|
||||||
cp_intc_write(d->irq, CP_INTC_SYS_STAT_IDX_CLR);
|
cp_intc_write(d->hwirq, CP_INTC_SYS_STAT_IDX_CLR);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable interrupt */
|
/* Disable interrupt */
|
||||||
@@ -36,20 +38,20 @@ static void cp_intc_mask_irq(struct irq_data *d)
|
|||||||
{
|
{
|
||||||
/* XXX don't know why we need to disable nIRQ here... */
|
/* XXX don't know why we need to disable nIRQ here... */
|
||||||
cp_intc_write(1, CP_INTC_HOST_ENABLE_IDX_CLR);
|
cp_intc_write(1, CP_INTC_HOST_ENABLE_IDX_CLR);
|
||||||
cp_intc_write(d->irq, CP_INTC_SYS_ENABLE_IDX_CLR);
|
cp_intc_write(d->hwirq, CP_INTC_SYS_ENABLE_IDX_CLR);
|
||||||
cp_intc_write(1, CP_INTC_HOST_ENABLE_IDX_SET);
|
cp_intc_write(1, CP_INTC_HOST_ENABLE_IDX_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable interrupt */
|
/* Enable interrupt */
|
||||||
static void cp_intc_unmask_irq(struct irq_data *d)
|
static void cp_intc_unmask_irq(struct irq_data *d)
|
||||||
{
|
{
|
||||||
cp_intc_write(d->irq, CP_INTC_SYS_ENABLE_IDX_SET);
|
cp_intc_write(d->hwirq, CP_INTC_SYS_ENABLE_IDX_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cp_intc_set_irq_type(struct irq_data *d, unsigned int flow_type)
|
static int cp_intc_set_irq_type(struct irq_data *d, unsigned int flow_type)
|
||||||
{
|
{
|
||||||
unsigned reg = BIT_WORD(d->irq);
|
unsigned reg = BIT_WORD(d->hwirq);
|
||||||
unsigned mask = BIT_MASK(d->irq);
|
unsigned mask = BIT_MASK(d->hwirq);
|
||||||
unsigned polarity = cp_intc_read(CP_INTC_SYS_POLARITY(reg));
|
unsigned polarity = cp_intc_read(CP_INTC_SYS_POLARITY(reg));
|
||||||
unsigned type = cp_intc_read(CP_INTC_SYS_TYPE(reg));
|
unsigned type = cp_intc_read(CP_INTC_SYS_TYPE(reg));
|
||||||
|
|
||||||
@@ -99,18 +101,36 @@ static struct irq_chip cp_intc_irq_chip = {
|
|||||||
.irq_set_wake = cp_intc_set_wake,
|
.irq_set_wake = cp_intc_set_wake,
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init cp_intc_init(void)
|
static struct irq_domain *cp_intc_domain;
|
||||||
|
|
||||||
|
static int cp_intc_host_map(struct irq_domain *h, unsigned int virq,
|
||||||
|
irq_hw_number_t hw)
|
||||||
{
|
{
|
||||||
unsigned long num_irq = davinci_soc_info.intc_irq_num;
|
pr_debug("cp_intc_host_map(%d, 0x%lx)\n", virq, hw);
|
||||||
|
|
||||||
|
irq_set_chip(virq, &cp_intc_irq_chip);
|
||||||
|
set_irq_flags(virq, IRQF_VALID | IRQF_PROBE);
|
||||||
|
irq_set_handler(virq, handle_edge_irq);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static const struct irq_domain_ops cp_intc_host_ops = {
|
||||||
|
.map = cp_intc_host_map,
|
||||||
|
.xlate = irq_domain_xlate_onetwocell,
|
||||||
|
};
|
||||||
|
|
||||||
|
int __init __cp_intc_init(struct device_node *node)
|
||||||
|
{
|
||||||
|
u32 num_irq = davinci_soc_info.intc_irq_num;
|
||||||
u8 *irq_prio = davinci_soc_info.intc_irq_prios;
|
u8 *irq_prio = davinci_soc_info.intc_irq_prios;
|
||||||
u32 *host_map = davinci_soc_info.intc_host_map;
|
u32 *host_map = davinci_soc_info.intc_host_map;
|
||||||
unsigned num_reg = BITS_TO_LONGS(num_irq);
|
unsigned num_reg = BITS_TO_LONGS(num_irq);
|
||||||
int i;
|
int i, irq_base;
|
||||||
|
|
||||||
davinci_intc_type = DAVINCI_INTC_TYPE_CP_INTC;
|
davinci_intc_type = DAVINCI_INTC_TYPE_CP_INTC;
|
||||||
davinci_intc_base = ioremap(davinci_soc_info.intc_base, SZ_8K);
|
davinci_intc_base = ioremap(davinci_soc_info.intc_base, SZ_8K);
|
||||||
if (WARN_ON(!davinci_intc_base))
|
if (WARN_ON(!davinci_intc_base))
|
||||||
return;
|
return -EINVAL;
|
||||||
|
|
||||||
cp_intc_write(0, CP_INTC_GLOBAL_ENABLE);
|
cp_intc_write(0, CP_INTC_GLOBAL_ENABLE);
|
||||||
|
|
||||||
@@ -165,13 +185,28 @@ void __init cp_intc_init(void)
|
|||||||
for (i = 0; host_map[i] != -1; i++)
|
for (i = 0; host_map[i] != -1; i++)
|
||||||
cp_intc_write(host_map[i], CP_INTC_HOST_MAP(i));
|
cp_intc_write(host_map[i], CP_INTC_HOST_MAP(i));
|
||||||
|
|
||||||
/* Set up genirq dispatching for cp_intc */
|
irq_base = irq_alloc_descs(-1, 0, num_irq, 0);
|
||||||
for (i = 0; i < num_irq; i++) {
|
if (irq_base < 0) {
|
||||||
irq_set_chip(i, &cp_intc_irq_chip);
|
pr_warn("Couldn't allocate IRQ numbers\n");
|
||||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
irq_base = 0;
|
||||||
irq_set_handler(i, handle_edge_irq);
|
}
|
||||||
|
|
||||||
|
/* create a legacy host */
|
||||||
|
cp_intc_domain = irq_domain_add_legacy(node, num_irq,
|
||||||
|
irq_base, 0, &cp_intc_host_ops, NULL);
|
||||||
|
|
||||||
|
if (!cp_intc_domain) {
|
||||||
|
pr_err("cp_intc: failed to allocate irq host!\n");
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable global interrupt */
|
/* Enable global interrupt */
|
||||||
cp_intc_write(1, CP_INTC_GLOBAL_ENABLE);
|
cp_intc_write(1, CP_INTC_GLOBAL_ENABLE);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void __init cp_intc_init(void)
|
||||||
|
{
|
||||||
|
__cp_intc_init(NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
/*
|
||||||
|
* Runtime PM support code for DaVinci
|
||||||
|
*
|
||||||
|
* Author: Kevin Hilman
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012 Texas Instruments, Inc.
|
||||||
|
*
|
||||||
|
* This file is licensed under the terms of the GNU General Public
|
||||||
|
* License version 2. This program is licensed "as is" without any
|
||||||
|
* warranty of any kind, whether express or implied.
|
||||||
|
*/
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/pm_runtime.h>
|
||||||
|
#include <linux/pm_clock.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM_RUNTIME
|
||||||
|
static int davinci_pm_runtime_suspend(struct device *dev)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
dev_dbg(dev, "%s\n", __func__);
|
||||||
|
|
||||||
|
ret = pm_generic_runtime_suspend(dev);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
ret = pm_clk_suspend(dev);
|
||||||
|
if (ret) {
|
||||||
|
pm_generic_runtime_resume(dev);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int davinci_pm_runtime_resume(struct device *dev)
|
||||||
|
{
|
||||||
|
dev_dbg(dev, "%s\n", __func__);
|
||||||
|
|
||||||
|
pm_clk_resume(dev);
|
||||||
|
return pm_generic_runtime_resume(dev);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static struct dev_pm_domain davinci_pm_domain = {
|
||||||
|
.ops = {
|
||||||
|
SET_RUNTIME_PM_OPS(davinci_pm_runtime_suspend,
|
||||||
|
davinci_pm_runtime_resume, NULL)
|
||||||
|
USE_PLATFORM_PM_SLEEP_OPS
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct pm_clk_notifier_block platform_bus_notifier = {
|
||||||
|
.pm_domain = &davinci_pm_domain,
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init davinci_pm_runtime_init(void)
|
||||||
|
{
|
||||||
|
pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
core_initcall(davinci_pm_runtime_init);
|
||||||
@@ -797,6 +797,102 @@ static struct platform_device ep93xx_wdt_device = {
|
|||||||
.resource = ep93xx_wdt_resources,
|
.resource = ep93xx_wdt_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* EP93xx IDE
|
||||||
|
*************************************************************************/
|
||||||
|
static struct resource ep93xx_ide_resources[] = {
|
||||||
|
DEFINE_RES_MEM(EP93XX_IDE_PHYS_BASE, 0x38),
|
||||||
|
DEFINE_RES_IRQ(IRQ_EP93XX_EXT3),
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device ep93xx_ide_device = {
|
||||||
|
.name = "ep93xx-ide",
|
||||||
|
.id = -1,
|
||||||
|
.dev = {
|
||||||
|
.dma_mask = &ep93xx_ide_device.dev.coherent_dma_mask,
|
||||||
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
|
},
|
||||||
|
.num_resources = ARRAY_SIZE(ep93xx_ide_resources),
|
||||||
|
.resource = ep93xx_ide_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
void __init ep93xx_register_ide(void)
|
||||||
|
{
|
||||||
|
platform_device_register(&ep93xx_ide_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ep93xx_ide_acquire_gpio(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
int err;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
err = gpio_request(EP93XX_GPIO_LINE_EGPIO2, dev_name(&pdev->dev));
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
|
err = gpio_request(EP93XX_GPIO_LINE_EGPIO15, dev_name(&pdev->dev));
|
||||||
|
if (err)
|
||||||
|
goto fail_egpio15;
|
||||||
|
for (i = 2; i < 8; i++) {
|
||||||
|
err = gpio_request(EP93XX_GPIO_LINE_E(i), dev_name(&pdev->dev));
|
||||||
|
if (err)
|
||||||
|
goto fail_gpio_e;
|
||||||
|
}
|
||||||
|
for (i = 4; i < 8; i++) {
|
||||||
|
err = gpio_request(EP93XX_GPIO_LINE_G(i), dev_name(&pdev->dev));
|
||||||
|
if (err)
|
||||||
|
goto fail_gpio_g;
|
||||||
|
}
|
||||||
|
for (i = 0; i < 8; i++) {
|
||||||
|
err = gpio_request(EP93XX_GPIO_LINE_H(i), dev_name(&pdev->dev));
|
||||||
|
if (err)
|
||||||
|
goto fail_gpio_h;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* GPIO ports E[7:2], G[7:4] and H used by IDE */
|
||||||
|
ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_EONIDE |
|
||||||
|
EP93XX_SYSCON_DEVCFG_GONIDE |
|
||||||
|
EP93XX_SYSCON_DEVCFG_HONIDE);
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
fail_gpio_h:
|
||||||
|
for (--i; i >= 0; --i)
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_H(i));
|
||||||
|
i = 8;
|
||||||
|
fail_gpio_g:
|
||||||
|
for (--i; i >= 4; --i)
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_G(i));
|
||||||
|
i = 8;
|
||||||
|
fail_gpio_e:
|
||||||
|
for (--i; i >= 2; --i)
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_E(i));
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_EGPIO15);
|
||||||
|
fail_egpio15:
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_EGPIO2);
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(ep93xx_ide_acquire_gpio);
|
||||||
|
|
||||||
|
void ep93xx_ide_release_gpio(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 2; i < 8; i++)
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_E(i));
|
||||||
|
for (i = 4; i < 8; i++)
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_G(i));
|
||||||
|
for (i = 0; i < 8; i++)
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_H(i));
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_EGPIO15);
|
||||||
|
gpio_free(EP93XX_GPIO_LINE_EGPIO2);
|
||||||
|
|
||||||
|
|
||||||
|
/* GPIO ports E[7:2], G[7:4] and H used by GPIO */
|
||||||
|
ep93xx_devcfg_set_bits(EP93XX_SYSCON_DEVCFG_EONIDE |
|
||||||
|
EP93XX_SYSCON_DEVCFG_GONIDE |
|
||||||
|
EP93XX_SYSCON_DEVCFG_HONIDE);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(ep93xx_ide_release_gpio);
|
||||||
|
|
||||||
void __init ep93xx_init_devices(void)
|
void __init ep93xx_init_devices(void)
|
||||||
{
|
{
|
||||||
/* Disallow access to MaverickCrunch initially */
|
/* Disallow access to MaverickCrunch initially */
|
||||||
|
|||||||
@@ -233,6 +233,29 @@ static void __init edb93xx_register_fb(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* EDB93xx IDE
|
||||||
|
*************************************************************************/
|
||||||
|
static int __init edb93xx_has_ide(void)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Although EDB9312 and EDB9315 do have IDE capability, they have
|
||||||
|
* INTRQ line wired as pull-up, which makes using IDE interface
|
||||||
|
* problematic.
|
||||||
|
*/
|
||||||
|
return machine_is_edb9312() || machine_is_edb9315() ||
|
||||||
|
machine_is_edb9315a();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void __init edb93xx_register_ide(void)
|
||||||
|
{
|
||||||
|
if (!edb93xx_has_ide())
|
||||||
|
return;
|
||||||
|
|
||||||
|
ep93xx_register_ide();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void __init edb93xx_init_machine(void)
|
static void __init edb93xx_init_machine(void)
|
||||||
{
|
{
|
||||||
ep93xx_init_devices();
|
ep93xx_init_devices();
|
||||||
@@ -243,6 +266,7 @@ static void __init edb93xx_init_machine(void)
|
|||||||
edb93xx_register_i2s();
|
edb93xx_register_i2s();
|
||||||
edb93xx_register_pwm();
|
edb93xx_register_pwm();
|
||||||
edb93xx_register_fb();
|
edb93xx_register_fb();
|
||||||
|
edb93xx_register_ide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ void ep93xx_register_i2s(void);
|
|||||||
int ep93xx_i2s_acquire(void);
|
int ep93xx_i2s_acquire(void);
|
||||||
void ep93xx_i2s_release(void);
|
void ep93xx_i2s_release(void);
|
||||||
void ep93xx_register_ac97(void);
|
void ep93xx_register_ac97(void);
|
||||||
|
void ep93xx_register_ide(void);
|
||||||
|
int ep93xx_ide_acquire_gpio(struct platform_device *pdev);
|
||||||
|
void ep93xx_ide_release_gpio(struct platform_device *pdev);
|
||||||
|
|
||||||
void ep93xx_init_devices(void);
|
void ep93xx_init_devices(void);
|
||||||
extern struct sys_timer ep93xx_timer;
|
extern struct sys_timer ep93xx_timer;
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
|
|
||||||
#define EP93XX_BOOT_ROM_BASE EP93XX_AHB_IOMEM(0x00090000)
|
#define EP93XX_BOOT_ROM_BASE EP93XX_AHB_IOMEM(0x00090000)
|
||||||
|
|
||||||
|
#define EP93XX_IDE_PHYS_BASE EP93XX_AHB_PHYS(0x000a0000)
|
||||||
#define EP93XX_IDE_BASE EP93XX_AHB_IOMEM(0x000a0000)
|
#define EP93XX_IDE_BASE EP93XX_AHB_IOMEM(0x000a0000)
|
||||||
|
|
||||||
#define EP93XX_VIC1_BASE EP93XX_AHB_IOMEM(0x000b0000)
|
#define EP93XX_VIC1_BASE EP93XX_AHB_IOMEM(0x000b0000)
|
||||||
|
|||||||
@@ -540,7 +540,8 @@ static struct irq_domain_ops combiner_irq_domain_ops = {
|
|||||||
.map = combiner_irq_domain_map,
|
.map = combiner_irq_domain_map,
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init combiner_init(void __iomem *combiner_base, struct device_node *np)
|
static void __init combiner_init(void __iomem *combiner_base,
|
||||||
|
struct device_node *np)
|
||||||
{
|
{
|
||||||
int i, irq, irq_base;
|
int i, irq, irq_base;
|
||||||
unsigned int max_nr, nr_irq;
|
unsigned int max_nr, nr_irq;
|
||||||
|
|||||||
@@ -232,6 +232,11 @@
|
|||||||
|
|
||||||
#define EXYNOS5_USB_CFG S5P_PMUREG(0x0230)
|
#define EXYNOS5_USB_CFG S5P_PMUREG(0x0230)
|
||||||
|
|
||||||
|
#define EXYNOS5_AUTO_WDTRESET_DISABLE S5P_PMUREG(0x0408)
|
||||||
|
#define EXYNOS5_MASK_WDTRESET_REQUEST S5P_PMUREG(0x040C)
|
||||||
|
|
||||||
|
#define EXYNOS5_SYS_WDTRESET (1 << 20)
|
||||||
|
|
||||||
#define EXYNOS5_ARM_CORE0_SYS_PWR_REG S5P_PMUREG(0x1000)
|
#define EXYNOS5_ARM_CORE0_SYS_PWR_REG S5P_PMUREG(0x1000)
|
||||||
#define EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG S5P_PMUREG(0x1004)
|
#define EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG S5P_PMUREG(0x1004)
|
||||||
#define EXYNOS5_DIS_IRQ_ARM_CORE0_CENTRAL_SYS_PWR_REG S5P_PMUREG(0x1008)
|
#define EXYNOS5_DIS_IRQ_ARM_CORE0_CENTRAL_SYS_PWR_REG S5P_PMUREG(0x1008)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user