Skip to content

Commit cd18cb3

Browse files
committed
Merge branch 'bits/110-smc' into asahi-wip
2 parents 120d36c + a566fd3 commit cd18cb3

29 files changed

Lines changed: 3784 additions & 6 deletions

Documentation/core-api/printk-formats.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,38 @@ Examples::
632632
%p4cc Y10 little-endian (0x20303159)
633633
%p4cc NV12 big-endian (0xb231564e)
634634

635+
Generic FourCC code
636+
-------------------
637+
638+
::
639+
%p4c[hnbl] gP00 (0x67503030)
640+
641+
Print a generic FourCC code, as both ASCII characters and its numerical
642+
value as hexadecimal.
643+
644+
The additional ``h``, ``r``, ``b``, and ``l`` specifiers are used to specify
645+
host, reversed, big or little endian order data respectively. Host endian
646+
order means the data is interpreted as a 32-bit integer and the most
647+
significant byte is printed first; that is, the character code as printed
648+
matches the byte order stored in memory on big-endian systems, and is reversed
649+
on little-endian systems.
650+
651+
Passed by reference.
652+
653+
Examples for a little-endian machine, given &(u32)0x67503030::
654+
655+
%p4ch gP00 (0x67503030)
656+
%p4cl gP00 (0x67503030)
657+
%p4cb 00Pg (0x30305067)
658+
%p4cr 00Pg (0x30305067)
659+
660+
Examples for a big-endian machine, given &(u32)0x67503030::
661+
662+
%p4ch gP00 (0x67503030)
663+
%p4cl 00Pg (0x30305067)
664+
%p4cb gP00 (0x67503030)
665+
%p4cr 00Pg (0x30305067)
666+
635667
Rust
636668
----
637669

MAINTAINERS

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

2096+
ARM/APPLE SMC HWMON DRIVER
2097+
M: James Calligeros <jcalligeros99@gmail.com>
2098+
L: asahi@lists.linux.dev
2099+
S: Maintained
2100+
W: https://asahilinux.org
2101+
B: https://github.com/AsahiLinux/linux/issues
2102+
C: irc://irc.oftc.net/asahi-dev
2103+
F: drivers/hwmon/macsmc-hwmon.c
2104+
20962105
ARM/ARTPEC MACHINE SUPPORT
20972106
M: Jesper Nilsson <jesper.nilsson@axis.com>
20982107
M: Lars Persson <lars.persson@axis.com>

drivers/gpio/Kconfig

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

1423+
config GPIO_MACSMC
1424+
tristate "Apple Mac SMC GPIO"
1425+
depends on APPLE_SMC
1426+
default ARCH_APPLE
1427+
help
1428+
Support for GPIOs controlled by the SMC microcontroller on Apple Mac
1429+
systems.
1430+
1431+
This driver can also be built as a module. If so, the module will be
1432+
called gpio-macsmc.
1433+
14231434
config GPIO_MADERA
14241435
tristate "Cirrus Logic Madera class codecs"
14251436
depends on PINCTRL_MADERA

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ obj-$(CONFIG_GPIO_LP873X) += gpio-lp873x.o
9292
obj-$(CONFIG_GPIO_LP87565) += gpio-lp87565.o
9393
obj-$(CONFIG_GPIO_LPC18XX) += gpio-lpc18xx.o
9494
obj-$(CONFIG_GPIO_LPC32XX) += gpio-lpc32xx.o
95+
obj-$(CONFIG_GPIO_MACSMC) += gpio-macsmc.o
9596
obj-$(CONFIG_GPIO_MADERA) += gpio-madera.o
9697
obj-$(CONFIG_GPIO_MAX3191X) += gpio-max3191x.o
9798
obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o

0 commit comments

Comments
 (0)