Skip to content

Commit be76615

Browse files
committed
Merge branch 'refs/heads/bits/110-smc' into asahi-wip
2 parents c6e4669 + 107ed86 commit be76615

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
@@ -625,6 +625,38 @@ Examples::
625625
%p4cc Y10 little-endian (0x20303159)
626626
%p4cc NV12 big-endian (0xb231564e)
627627

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

drivers/gpio/Kconfig

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

1284+
config GPIO_MACSMC
1285+
tristate "Apple Mac SMC GPIO"
1286+
depends on APPLE_SMC
1287+
default ARCH_APPLE
1288+
help
1289+
Support for GPIOs controlled by the SMC microcontroller on Apple Mac
1290+
systems.
1291+
1292+
This driver can also be built as a module. If so, the module will be
1293+
called gpio-macsmc.
1294+
12841295
config GPIO_MADERA
12851296
tristate "Cirrus Logic Madera class codecs"
12861297
depends on PINCTRL_MADERA

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ obj-$(CONFIG_GPIO_LP873X) += gpio-lp873x.o
8585
obj-$(CONFIG_GPIO_LP87565) += gpio-lp87565.o
8686
obj-$(CONFIG_GPIO_LPC18XX) += gpio-lpc18xx.o
8787
obj-$(CONFIG_GPIO_LPC32XX) += gpio-lpc32xx.o
88+
obj-$(CONFIG_GPIO_MACSMC) += gpio-macsmc.o
8889
obj-$(CONFIG_GPIO_MADERA) += gpio-madera.o
8990
obj-$(CONFIG_GPIO_MAX3191X) += gpio-max3191x.o
9091
obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o

0 commit comments

Comments
 (0)