Skip to content

Commit

Permalink
Merge tag 'gemini-multiplat-dt' of git://git.kernel.org/pub/scm/linux…
Browse files Browse the repository at this point in the history
…/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
Olof Johansson committed Mar 13, 2017
2 parents 4495c08 + 6dbb708 commit 736d830
Show file tree
Hide file tree
Showing 22 changed files with 77 additions and 1,876 deletions.
9 changes: 0 additions & 9 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,6 @@ config ARM_SINGLE_ARMV7M
select SPARSE_IRQ
select USE_OF

config ARCH_GEMINI
bool "Cortina Systems Gemini"
select CLKSRC_MMIO
select CPU_FA526
select GENERIC_CLOCKEVENTS
select GPIOLIB
help
Support for the Cortina Systems Gemini family SoCs

config ARCH_EBSA110
bool "EBSA-110"
select ARCH_USES_GETTIMEOFFSET
Expand Down
53 changes: 13 additions & 40 deletions arch/arm/mach-gemini/Kconfig
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
15 changes: 2 additions & 13 deletions arch/arm/mach-gemini/Makefile
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
9 changes: 0 additions & 9 deletions arch/arm/mach-gemini/Makefile.boot

This file was deleted.

62 changes: 62 additions & 0 deletions arch/arm/mach-gemini/board-dt.c
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
106 changes: 0 additions & 106 deletions arch/arm/mach-gemini/board-nas4220b.c

This file was deleted.

92 changes: 0 additions & 92 deletions arch/arm/mach-gemini/board-rut1xx.c

This file was deleted.

Loading

0 comments on commit 736d830

Please sign in to comment.