xref: /linux/arch/mips/loongson32/ls1c/board.c (revision d99ff463ecf651437e9e4abe68f331dfb6b5bd9d)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2016 Yang Ling <gnaygnil@gmail.com>
4  */
5 
6 #include <platform.h>
7 
8 static struct platform_device *ls1c_platform_devices[] __initdata = {
9 	&ls1x_uart_pdev,
10 	&ls1x_eth0_pdev,
11 	&ls1x_rtc_pdev,
12 	&ls1x_wdt_pdev,
13 };
14 
15 static int __init ls1c_platform_init(void)
16 {
17 	ls1x_serial_set_uartclk(&ls1x_uart_pdev);
18 
19 	return platform_add_devices(ls1c_platform_devices,
20 				   ARRAY_SIZE(ls1c_platform_devices));
21 }
22 
23 arch_initcall(ls1c_platform_init);
24