The authors from the header of the files are added in a previous commit. Change-Id: Iafeaafb9689c65bd2f5de3960097ec0d4c1009e7 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38544 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
#include <device/device.h>
|
|
#include <device/pnp.h>
|
|
#include "chip.h"
|
|
#include "fintek_internal.h"
|
|
|
|
#define MULTI_FUNC_SEL_REG0 0x28
|
|
#define MULTI_FUNC_SEL_REG1 0x29
|
|
#define MULTI_FUNC_SEL_REG2 0x2A
|
|
#define MULTI_FUNC_SEL_REG3 0x2B
|
|
#define MULTI_FUNC_SEL_REG4 0x2C
|
|
|
|
void f71808a_multifunc_init(struct device *dev)
|
|
{
|
|
const struct superio_fintek_f71808a_config *conf = dev->chip_info;
|
|
|
|
pnp_enter_conf_mode(dev);
|
|
|
|
/* multi-func select reg0 */
|
|
pnp_write_config(dev, MULTI_FUNC_SEL_REG0,
|
|
conf->multi_function_register_0);
|
|
|
|
/* multi-func select reg1 */
|
|
pnp_write_config(dev, MULTI_FUNC_SEL_REG1,
|
|
conf->multi_function_register_1);
|
|
|
|
/* multi-func select reg2 */
|
|
pnp_write_config(dev, MULTI_FUNC_SEL_REG2,
|
|
conf->multi_function_register_2);
|
|
|
|
/* multi-func select reg3 */
|
|
pnp_write_config(dev, MULTI_FUNC_SEL_REG3,
|
|
conf->multi_function_register_3);
|
|
|
|
/* multi-func select reg4 */
|
|
pnp_write_config(dev, MULTI_FUNC_SEL_REG4,
|
|
conf->multi_function_register_4);
|
|
|
|
pnp_exit_conf_mode(dev);
|
|
}
|