Skip to content

Commit 7ada436

Browse files
committed
Merge branch 'bits/110-smc' into asahi-wip
2 parents 87b4912 + 2d6d199 commit 7ada436

29 files changed

Lines changed: 3780 additions & 6 deletions

Documentation/core-api/printk-formats.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,38 @@ Examples::
648648
%p4cc Y10 little-endian (0x20303159)
649649
%p4cc NV12 big-endian (0xb231564e)
650650

651+
Generic FourCC code
652+
-------------------
653+
654+
::
655+
%p4c[hnbl] gP00 (0x67503030)
656+
657+
Print a generic FourCC code, as both ASCII characters and its numerical
658+
value as hexadecimal.
659+
660+
The additional ``h``, ``r``, ``b``, and ``l`` specifiers are used to specify
661+
host, reversed, big or little endian order data respectively. Host endian
662+
order means the data is interpreted as a 32-bit integer and the most
663+
significant byte is printed first; that is, the character code as printed
664+
matches the byte order stored in memory on big-endian systems, and is reversed
665+
on little-endian systems.
666+
667+
Passed by reference.
668+
669+
Examples for a little-endian machine, given &(u32)0x67503030::
670+
671+
%p4ch gP00 (0x67503030)
672+
%p4cl gP00 (0x67503030)
673+
%p4cb 00Pg (0x30305067)
674+
%p4cr 00Pg (0x30305067)
675+
676+
Examples for a big-endian machine, given &(u32)0x67503030::
677+
678+
%p4ch gP00 (0x67503030)
679+
%p4cl 00Pg (0x30305067)
680+
%p4cb gP00 (0x67503030)
681+
%p4cr 00Pg (0x30305067)
682+
651683
Rust
652684
----
653685

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,15 @@ F: include/dt-bindings/interrupt-controller/apple-aic.h
22632263
F: include/dt-bindings/pinctrl/apple.h
22642264
F: include/linux/soc/apple/*
22652265

2266+
ARM/APPLE SMC HWMON DRIVER
2267+
M: James Calligeros <jcalligeros99@gmail.com>
2268+
L: asahi@lists.linux.dev
2269+
S: Maintained
2270+
W: https://asahilinux.org
2271+
B: https://github.com/AsahiLinux/linux/issues
2272+
C: irc://irc.oftc.net/asahi-dev
2273+
F: drivers/hwmon/macsmc-hwmon.c
2274+
22662275
ARM/ARTPEC MACHINE SUPPORT
22672276
M: Jesper Nilsson <jesper.nilsson@axis.com>
22682277
M: Lars Persson <lars.persson@axis.com>

drivers/gpio/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,17 @@ config GPIO_LP87565
14391439
This driver can also be built as a module. If so, the module will be
14401440
called gpio-lp87565.
14411441

1442+
config GPIO_MACSMC
1443+
tristate "Apple Mac SMC GPIO"
1444+
depends on APPLE_SMC
1445+
default ARCH_APPLE
1446+
help
1447+
Support for GPIOs controlled by the SMC microcontroller on Apple Mac
1448+
systems.
1449+
1450+
This driver can also be built as a module. If so, the module will be
1451+
called gpio-macsmc.
1452+
14421453
config GPIO_MADERA
14431454
tristate "Cirrus Logic Madera class codecs"
14441455
depends on PINCTRL_MADERA

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ obj-$(CONFIG_GPIO_LP873X) += gpio-lp873x.o
9494
obj-$(CONFIG_GPIO_LP87565) += gpio-lp87565.o
9595
obj-$(CONFIG_GPIO_LPC18XX) += gpio-lpc18xx.o
9696
obj-$(CONFIG_GPIO_LPC32XX) += gpio-lpc32xx.o
97+
obj-$(CONFIG_GPIO_MACSMC) += gpio-macsmc.o
9798
obj-$(CONFIG_GPIO_MADERA) += gpio-madera.o
9899
obj-$(CONFIG_GPIO_MAX3191X) += gpio-max3191x.o
99100
obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o

0 commit comments

Comments
 (0)