The NetBSD Project

CVS log for src/sys/arch/arm/acpi/acpi_platform.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / acpi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Fri Apr 7 08:55:29 2023 UTC (10 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.35: +12 -13 lines
Diff to previous 1.35 (colored)

Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 24 06:56:40 2023 UTC (13 months ago) by mlelstv
Branch: MAIN
Changes since 1.34: +6 -3 lines
Diff to previous 1.34 (colored)

Add support for FIFOs and hardware flow-control to plcom driver.
Add a PLCOM_TYPE_GENERIC_UART variant to match SBSA requirements.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Nov 16 11:54:26 2022 UTC (15 months, 1 week ago) by skrll
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

typo in comment

Revision 1.33 / (download) - annotate - [select for diffs], Tue Sep 6 11:55:51 2022 UTC (17 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.32: +3 -5 lines
Diff to previous 1.32 (colored)

Use the ACPICA define ACPI_DBG2_16550_WITH_GAS

Revision 1.32 / (download) - annotate - [select for diffs], Sun Oct 24 11:58:23 2021 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.31: +31 -7 lines
Diff to previous 1.31 (colored)

More SPCR cleanup:

 - For 16550 style UARTs, always honour GAS if BitWidth != 0
 - Use BitWidth instead of AccessWidth to determine register stride
 - For baud rate ID of 0, assume 115200 until we have a way of probing
   the baud rate configured by firmware.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Oct 23 17:45:55 2021 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.30: +13 -4 lines
Diff to previous 1.30 (colored)

It seems that there are three 16550 types for SPCR:

 - 0x0000: Fully 16550-compatible (1-byte I/O)
 - 0x0001: 16550 subset compatible with DBGP Revision 1 (4-byte MMIO)
 - 0x0012: 16550-compatible with parameters defined in GAS

So assume reg_width for types 0 and 1, and only look at GAS for type 12h.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 21 00:09:28 2021 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

baud_rate is signed now

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 20 23:03:40 2021 UTC (2 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

SPCR_BAUD_DEFAULT maps better to -1 than 0

Suggested by jmcneill@

Revision 1.28 / (download) - annotate - [select for diffs], Sat Aug 7 21:24:56 2021 UTC (2 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

acpi: call smccc_probe() after PSCI init

Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 6 19:38:53 2021 UTC (2 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

Arm: Add support for SMC Calling Convention

Arm DEN0028 defines a calling mechanism used with Secure Monitor Call (SMC)
and Hypervisor Call (HVC) instructions. To discover SMCCC, we must:

 1) Find the PSCI conduit (either via ACPI FADT, or Device Tree)
 2) Use PSCI_VERSION to determine whether PSCI_FEATURES is supported
 3) Call PSCI_FEATURES with SMCCC_VERSION to determine the implementation
    version.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:10 2021 UTC (2 years, 9 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

sync with head

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:23 2021 UTC (2 years, 9 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 12 23:22:32 2021 UTC (2 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored)

- Define a device call for PCI bus instances to fetch a direct child's
  device handle given the device's device/function #s (extracted from
  a pcitag_t).  Use it to associate the handle with the child device
  at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
  sparc64 device_register(); it is no longer needed.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:25 2021 UTC (2 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:15 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.21.2.1: +14 -2 lines
Diff to previous 1.21.2.1 (colored) next main 1.22 (colored)

Sync with HEAD.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:21:07 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

- FDT device enumeration now sets the device handle using CFARG_DEVHANDLE.
- fdtbus_device_register() is now obsolete, so G/C it.
- of_device_register() is now obsolete, so G/C it.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Feb 12 12:26:09 2021 UTC (3 years ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.23: +10 -2 lines
Diff to previous 1.23 (colored)

Reset serial terminal to default state at boot.

UEFI may leave the serial console in an undesireable state (incorrect
foreground and background colour, etc) when exiting. Send ANSI escape
sequences when setting up the early console attachments to turn off
character attributes and erase from the cursor to the end of the screen.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 4 22:36:52 2021 UTC (3 years ago) by thorpej
Branch: MAIN
Changes since 1.22: +6 -2 lines
Diff to previous 1.22 (colored)

Call acpi_device_register() / fdtbus_device_register() as approrpriate.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:37:47 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.21: +124 -73 lines
Diff to previous 1.21 (colored)

Sync w/ HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 6 14:01:40 2020 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.21: +124 -73 lines
Diff to previous 1.21 (colored)

acpi: Cleanup SPCR setup and style fixes.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Oct 10 15:25:31 2020 UTC (3 years, 4 months ago) by jmcneill
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.20: +2 -17 lines
Diff to previous 1.20 (colored)

Support early FB console attachment when booting with a devicetree
(non-ACPI mode). Inform the pciconf code about the framebuffer to
prevent pciconf from changing resources out from under us when framebuffer
memory is in VRAM.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 28 11:54:22 2020 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.19: +2 -4 lines
Diff to previous 1.19 (colored)

Get rid of a4x bus_space tag from fdtbus_attach_args. The only consumer
of this was various com(4) glue so modify all of that to use the new
com_init_regs_stride instead.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Sep 13 21:41:17 2020 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored)

Make Arm MD ACPI code big endian friendly.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:32 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.12.2.2: +35 -11 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Mon Sep 23 07:06:31 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.15.2.1: +13 -116 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #231):

	sys/arch/arm/acpi/acpi_platform.c: revision 1.18
	sys/arch/arm/acpi/files.acpi: revision 1.7
	sys/arch/arm/acpi/acpi_simplefb.c: revision 1.1
	sys/arch/arm/acpi/acpi_simplefb.h: revision 1.1

Use vcons for simplefb preattach to speed up early console messages.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 22 18:31:59 2019 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.17: +13 -116 lines
Diff to previous 1.17 (colored)

Use vcons for simplefb preattach to speed up early console messages.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Aug 19 10:53:31 2019 UTC (4 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Use a unique name for the acpi ARM_PLATFORM definition

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Sun Aug 4 19:24:18 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
Changes since 1.15: +3 -8 lines
Diff to previous 1.15 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #17):

	sys/arch/arm/acpi/acpi_platform.c: revision 1.16

Ignore AccessWidth (PL011 and SBSA console always needs 32-bit access)

Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 2 19:49:17 2019 UTC (4 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +3 -8 lines
Diff to previous 1.15 (colored)

Ignore AccessWidth (PL011 and SBSA console always needs 32-bit access)

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 24 19:37:52 2019 UTC (4 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.14: +120 -2 lines
Diff to previous 1.14 (colored)

Add early fb console support

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jun 22 19:47:27 2019 UTC (4 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.13: +8 -22 lines
Diff to previous 1.13 (colored)

Finish the job

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 19 13:39:18 2019 UTC (4 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +32 -4 lines
Diff to previous 1.12 (colored)

Provide a 64-bit dma tag and use a coherent tag unless CCA=0

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:50 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.12.2.1: +320 -0 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD

Revision 1.12.2.1, Thu May 23 15:54:28 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.12: +0 -320 lines
FILE REMOVED

file acpi_platform.c was added on branch phil-wifi on 2019-06-10 22:05:50 +0000

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 23 15:54:28 2019 UTC (4 years, 9 months ago) by ryo
Branch: MAIN
CVS Tags: phil-wifi-20190609
Branch point for: phil-wifi
Changes since 1.11: +7 -2 lines
Diff to previous 1.11 (colored)

fix build without options MULTIPROCESSOR

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:32 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.4.2.3: +76 -12 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 21 14:50:18 2018 UTC (5 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, isaki-audio2-base, isaki-audio2
Changes since 1.10: +35 -11 lines
Diff to previous 1.10 (colored)

Use SPCR to force console selection for com@acpi. This is needed because
we may use a non-standard bus_space tag (a4x) to attach the console early,
which breaks com_is_console.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 28 22:29:36 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +37 -2 lines
Diff to previous 1.9 (colored)

Force a matching com@puc by seg/bus/dev/func to be the console device if specified in SPCR

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 28 03:17:13 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +9 -16 lines
Diff to previous 1.8 (colored)

Replace SPCR_INTERFACE_TYPE_* defines with ACPI_DBG2_* from acpica. Suggested by msaitoh@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 27 18:29:17 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +14 -2 lines
Diff to previous 1.7 (colored)

Add support for SPCR 16550 and 16450 interface types

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:17 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.4.2.2: +16 -9 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 24 22:17:12 2018 UTC (5 years, 3 months ago) by rjs
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

Allow building when plcom isn't used.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 30 16:41:51 2018 UTC (5 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.5: +2 -8 lines
Diff to previous 1.5 (colored)

Retire fdt_putchar and ap_early_put_char in favour of uartputc.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 28 10:21:42 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +14 -3 lines
Diff to previous 1.4 (colored)

Add support for EFI runtime services on aarch64.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:24 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.4.2.1: +244 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Sync with head

Revision 1.4.2.1, Fri Oct 19 15:29:00 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.4: +0 -244 lines
FILE REMOVED

file acpi_platform.c was added on branch pgoyette-compat on 2018-10-20 06:58:24 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 19 15:29:00 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Branch point for: pgoyette-compat
Changes since 1.3: +37 -19 lines
Diff to previous 1.3 (colored)

Fix BCM2835 console support.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 15 20:09:06 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +48 -12 lines
Diff to previous 1.2 (colored)

Handle more plcom-style console types

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 13 00:08:29 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +10 -3 lines
Diff to previous 1.1 (colored)

Don't rely on PSCI node in FDT to reboot

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 12 22:20:04 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN

Add ACPI platform glue and basic device drivers (CPU, GIC, Generic Timer,
SBSA UART).

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>