xref: /kernel/linux/linux-5.10/arch/mips/loongson32/ls1c/board.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/mips/loongson32/ls1c/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2016 Yang Ling <gnaygnil@gmail.com>
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <platform.h>
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_cistatic struct platform_device *ls1c_platform_devices[] __initdata = {
98c2ecf20Sopenharmony_ci	&ls1x_uart_pdev,
108c2ecf20Sopenharmony_ci	&ls1x_eth0_pdev,
118c2ecf20Sopenharmony_ci	&ls1x_rtc_pdev,
128c2ecf20Sopenharmony_ci	&ls1x_wdt_pdev,
138c2ecf20Sopenharmony_ci};
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistatic int __init ls1c_platform_init(void)
168c2ecf20Sopenharmony_ci{
178c2ecf20Sopenharmony_ci	ls1x_serial_set_uartclk(&ls1x_uart_pdev);
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci	return platform_add_devices(ls1c_platform_devices,
208c2ecf20Sopenharmony_ci				   ARRAY_SIZE(ls1c_platform_devices));
218c2ecf20Sopenharmony_ci}
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciarch_initcall(ls1c_platform_init);
24

Indexes created Thu Nov 07 10:32:03 CST 2024