board.c (533B)
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 8static 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 15static int __init ls1c_platform_init(void) 16{ 17 ls1x_serial_set_uartclk(&ls1x_uart_pdev); 18 ls1x_rtc_set_extclk(&ls1x_rtc_pdev); 19 20 return platform_add_devices(ls1c_platform_devices, 21 ARRAY_SIZE(ls1c_platform_devices)); 22} 23 24arch_initcall(ls1c_platform_init);