aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/generic/setup_tx4938.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/txx9/generic/setup_tx4938.c')
-rw-r--r--arch/mips/txx9/generic/setup_tx4938.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/setup_tx4938.c b/arch/mips/txx9/generic/setup_tx4938.c
index b0a3dc8863fd..1ceace45ef6a 100644
--- a/arch/mips/txx9/generic/setup_tx4938.c
+++ b/arch/mips/txx9/generic/setup_tx4938.c
@@ -262,3 +262,19 @@ void __init tx4938_setup_serial(void)
262 } 262 }
263#endif /* CONFIG_SERIAL_TXX9 */ 263#endif /* CONFIG_SERIAL_TXX9 */
264} 264}
265
266void __init tx4938_spi_init(int busid)
267{
268 txx9_spi_init(busid, TX4938_SPI_REG & 0xfffffffffULL,
269 TXX9_IRQ_BASE + TX4938_IR_SPI);
270}
271
272void __init tx4938_ethaddr_init(unsigned char *addr0, unsigned char *addr1)
273{
274 u64 pcfg = __raw_readq(&tx4938_ccfgptr->pcfg);
275
276 if (addr0 && (pcfg & TX4938_PCFG_ETH0_SEL))
277 txx9_ethaddr_init(TXX9_IRQ_BASE + TX4938_IR_ETH0, addr0);
278 if (addr1 && (pcfg & TX4938_PCFG_ETH1_SEL))
279 txx9_ethaddr_init(TXX9_IRQ_BASE + TX4938_IR_ETH1, addr1);
280}