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

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

MIPS: lantiq: export soc type



The voice and dsl drivers need to know which SoC we are running on.

Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/8046/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 276229d2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -48,6 +48,8 @@ extern struct clk *clk_get_ppe(void);
extern unsigned char ltq_boot_select(void);
/* find out what caused the last cpu reset */
extern int ltq_reset_cause(void);
/* find out the soc type */
extern int ltq_soc_type(void);

#define IOPORT_RESOURCE_START	0x10000000
#define IOPORT_RESOURCE_END	0xffffffff
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,11 @@ const char *get_system_type(void)
	return soc_info.sys_type;
}

int ltq_soc_type(void)
{
	return soc_info.type;
}

void prom_free_prom_memory(void)
{
}