Compare commits
1 Commits
system76
...
upstream-6
Author | SHA1 | Date | |
---|---|---|---|
|
af37b54564 |
@@ -8,6 +8,7 @@ config BOARD_SPECIFIC_OPTIONS
|
||||
select DRIVERS_GENERIC_CBFS_SERIAL
|
||||
select DRIVERS_GENERIC_CBFS_UUID
|
||||
select DRIVERS_I2C_HID
|
||||
select DRIVERS_I2C_TAS5825M
|
||||
select EC_SYSTEM76_EC
|
||||
select EC_SYSTEM76_EC_DGPU
|
||||
select HAVE_ACPI_RESUME
|
||||
|
@@ -10,3 +10,4 @@ romstage-y += romstage.c
|
||||
ramstage-y += ramstage.c
|
||||
ramstage-y += gpio.c
|
||||
ramstage-y += hda_verb.c
|
||||
ramstage-y += tas5825m.c
|
||||
|
@@ -219,7 +219,16 @@ chip soc/intel/cannonlake
|
||||
device pci 1f.3 on # Intel HDA
|
||||
register "PchHdaAudioLinkHda" = "1"
|
||||
end
|
||||
device pci 1f.4 on end # SMBus
|
||||
device pci 1f.4 on # SMBus
|
||||
chip drivers/i2c/tas5825m
|
||||
register "id" = "0"
|
||||
device i2c 4e on end # (8bit address: 0x9c)
|
||||
end
|
||||
chip drivers/i2c/tas5825m
|
||||
register "id" = "1"
|
||||
device i2c 4f on end # (8bit address: 0x9e)
|
||||
end
|
||||
end
|
||||
device pci 1f.5 on end # PCH SPI
|
||||
device pci 1f.6 off end # GbE
|
||||
end
|
||||
|
1240
src/mainboard/system76/bonw14/tas5825m-normal.c
Normal file
1240
src/mainboard/system76/bonw14/tas5825m-normal.c
Normal file
File diff suppressed because it is too large
Load Diff
1240
src/mainboard/system76/bonw14/tas5825m-sub.c
Normal file
1240
src/mainboard/system76/bonw14/tas5825m-sub.c
Normal file
File diff suppressed because it is too large
Load Diff
15
src/mainboard/system76/bonw14/tas5825m.c
Normal file
15
src/mainboard/system76/bonw14/tas5825m.c
Normal file
@@ -0,0 +1,15 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <drivers/i2c/tas5825m/tas5825m.h>
|
||||
|
||||
#include "tas5825m-normal.c"
|
||||
#include "tas5825m-sub.c"
|
||||
|
||||
int tas5825m_setup(struct device *dev, int id)
|
||||
{
|
||||
if (id == 0)
|
||||
return tas5825m_setup_normal(dev);
|
||||
if (id == 1)
|
||||
return tas5825m_setup_sub(dev);
|
||||
return -1;
|
||||
}
|
Reference in New Issue
Block a user