summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu/board-t5325.c
diff options
context:
space:
mode:
authorJason Cooper <jason@lakedaemon.net>2014-03-01 04:21:04 +0100
committerJason Cooper <jason@lakedaemon.net>2014-03-01 04:21:04 +0100
commit0d75ab68fd1a516f7a394fac6ba0f0ef34bbd18e (patch)
tree35e597b44cd1af328cb6b02e4f16de51ccd6f979 /arch/arm/mach-mvebu/board-t5325.c
parentMerge branch 'mvebu/soc-3xx' into mvebu/soc (diff)
parentARM: kirkwood: Add HP T5325 thin client (diff)
downloadlinux-0d75ab68fd1a516f7a394fac6ba0f0ef34bbd18e.tar.xz
linux-0d75ab68fd1a516f7a394fac6ba0f0ef34bbd18e.zip
Merge branch 'mvebu/soc-kw' into mvebu/soc
Diffstat (limited to 'arch/arm/mach-mvebu/board-t5325.c')
-rw-r--r--arch/arm/mach-mvebu/board-t5325.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/board-t5325.c b/arch/arm/mach-mvebu/board-t5325.c
new file mode 100644
index 000000000000..65ace6db9f28
--- /dev/null
+++ b/arch/arm/mach-mvebu/board-t5325.c
@@ -0,0 +1,41 @@
+/*
+ * HP T5325 Board Setup
+ *
+ * Copyright (C) 2014
+ *
+ * Andrew Lunn <andrew@lunn.ch>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include <linux/kernel.h>
+#include <linux/i2c.h>
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <sound/alc5623.h>
+#include "board.h"
+
+static struct platform_device hp_t5325_audio_device = {
+ .name = "t5325-audio",
+ .id = -1,
+};
+
+static struct alc5623_platform_data alc5621_data = {
+ .add_ctrl = 0x3700,
+ .jack_det_ctrl = 0x4810,
+};
+
+static struct i2c_board_info i2c_board_info[] __initdata = {
+ {
+ I2C_BOARD_INFO("alc5621", 0x1a),
+ .platform_data = &alc5621_data,
+ },
+};
+
+void __init t5325_init(void)
+{
+ i2c_register_board_info(0, i2c_board_info, ARRAY_SIZE(i2c_board_info));
+ platform_device_register(&hp_t5325_audio_device);
+}