forked from Intel-BMC/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: kirkwood: Add HP T5325 thin client
Convert the kirkwood t5325-setup.c to mostly device tree for mach-mvebu. Part of the audio setup needs to remain in C for the moment until suitable bindings are designed and implemented. So add board code, triggered by the compatibility string. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
- Loading branch information
Showing
5 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Board functions for Marvell System On Chip | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef __ARCH_MVEBU_BOARD_H | ||
#define __ARCH_MVEBU_BOARD_H | ||
|
||
#ifdef CONFIG_MACH_T5325 | ||
void t5325_init(void); | ||
#else | ||
static inline void t5325_init(void) {}; | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters