diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-02-08 21:58:55 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-02-14 14:10:51 +0100 |
commit | 7d7aa2fd924c27829ec25f825481554dd81bce97 (patch) | |
tree | 658b87b89331670266163e522ea5fb52535633cb /target/linux/brcm2708/patches-4.19/950-0255-firmware-raspberrypi-Report-the-fw-git-hash-during-p.patch | |
parent | e7bfda2c243e66a75ff966ba04c28b1590b5d24c (diff) | |
download | upstream-7d7aa2fd924c27829ec25f825481554dd81bce97.tar.gz upstream-7d7aa2fd924c27829ec25f825481554dd81bce97.tar.bz2 upstream-7d7aa2fd924c27829ec25f825481554dd81bce97.zip |
brcm2708: rename target to bcm27xx
This change makes the names of Broadcom targets consistent by using
the common notation based on SoC/CPU ID (which is used internally
anyway), bcmXXXX instead of brcmXXXX.
This is even used for target TITLE in make menuconfig already,
only the short target name used brcm so far.
Despite, since subtargets range from bcm2708 to bcm2711, it seems
appropriate to use bcm27xx instead of bcm2708 (again, as already done
for BOARDNAME).
This also renames the packages brcm2708-userland and brcm2708-gpu-fw.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0255-firmware-raspberrypi-Report-the-fw-git-hash-during-p.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.19/950-0255-firmware-raspberrypi-Report-the-fw-git-hash-during-p.patch | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0255-firmware-raspberrypi-Report-the-fw-git-hash-during-p.patch b/target/linux/brcm2708/patches-4.19/950-0255-firmware-raspberrypi-Report-the-fw-git-hash-during-p.patch deleted file mode 100644 index 84d8a89659..0000000000 --- a/target/linux/brcm2708/patches-4.19/950-0255-firmware-raspberrypi-Report-the-fw-git-hash-during-p.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 9abde0ff52268580501b3120629f3c92f0e5d589 Mon Sep 17 00:00:00 2001 -From: Dave Stevenson <dave.stevenson@raspberrypi.org> -Date: Thu, 10 Jan 2019 18:48:54 +0000 -Subject: [PATCH] firmware: raspberrypi: Report the fw git hash during - probe - -The firmware can now report the git hash from which it was built -via the mailbox, so report it during probe. - -Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> ---- - drivers/firmware/raspberrypi.c | 17 +++++++++++++++++ - include/soc/bcm2835/raspberrypi-firmware.h | 1 + - 2 files changed, 18 insertions(+) - ---- a/drivers/firmware/raspberrypi.c -+++ b/drivers/firmware/raspberrypi.c -@@ -263,6 +263,22 @@ rpi_firmware_print_firmware_revision(str - } - - static void -+rpi_firmware_print_firmware_hash(struct rpi_firmware *fw) -+{ -+ u32 hash[5]; -+ int ret = rpi_firmware_property(fw, -+ RPI_FIRMWARE_GET_FIRMWARE_HASH, -+ hash, sizeof(hash)); -+ -+ if (ret) -+ return; -+ -+ dev_info(fw->cl.dev, -+ "Firmware hash is %08x%08x%08x%08x%08x\n", -+ hash[0], hash[1], hash[2], hash[3], hash[4]); -+} -+ -+static void - rpi_register_hwmon_driver(struct device *dev, struct rpi_firmware *fw) - { - u32 packet; -@@ -308,6 +324,7 @@ static int rpi_firmware_probe(struct pla - g_pdev = pdev; - - rpi_firmware_print_firmware_revision(fw); -+ rpi_firmware_print_firmware_hash(fw); - rpi_register_hwmon_driver(dev, fw); - - return 0; ---- a/include/soc/bcm2835/raspberrypi-firmware.h -+++ b/include/soc/bcm2835/raspberrypi-firmware.h -@@ -42,6 +42,7 @@ enum rpi_firmware_property_tag { - RPI_FIRMWARE_PROPERTY_END = 0, - RPI_FIRMWARE_GET_FIRMWARE_REVISION = 0x00000001, - RPI_FIRMWARE_GET_FIRMWARE_VARIANT = 0x00000002, -+ RPI_FIRMWARE_GET_FIRMWARE_HASH = 0x00000003, - - RPI_FIRMWARE_SET_CURSOR_INFO = 0x00008010, - RPI_FIRMWARE_SET_CURSOR_STATE = 0x00008011, |