summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-aspeed/devs.c
blob: be6d7f426634c1ee78eacb2a78cce1b5f78fd086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/********************************************************************************
* File Name     : linux/arch/arm/plat-aspeed/devs.c
* Author        : Ryan chen
*
* Copyright (C) 2012-2020  ASPEED Technology Inc.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 2 of the License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

* History      :
*    1. 2012/08/10 create this file [Ryan Chen]
*
********************************************************************************/

#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/platform_device.h>

#include <mach/platform.h>

#include <plat/devs.h>

typedef void (init_fnc_t) (void);

init_fnc_t __initdata *init_all_device[] = {
	ast_add_device_lpc,
	ast_add_device_uart,
	ast_add_device_vuart,	
	ast_add_device_watchdog,
	ast_add_device_rtc,	
	ast_add_device_i2c,
	ast_add_device_spi,
//ast_add_device_ehci, disabled by tfang for USB HUB mode
	ast_add_device_nand,
	ast_add_device_flash,
	ast_add_device_pwm_fan,
	ast_add_device_adc,
	ast_add_device_gpio,		
	ast_add_device_sgpio,			
	ast_add_device_peci,	
	ast_add_device_fb,
//	ast_add_device_sdhci, disabled by tfang
//	ast_add_device_uhci, disabled by tfang
//	ast_add_device_video, disabled by tfang
	ast_add_device_kcs,
	ast_add_device_mailbox,
	ast_add_device_snoop,
	ast_add_device_gmac,
	ast_add_device_virthub,
//	ast_add_device_nand,
	NULL,
};

void __init ast_add_all_devices(void)
{
	init_fnc_t **init_fnc_ptr;

	for (init_fnc_ptr = init_all_device; *init_fnc_ptr; ++init_fnc_ptr) {
		(*init_fnc_ptr)();
	}

	return;
}
OpenPOWER on IntegriCloud