Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a053ac17 authored by John Crispin's avatar John Crispin Committed by Ralf Baechle
Browse files

MIPS: Lantiq: Add mips_machine support



This patch adds support for Gabor's mips_machine patch.

Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Signed-off-by: default avatarRalph Hempel <ralph.hempel@lantiq.com>
Cc: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2251/
Patchwork: https://patchwork.linux-mips.org/patch/2358/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 24aff71f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -228,6 +228,7 @@ config LANTIQ
	select SWAP_IO_SPACE
	select BOOT_RAW
	select HAVE_CLK
	select MIPS_MACHINE

config LASAT
	bool "LASAT Networks platforms"
+18 −0
Original line number Diff line number Diff line
/*
 *  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>
 */

#ifndef _LANTIQ_MACH_H__
#define _LANTIQ_MACH_H__

#include <asm/mips_machine.h>

enum lantiq_mach_type {
	LTQ_MACH_GENERIC = 0,
};

#endif
+1 −0
Original line number Diff line number Diff line
@@ -20,5 +20,6 @@ struct ltq_soc_info {
};

extern void ltq_soc_detect(struct ltq_soc_info *i);
extern void ltq_soc_setup(void);

#endif
+25 −0
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@

#include <lantiq_soc.h>

#include "machtypes.h"
#include "devices.h"
#include "prom.h"

void __init plat_mem_setup(void)
{
	/* assume 16M as default incase uboot fails to pass proper ramsize */
@@ -39,3 +43,24 @@ void __init plat_mem_setup(void)
	memsize *= 1024 * 1024;
	add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);
}

static int __init
lantiq_setup(void)
{
	ltq_soc_setup();
	mips_machine_setup();
	return 0;
}

arch_initcall(lantiq_setup);

static void __init
lantiq_generic_init(void)
{
	/* Nothing to do */
}

MIPS_MACHINE(LTQ_MACH_GENERIC,
	     "Generic",
	     "Generic Lantiq based board",
	     lantiq_generic_init);
+2 −2
Original line number Diff line number Diff line
obj-y := pmu.o ebu.o reset.o gpio.o devices.o

obj-$(CONFIG_SOC_XWAY) += clk-xway.o prom-xway.o
obj-$(CONFIG_SOC_AMAZON_SE) += clk-ase.o prom-ase.o
obj-$(CONFIG_SOC_XWAY) += clk-xway.o prom-xway.o setup-xway.o
obj-$(CONFIG_SOC_AMAZON_SE) += clk-ase.o prom-ase.o setup-ase.o
Loading