-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'gemini-multiplat-dt' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/linusw/linux-nomadik into next/soc This patchset: - Converts the Gemini platform to device tree. - Deletes all the board files. - Fixes the prerequisities for a multiplatform boot and switches to multiplatform. * tag 'gemini-multiplat-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik: ARM: gemini: convert to ARMv4 multiplatform ARM: gemini: select ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR ARM: gemini: switch to sparse IRQs ARM: gemini: delete all boardfiles ARM: gemini: DT for the Cortina Gemini SoC platforms ARM: gemini: convert to MULTI_IRQ_HANDLER Signed-off-by: Olof Johansson <olof@lixom.net>
- Loading branch information
Showing
22 changed files
with
77 additions
and
1,876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,13 @@ | ||
if ARCH_GEMINI | ||
|
||
menu "Cortina Systems Gemini Implementations" | ||
|
||
config MACH_NAS4220B | ||
bool "Raidsonic NAS-4220-B" | ||
select GEMINI_MEM_SWAP | ||
help | ||
Say Y here if you intend to run this kernel on a | ||
Raidsonic NAS-4220-B. | ||
|
||
config MACH_RUT100 | ||
bool "Teltonika RUT100" | ||
select GEMINI_MEM_SWAP | ||
help | ||
Say Y here if you intend to run this kernel on a | ||
Teltonika 3G Router RUT100. | ||
|
||
config MACH_WBD111 | ||
bool "Wiliboard WBD-111" | ||
select GEMINI_MEM_SWAP | ||
help | ||
Say Y here if you intend to run this kernel on a | ||
Wiliboard WBD-111. | ||
|
||
config MACH_WBD222 | ||
bool "Wiliboard WBD-222" | ||
select GEMINI_MEM_SWAP | ||
help | ||
Say Y here if you intend to run this kernel on a | ||
Wiliboard WBD-222. | ||
|
||
endmenu | ||
|
||
config GEMINI_MEM_SWAP | ||
bool "Gemini memory is swapped" | ||
help | ||
Say Y here if Gemini memory is swapped by bootloader. | ||
|
||
endif | ||
menuconfig ARCH_GEMINI | ||
bool "Cortina Systems Gemini" | ||
depends on ARCH_MULTI_V4 | ||
select ARM_APPENDED_DTB # Old Redboot bootloaders deployed | ||
select FARADAY_FTINTC010 | ||
select FTTMR010_TIMER | ||
select GPIO_GEMINI | ||
select GPIOLIB | ||
select POWER_RESET | ||
select POWER_RESET_SYSCON | ||
select SERIAL_OF_PLATFORM | ||
help | ||
Support for the Cortina Systems Gemini family SoCs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,2 @@ | ||
# | ||
# Makefile for the linux kernel. | ||
# | ||
|
||
# Object file lists. | ||
|
||
obj-y := irq.o mm.o time.o devices.o gpio.o idle.o reset.o | ||
|
||
# Board-specific support | ||
obj-$(CONFIG_MACH_NAS4220B) += board-nas4220b.o | ||
obj-$(CONFIG_MACH_RUT100) += board-rut1xx.o | ||
obj-$(CONFIG_MACH_WBD111) += board-wbd111.o | ||
obj-$(CONFIG_MACH_WBD222) += board-wbd222.o | ||
# Makefile for Cortina systems Gemini | ||
obj-y := board-dt.o |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Gemini Device Tree boot support | ||
*/ | ||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/io.h> | ||
|
||
#include <asm/mach/arch.h> | ||
#include <asm/mach/map.h> | ||
#include <asm/system_misc.h> | ||
#include <asm/proc-fns.h> | ||
|
||
#ifdef CONFIG_DEBUG_GEMINI | ||
/* This is needed for LL-debug/earlyprintk/debug-macro.S */ | ||
static struct map_desc gemini_io_desc[] __initdata = { | ||
{ | ||
.virtual = CONFIG_DEBUG_UART_VIRT, | ||
.pfn = __phys_to_pfn(CONFIG_DEBUG_UART_PHYS), | ||
.length = SZ_4K, | ||
.type = MT_DEVICE, | ||
}, | ||
}; | ||
|
||
static void __init gemini_map_io(void) | ||
{ | ||
iotable_init(gemini_io_desc, ARRAY_SIZE(gemini_io_desc)); | ||
} | ||
#else | ||
#define gemini_map_io NULL | ||
#endif | ||
|
||
static void gemini_idle(void) | ||
{ | ||
/* | ||
* Because of broken hardware we have to enable interrupts or the CPU | ||
* will never wakeup... Acctualy it is not very good to enable | ||
* interrupts first since scheduler can miss a tick, but there is | ||
* no other way around this. Platforms that needs it for power saving | ||
* should enable it in init code, since by default it is | ||
* disabled. | ||
*/ | ||
|
||
/* FIXME: Enabling interrupts here is racy! */ | ||
local_irq_enable(); | ||
cpu_do_idle(); | ||
} | ||
|
||
static void __init gemini_init_machine(void) | ||
{ | ||
arm_pm_idle = gemini_idle; | ||
} | ||
|
||
static const char *gemini_board_compat[] = { | ||
"cortina,gemini", | ||
NULL, | ||
}; | ||
|
||
DT_MACHINE_START(GEMINI_DT, "Gemini (Device Tree)") | ||
.map_io = gemini_map_io, | ||
.init_machine = gemini_init_machine, | ||
.dt_compat = gemini_board_compat, | ||
MACHINE_END |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.