Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / mips / loongson32 / ls1c / board.c
blobe9de6da0ce51ff652ddcdbb5fdb7c79104f49454
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (c) 2016 Yang Ling <gnaygnil@gmail.com>
4 */
6 #include <platform.h>
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,
15 static int __init ls1c_platform_init(void)
17 ls1x_serial_set_uartclk(&ls1x_uart_pdev);
18 ls1x_rtc_set_extclk(&ls1x_rtc_pdev);
20 return platform_add_devices(ls1c_platform_devices,
21 ARRAY_SIZE(ls1c_platform_devices));
24 arch_initcall(ls1c_platform_init);