Skip to content

Commit 884c8a0

Browse files
committed
Merge branch 'refs/heads/bits/110-smc' into asahi-wip
2 parents 3d5f43d + 9a5dd94 commit 884c8a0

27 files changed

Lines changed: 2884 additions & 56 deletions

File tree

Documentation/core-api/printk-formats.rst

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

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

drivers/gpio/Kconfig

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

1335+
config GPIO_MACSMC
1336+
tristate "Apple Mac SMC GPIO"
1337+
depends on APPLE_SMC
1338+
default ARCH_APPLE
1339+
help
1340+
Support for GPIOs controlled by the SMC microcontroller on Apple Mac
1341+
systems.
1342+
1343+
This driver can also be built as a module. If so, the module will be
1344+
called gpio-macsmc.
1345+
13351346
config GPIO_MADERA
13361347
tristate "Cirrus Logic Madera class codecs"
13371348
depends on PINCTRL_MADERA

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ obj-$(CONFIG_GPIO_LP873X) += gpio-lp873x.o
8989
obj-$(CONFIG_GPIO_LP87565) += gpio-lp87565.o
9090
obj-$(CONFIG_GPIO_LPC18XX) += gpio-lpc18xx.o
9191
obj-$(CONFIG_GPIO_LPC32XX) += gpio-lpc32xx.o
92+
obj-$(CONFIG_GPIO_MACSMC) += gpio-macsmc.o
9293
obj-$(CONFIG_GPIO_MADERA) += gpio-madera.o
9394
obj-$(CONFIG_GPIO_MAX3191X) += gpio-max3191x.o
9495
obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o

0 commit comments

Comments
 (0)