]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/mach-mvebu/board-t5325.c
ARM: EXYNOS: mcpm rename the power_down_finish
[karo-tx-linux.git] / arch / arm / mach-mvebu / board-t5325.c
1 /*
2  * HP T5325 Board Setup
3  *
4  * Copyright (C) 2014
5  *
6  * Andrew Lunn <andrew@lunn.ch>
7  *
8  * This file is licensed under the terms of the GNU General Public
9  * License version 2.  This program is licensed "as is" without any
10  * warranty of any kind, whether express or implied.
11  */
12
13 #include <linux/kernel.h>
14 #include <linux/i2c.h>
15 #include <linux/init.h>
16 #include <linux/platform_device.h>
17 #include <sound/alc5623.h>
18 #include "board.h"
19
20 static struct platform_device hp_t5325_audio_device = {
21         .name           = "t5325-audio",
22         .id             = -1,
23 };
24
25 static struct alc5623_platform_data alc5621_data = {
26         .add_ctrl = 0x3700,
27         .jack_det_ctrl = 0x4810,
28 };
29
30 static struct i2c_board_info i2c_board_info[] __initdata = {
31         {
32                 I2C_BOARD_INFO("alc5621", 0x1a),
33                 .platform_data = &alc5621_data,
34         },
35 };
36
37 void __init t5325_init(void)
38 {
39         i2c_register_board_info(0, i2c_board_info, ARRAY_SIZE(i2c_board_info));
40         platform_device_register(&hp_t5325_audio_device);
41 }