| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| 23 10 13 0E 16 22 B5 08 00 00 00 00 0A 01 00 00 | ||
| 00 00 09 00 00 00 00 00 AB 00 90 A8 90 C0 08 60 | ||
| 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 C9 00 C5 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 20 20 20 20 20 20 20 | ||
| 20 20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| 23 11 13 0E 86 21 B5 18 00 40 00 00 0A 02 00 00 | ||
| 00 00 03 00 00 00 00 00 2B 00 90 A8 90 C0 08 60 | ||
| 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 B9 00 C1 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 20 20 20 20 20 20 20 | ||
| 20 20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| 23 11 13 0E 86 21 B5 18 00 40 00 00 0A 02 00 00 | ||
| 00 00 03 00 00 00 00 00 2B 00 90 A8 90 C0 08 60 | ||
| 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 C9 00 93 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 20 20 20 20 20 20 20 | ||
| 20 20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ||
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| /* SPDX-License-Identifier: ISC OR GPL-2.0-only */ | ||
|
|
||
| /* | ||
| * ldivmod.S: signed 64 bit division (quotient and remainder) | ||
| * | ||
| * Taken from CrOS EC: third_party/libaeabi-cortexm0/core/cortex-m0/ldivmod.S | ||
| */ | ||
|
|
||
| #include <arch/asm.h> | ||
|
|
||
|
|
||
| @ {long long quotient, long long remainder} | ||
| @ __aeabi_ldivmod(long long numerator, long long denominator) | ||
| @ | ||
| @ Divide r1:r0 by r3:r2 and return the quotient in r1:r0 and the remainder in | ||
| @ r3:r2 (all signed) | ||
| @ | ||
|
|
||
| ENTRY(__aeabi_ldivmod) | ||
|
|
||
| cmp r1, #0 | ||
| bge L_num_pos | ||
|
|
||
| push {r4, lr} | ||
| movs r4, #0 @ num = -num | ||
| rsbs r0, r0, #0 | ||
| sbcs r4, r1 | ||
| mov r1, r4 | ||
|
|
||
| cmp r3, #0 | ||
| bge L_neg_both | ||
|
|
||
| movs r4, #0 @ den = -den | ||
| rsbs r2, r2, #0 | ||
| sbcs r4, r3 | ||
| mov r3, r4 | ||
| bl __aeabi_uldivmod | ||
| movs r4, #0 @ rem = -rem | ||
| rsbs r2, r2, #0 | ||
| sbcs r4, r3 | ||
| mov r3, r4 | ||
| pop {r4, pc} | ||
|
|
||
| L_neg_both: | ||
| bl __aeabi_uldivmod | ||
| movs r4, #0 @ quot = -quot | ||
| rsbs r0, r0, #0 | ||
| sbcs r4, r1 | ||
| mov r1, r4 | ||
| movs r4, #0 @ rem = -rem | ||
| rsbs r2, r2, #0 | ||
| sbcs r4, r3 | ||
| mov r3, r4 | ||
| pop {r4, pc} | ||
|
|
||
| L_num_pos: | ||
| cmp r3, #0 | ||
| blt L_den_neg | ||
| push {r4, lr} | ||
| bl __aeabi_uldivmod @ offset too big for b / bge | ||
| pop {r4, pc} | ||
|
|
||
| L_den_neg: | ||
| push {r4, lr} | ||
| movs r4, #0 @ den = -den | ||
| rsbs r2, r2, #0 | ||
| sbcs r4, r3 | ||
| mov r3, r4 | ||
| bl __aeabi_uldivmod | ||
| movs r4, #0 @ quot = -quot | ||
| rsbs r0, r0, #0 | ||
| sbcs r4, r1 | ||
| mov r1, r4 | ||
| pop {r4, pc} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef _COMMONLIB_RATIONAL_H_ | ||
| #define _COMMONLIB_RATIONAL_H_ | ||
|
|
||
| #include <stddef.h> | ||
|
|
||
| /* | ||
| * Calculate the best rational approximation for a given fraction, | ||
| * with the restriction of maximum numerator and denominator. | ||
| * For example, to find the approximation of 3.1415 with 5 bit denominator | ||
| * and 8 bit numerator fields: | ||
| * | ||
| * rational_best_approximation(31415, 10000, | ||
| * (1 << 8) - 1, (1 << 5) - 1, &n, &d); | ||
| */ | ||
| void rational_best_approximation( | ||
| unsigned long numerator, unsigned long denominator, | ||
| unsigned long max_numerator, unsigned long max_denominator, | ||
| unsigned long *best_numerator, unsigned long *best_denominator); | ||
|
|
||
| #endif /* _COMMONLIB_RATIONAL_H_ */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| /* | ||
| * Helper functions for rational numbers. | ||
| * | ||
| * Copyright (C) 2009 emlix GmbH, Oskar Schirmer <oskar@scara.com> | ||
| * Copyright (C) 2019 Trent Piepho <tpiepho@gmail.com> | ||
| */ | ||
|
|
||
| #include <commonlib/helpers.h> | ||
| #include <commonlib/rational.h> | ||
| #include <limits.h> | ||
|
|
||
| /* | ||
| * For theoretical background, see: | ||
| * https://en.wikipedia.org/wiki/Continued_fraction | ||
| */ | ||
| void rational_best_approximation( | ||
| unsigned long numerator, unsigned long denominator, | ||
| unsigned long max_numerator, unsigned long max_denominator, | ||
| unsigned long *best_numerator, unsigned long *best_denominator) | ||
| { | ||
| /* | ||
| * n/d is the starting rational, where both n and d will | ||
| * decrease in each iteration using the Euclidean algorithm. | ||
| * | ||
| * dp is the value of d from the prior iteration. | ||
| * | ||
| * n2/d2, n1/d1, and n0/d0 are our successively more accurate | ||
| * approximations of the rational. They are, respectively, | ||
| * the current, previous, and two prior iterations of it. | ||
| * | ||
| * a is current term of the continued fraction. | ||
| */ | ||
| unsigned long n, d, n0, d0, n1, d1, n2, d2; | ||
| n = numerator; | ||
| d = denominator; | ||
| n0 = d1 = 0; | ||
| n1 = d0 = 1; | ||
|
|
||
| for (;;) { | ||
| unsigned long dp, a; | ||
|
|
||
| if (d == 0) | ||
| break; | ||
| /* | ||
| * Find next term in continued fraction, 'a', via | ||
| * Euclidean algorithm. | ||
| */ | ||
| dp = d; | ||
| a = n / d; | ||
| d = n % d; | ||
| n = dp; | ||
|
|
||
| /* | ||
| * Calculate the current rational approximation (aka | ||
| * convergent), n2/d2, using the term just found and | ||
| * the two prior approximations. | ||
| */ | ||
| n2 = n0 + a * n1; | ||
| d2 = d0 + a * d1; | ||
|
|
||
| /* | ||
| * If the current convergent exceeds the maximum, then | ||
| * return either the previous convergent or the | ||
| * largest semi-convergent, the final term of which is | ||
| * found below as 't'. | ||
| */ | ||
| if ((n2 > max_numerator) || (d2 > max_denominator)) { | ||
| unsigned long t = ULONG_MAX; | ||
|
|
||
| if (d1) | ||
| t = (max_denominator - d0) / d1; | ||
| if (n1) | ||
| t = MIN(t, (max_numerator - n0) / n1); | ||
|
|
||
| /* | ||
| * This tests if the semi-convergent is closer than the previous | ||
| * convergent. If d1 is zero there is no previous convergent as | ||
| * this is the 1st iteration, so always choose the semi-convergent. | ||
| */ | ||
| if (!d1 || 2u * t > a || (2u * t == a && d0 * dp > d1 * d)) { | ||
| n1 = n0 + t * n1; | ||
| d1 = d0 + t * d1; | ||
| } | ||
| break; | ||
| } | ||
| n0 = n1; | ||
| n1 = n2; | ||
| d0 = d1; | ||
| d1 = d2; | ||
| } | ||
|
|
||
| *best_numerator = n1; | ||
| *best_denominator = d1; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| const char *lenovo_mainboard_partnumber(void); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| struct drivers_i2c_ptn3460_config { | ||
|
|
||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| void intel_gmbus_read_edid(u8 *gmbus_mmio, u8 bus, u8 slave, u8 *edid, u32 edid_size); | ||
| void intel_gmbus_stop(u8 *gmbus_mmio); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| config DRIVERS_NXP_UWB_SR1XX | ||
| bool "NXP UWB SR1xx driver" | ||
| help | ||
| Enable support for a NXP UWB SR1xx (e.g., SR150) chip. | ||
|
|
||
| A configuration should be added to device tree like below: | ||
| device ref gspi0 on | ||
| chip drivers/nxp/uwb | ||
| # The ACPI name of the device. Note it will be | ||
| # truncated to 4 characters if a longer name is given. | ||
| register "name" = ""UWB0"" | ||
|
|
||
| # Description of the module. | ||
| register "desc" = ""NXP UWB Module"" | ||
|
|
||
| # SPI bus speed (in Hz). | ||
| register "speed" = "1000000" | ||
|
|
||
| # The GPIO connected to SENSORINT. | ||
| register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_HIGH(GPP_F21)" | ||
|
|
||
| # The GPIO connected to CHIP_EN. | ||
| register "ce_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A12)" | ||
|
|
||
| # The GPIO connected to WAKEUP. | ||
| register "ri_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A7)" | ||
|
|
||
| device spi 0 on end | ||
| end | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ramstage-$(CONFIG_DRIVER_NXP_UWB_SR1XX) += uwb.c |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef __NXP_UWB_CHIP_H__ | ||
| #define __NXP_UWB_CHIP_H__ | ||
|
|
||
| #include <acpi/acpi_device.h> | ||
|
|
||
| struct drivers_nxp_uwb_config { | ||
| /* ACPI Device Name */ | ||
| const char *name; | ||
|
|
||
| /* Device Description */ | ||
| const char *desc; | ||
|
|
||
| /* ACPI _UID */ | ||
| unsigned int uid; | ||
|
|
||
| /* Bus speed in Hz (default 1MHz) */ | ||
| unsigned int speed; | ||
|
|
||
| /* Use GPIO based interrupt instead of PIRQ */ | ||
| struct acpi_gpio irq_gpio; | ||
| struct acpi_gpio ce_gpio; | ||
| struct acpi_gpio ri_gpio; | ||
| }; | ||
|
|
||
| #endif /* __NXP_UWB_CHIP_H__ */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <acpi/acpi_device.h> | ||
| #include <acpi/acpigen.h> | ||
| #include <console/console.h> | ||
| #include <device/device.h> | ||
| #include <device/path.h> | ||
| #include <device/spi.h> | ||
| #include <spi-generic.h> | ||
| #include <string.h> | ||
| #include "chip.h" | ||
|
|
||
| static int spi_acpi_get_bus(const struct device *dev) | ||
| { | ||
| struct device *spi_dev; | ||
| struct device_operations *ops; | ||
|
|
||
| if (!dev->bus || !dev->bus->dev) | ||
| return -1; | ||
|
|
||
| spi_dev = dev->bus->dev; | ||
| ops = spi_dev->ops; | ||
|
|
||
| if (ops && ops->ops_spi_bus && ops->ops_spi_bus->dev_to_bus) | ||
| return ops->ops_spi_bus->dev_to_bus(spi_dev); | ||
|
|
||
| return -1; | ||
| } | ||
|
|
||
| static int write_gpio(struct acpi_gpio *gpio, int *curr_index) | ||
| { | ||
| int ret = -1; | ||
|
|
||
| if (gpio->pin_count == 0) | ||
| return ret; | ||
|
|
||
| acpi_device_write_gpio(gpio); | ||
| ret = *curr_index; | ||
| (*curr_index)++; | ||
|
|
||
| return ret; | ||
| } | ||
|
|
||
| static void nxp_uwb_fill_ssdt(const struct device *dev) | ||
| { | ||
| struct drivers_nxp_uwb_config *config = dev->chip_info; | ||
| const char *scope = acpi_device_scope(dev); | ||
| const char *path = acpi_device_path(dev); | ||
| struct acpi_spi spi = { | ||
| .device_select = dev->path.spi.cs, | ||
| .speed = config->speed ? : 1 * MHz, | ||
| .resource = scope, | ||
| .device_select_polarity = SPI_POLARITY_LOW, | ||
| .wire_mode = SPI_4_WIRE_MODE, | ||
| .data_bit_length = 8, | ||
| .clock_phase = SPI_CLOCK_PHASE_FIRST, | ||
| .clock_polarity = SPI_POLARITY_LOW, | ||
| }; | ||
| int curr_index = 0; | ||
| int irq_gpio_index = -1; | ||
| int ce_gpio_index = -1; | ||
| int ri_gpio_index = -1; | ||
|
|
||
| if (!scope) | ||
| return; | ||
|
|
||
| if (spi_acpi_get_bus(dev) == -1) { | ||
| printk(BIOS_ERR, "%s: Cannot get bus for device.\n", | ||
| dev_path(dev)); | ||
| return; | ||
| } | ||
|
|
||
| /* Device */ | ||
| acpigen_write_scope(scope); | ||
| acpigen_write_device(acpi_device_name(dev)); | ||
| acpigen_write_name_string("_HID", ACPI_DT_NAMESPACE_HID); | ||
| acpigen_write_name_integer("_UID", config->uid); | ||
| if (config->desc) | ||
| acpigen_write_name_string("_DDN", config->desc); | ||
| acpigen_write_STA(acpi_device_status(dev)); | ||
|
|
||
| /* Resources */ | ||
| acpigen_write_name("_CRS"); | ||
| acpigen_write_resourcetemplate_header(); | ||
| acpi_device_write_spi(&spi); | ||
| irq_gpio_index = write_gpio(&config->irq_gpio, &curr_index); | ||
| ce_gpio_index = write_gpio(&config->ce_gpio, &curr_index); | ||
| ri_gpio_index = write_gpio(&config->ri_gpio, &curr_index); | ||
| acpigen_write_resourcetemplate_footer(); | ||
|
|
||
| struct acpi_dp *dsd = acpi_dp_new_table("_DSD"); | ||
| acpi_dp_add_string(dsd, "compatible", "nxp,sr1xx"); | ||
| acpi_dp_add_gpio(dsd, "nxp,sr1xx-irq-gpios", path, irq_gpio_index, 0, | ||
| config->irq_gpio.active_low); | ||
|
|
||
| acpi_dp_add_gpio(dsd, "nxp,sr1xx-ce-gpios", path, ce_gpio_index, 0, | ||
| config->ce_gpio.active_low); | ||
|
|
||
| acpi_dp_add_gpio(dsd, "nxp,sr1xx-ri-gpios", path, ri_gpio_index, 0, | ||
| config->ri_gpio.active_low); | ||
| acpi_dp_write(dsd); | ||
|
|
||
| acpigen_write_device_end(); | ||
| acpigen_write_scope_end(); | ||
|
|
||
| printk(BIOS_INFO, "%s: %s at %s\n", path, | ||
| config->desc ? : dev->chip_ops->name, dev_path(dev)); | ||
| } | ||
|
|
||
| static const char *nxp_uwb_name(const struct device *dev) | ||
| { | ||
| struct drivers_nxp_uwb_config *config = dev->chip_info; | ||
| static char name[ACPI_NAME_BUFFER_SIZE]; | ||
|
|
||
| if (config->name) | ||
| snprintf(name, sizeof(name), "%s", config->name); | ||
| else | ||
| snprintf(name, sizeof(name), "UWB%1X", spi_acpi_get_bus(dev)); | ||
| name[4] = '\0'; | ||
| return name; | ||
| } | ||
|
|
||
| static struct device_operations nxp_uwb_ops = { | ||
| .read_resources = noop_read_resources, | ||
| .set_resources = noop_set_resources, | ||
| .acpi_name = nxp_uwb_name, | ||
| .acpi_fill_ssdt = nxp_uwb_fill_ssdt, | ||
| }; | ||
|
|
||
| static void nxb_uwb_enable(struct device *dev) | ||
| { | ||
| dev->ops = &nxp_uwb_ops; | ||
| } | ||
|
|
||
| struct chip_operations drivers_nxp_uwb_ops = { | ||
| CHIP_NAME("NXP UWB Device") | ||
| .enable_dev = nxb_uwb_enable | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef __ASAN_H | ||
| #define __ASAN_H | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef COREBOOT_TABLES_H | ||
| #define COREBOOT_TABLES_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef BOOT_TABLES_H | ||
| #define BOOT_TABLES_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef _QEMU_DEBUGCON_H_ | ||
| #define _QEMU_DEBUGCON_H_ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef SPKMODEM_H | ||
| #define SPKMODEM_H 1 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CONSOLE_SYSTEM76_EC_H | ||
| #define CONSOLE_SYSTEM76_EC_H 1 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_AMD_MICROCODE_H | ||
| #define CPU_AMD_MICROCODE_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_AMD_MTRR_H | ||
| #define CPU_AMD_MTRR_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_CPU_H | ||
| #define CPU_CPU_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
|
|
||
| #ifndef CPU_PPC64_SCOM_H | ||
| #define CPU_PPC64_SCOM_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
|
|
||
| #ifndef CPU_PPC64_SPR_H | ||
| #define CPU_PPC64_SPR_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_X86_BIST_H | ||
| #define CPU_X86_BIST_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_X86_LAPIC_H | ||
| #define CPU_X86_LAPIC_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_X86_LAPIC_DEF_H | ||
| #define CPU_X86_LAPIC_DEF_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_X86_MSR_H | ||
| #define CPU_X86_MSR_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_X86_MTRR_H | ||
| #define CPU_X86_MTRR_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef __X86_POST_CODE_H__ | ||
| #define __X86_POST_CODE_H__ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CPU_X86_TSC_H | ||
| #define CPU_X86_TSC_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef CTYPE_H | ||
| #define CTYPE_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DELAY_H | ||
| #define DELAY_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DEVICE_H | ||
|
|
||
| #define DEVICE_H | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DEVICE_PATH_H | ||
| #define DEVICE_PATH_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef PCI_DEF_H | ||
| #define PCI_DEF_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef PCI_ROM_H | ||
| #define PCI_ROM_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DEVICE_PNP_H | ||
| #define DEVICE_PNP_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DEVICE_PNP_DEF_H | ||
| #define DEVICE_PNP_DEF_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DEVICE_RESOURCE_H | ||
| #define DEVICE_RESOURCE_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DEVICE_SMBUS_H | ||
| #define DEVICE_SMBUS_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef DEVICE_SMBUS_DEF_H | ||
| #define DEVICE_SMBUS_DEF_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef FALLBACK_H | ||
| #define FALLBACK_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef _IMD_PRIVATE_H_ | ||
| #define _IMD_PRIVATE_H_ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef LIMITS_H | ||
| #define LIMITS_H | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef _MAIN_DECL_H_ | ||
| #define _MAIN_DECL_H_ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef PC80_ISA_DMA_H | ||
| #define PC80_ISA_DMA_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef PC80_KEYBOARD_H | ||
| #define PC80_KEYBOARD_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef RESET_H | ||
| #define RESET_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef SMP_ATOMIC_H | ||
| #define SMP_ATOMIC_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef _SMP_NODE_H_ | ||
| #define _SMP_NODE_H_ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef SMP_SPINLOCK_H | ||
| #define SMP_SPINLOCK_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef STDDEF_H | ||
| #define STDDEF_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef STDLIB_H | ||
| #define STDLIB_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef __SYS_TYPES_H__ | ||
| #define __SYS_TYPES_H__ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef VERSION_H | ||
| #define VERSION_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #ifndef WATCHDOG_H | ||
| #define WATCHDOG_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| -- SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| package CB is | ||
| end CB; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <stdint.h> | ||
| #include <ip_checksum.h> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <delay.h> | ||
| void mdelay(unsigned int msecs) | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <fallback.h> | ||
| #include <watchdog.h> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <string.h> | ||
| void *memchr(const void *s, int c, size_t n) | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <string.h> | ||
|
|
||
| void *memset(void *s, int c, size_t n) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <stdint.h> | ||
| #include <lib.h> | ||
| #include <console/console.h> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <assert.h> | ||
| #include <ctype.h> | ||
| #include <string.h> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <version.h> | ||
| #include <build.h> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* TODO */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* TODO */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <drivers/pc80/pc/ps2_controller.asl> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* No SATA functionality */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| unsigned long northbridge_write_acpi_tables(struct device *device, | ||
| unsigned long start); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* Dummy file */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ | ||
|
|
||
| /* dummy */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,112 +1,11 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <mainboard/google/auron/variant.h> | ||
| #include <soc/pei_wrapper.h> | ||
|
|
||
| void mb_get_spd_map(struct spd_info *spdi) | ||
| { | ||
| spdi->spd_index = variant_get_spd_index(); | ||
| spdi->addresses[0] = SPD_MEMORY_DOWN; | ||
| spdi->addresses[2] = variant_is_dual_channel(spdi->spd_index) ? SPD_MEMORY_DOWN : 0; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,9 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
|
||
| #include <soc/pei_wrapper.h> | ||
|
|
||
| void mb_get_spd_map(struct spd_info *spdi) | ||
| { | ||
| spdi->addresses[0] = 0x50; | ||
| spdi->addresses[2] = 0x52; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,7 +70,7 @@ config ENABLE_DDR_2X_REFRESH | |
| config PCIEXP_AER | ||
| def_bool n | ||
|
|
||
| config EDK2_BOOT_TIMEOUT | ||
| int | ||
| default 5 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /* SPDX-License-Identifier: CC-PDDC */ | ||
|
|
||
| /* Please update the license if adding licensable material. */ |