-
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.
MIPS: Lantiq: Add machtypes for lantiq eval kits
This patch adds mach specific code for the Lantiq EASY50712/50601 evaluation boards Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Ralph Hempel <ralph.hempel@lantiq.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2255/ Patchwork: https://patchwork.linux-mips.org/patch/2361/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
John Crispin
authored and
Ralf Baechle
committed
May 19, 2011
1 parent
a053ac1
commit 973c32e
Showing
6 changed files
with
155 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,6 @@ config SOC_XWAY | |
select HW_HAS_PCI | ||
endchoice | ||
|
||
source "arch/mips/lantiq/xway/Kconfig" | ||
|
||
endif |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if SOC_XWAY | ||
|
||
menu "MIPS Machine" | ||
|
||
config LANTIQ_MACH_EASY50712 | ||
bool "Easy50712 - Danube" | ||
default y | ||
|
||
endmenu | ||
|
||
endif | ||
|
||
if SOC_AMAZON_SE | ||
|
||
menu "MIPS Machine" | ||
|
||
config LANTIQ_MACH_EASY50601 | ||
bool "Easy50601 - Amazon SE" | ||
default y | ||
|
||
endmenu | ||
|
||
endif |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* 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. | ||
* | ||
* Copyright (C) 2010 John Crispin <blogic@openwrt.org> | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/mtd/mtd.h> | ||
#include <linux/mtd/partitions.h> | ||
#include <linux/mtd/physmap.h> | ||
#include <linux/input.h> | ||
|
||
#include <lantiq.h> | ||
|
||
#include "../machtypes.h" | ||
#include "devices.h" | ||
|
||
static struct mtd_partition easy50601_partitions[] = { | ||
{ | ||
.name = "uboot", | ||
.offset = 0x0, | ||
.size = 0x10000, | ||
}, | ||
{ | ||
.name = "uboot_env", | ||
.offset = 0x10000, | ||
.size = 0x10000, | ||
}, | ||
{ | ||
.name = "linux", | ||
.offset = 0x20000, | ||
.size = 0xE0000, | ||
}, | ||
{ | ||
.name = "rootfs", | ||
.offset = 0x100000, | ||
.size = 0x300000, | ||
}, | ||
}; | ||
|
||
static struct physmap_flash_data easy50601_flash_data = { | ||
.nr_parts = ARRAY_SIZE(easy50601_partitions), | ||
.parts = easy50601_partitions, | ||
}; | ||
|
||
static void __init easy50601_init(void) | ||
{ | ||
ltq_register_nor(&easy50601_flash_data); | ||
} | ||
|
||
MIPS_MACHINE(LTQ_MACH_EASY50601, | ||
"EASY50601", | ||
"EASY50601 Eval Board", | ||
easy50601_init); |
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,68 @@ | ||
/* | ||
* 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. | ||
* | ||
* Copyright (C) 2010 John Crispin <blogic@openwrt.org> | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/mtd/mtd.h> | ||
#include <linux/mtd/partitions.h> | ||
#include <linux/mtd/physmap.h> | ||
#include <linux/input.h> | ||
|
||
#include <lantiq_soc.h> | ||
#include <irq.h> | ||
|
||
#include "../machtypes.h" | ||
#include "devices.h" | ||
|
||
static struct mtd_partition easy50712_partitions[] = { | ||
{ | ||
.name = "uboot", | ||
.offset = 0x0, | ||
.size = 0x10000, | ||
}, | ||
{ | ||
.name = "uboot_env", | ||
.offset = 0x10000, | ||
.size = 0x10000, | ||
}, | ||
{ | ||
.name = "linux", | ||
.offset = 0x20000, | ||
.size = 0xe0000, | ||
}, | ||
{ | ||
.name = "rootfs", | ||
.offset = 0x100000, | ||
.size = 0x300000, | ||
}, | ||
}; | ||
|
||
static struct physmap_flash_data easy50712_flash_data = { | ||
.nr_parts = ARRAY_SIZE(easy50712_partitions), | ||
.parts = easy50712_partitions, | ||
}; | ||
|
||
static struct ltq_pci_data ltq_pci_data = { | ||
.clock = PCI_CLOCK_INT, | ||
.gpio = PCI_GNT1 | PCI_REQ1, | ||
.irq = { | ||
[14] = INT_NUM_IM0_IRL0 + 22, | ||
}, | ||
}; | ||
|
||
static void __init easy50712_init(void) | ||
{ | ||
ltq_register_gpio_stp(); | ||
ltq_register_nor(&easy50712_flash_data); | ||
ltq_register_pci(<q_pci_data); | ||
} | ||
|
||
MIPS_MACHINE(LTQ_MACH_EASY50712, | ||
"EASY50712", | ||
"EASY50712 Eval Board", | ||
easy50712_init); |