import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / board.c
1 #include <linux/init.h>
2 #include <linux/delay.h>
3 #include "mach/devs.h"
4 #include "mach/pm_common.h"
5
6
7
8 /*
9 * board_init: entry point for board initialization.
10 * Always return 1.
11 */
12 static __init int board_init(void)
13 {
14 /*
15 * NoteXXX: There are two board init related functions.
16 * One is mt65xx_board_init() and another is custom_board_init().
17 *
18 * mt65xx_board_init() is used for chip-dependent code.
19 * It is suggested to put driver code in this function to do:
20 * 1). Capability structure of platform devices.
21 * 2). Define platform devices with their resources.
22 * 3). Register MT65XX platform devices.
23 *
24 * custom_board_init() is used for customizable code.
25 * It is suggested to put driver code in this function to do:
26 * 1). Initialize board (PINMUX, GPIOs).
27 * 2). Perform board specific initialization:
28 * 1-1). Register MT65xx platform devices.
29 * 1-2). Register non-MT65xx platform devices.
30 * (e.g. external peripheral GPS, BT, ¡K etc.)
31 */
32 // mt6582_power_management_init();
33
34 mt_board_init();
35
36 /* init low power PMIC setting after PMIC is ready */
37 // mt6582_pmic_low_power_init();
38
39 /* BUG BUG: temporarily marked since customization is not ready yet */
40 # if 0
41 custom_board_init();
42 #endif
43
44 return 0;
45 }
46
47 late_initcall(board_init);