1 From abea9147d22704cdfb68b7161a71dc9fb8fcb0b0 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= <noralf@tronnes.org>
3 Date: Fri, 26 Jun 2015 14:25:01 +0200
4 Subject: [PATCH] firmware: bcm2835: Support ARCH_BCM270x
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Support booting without Device Tree.
11 Load driver early because of lacking support for deferred probing
14 Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
16 firmware: bcm2835: Don't turn on USB power
18 The raspberrypi-power driver is now used to turn on USB power.
20 This partly reverts commit:
21 firmware: bcm2835: Support ARCH_BCM270x
23 Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
25 drivers/firmware/raspberrypi.c | 17 ++++++++++++++++-
26 1 file changed, 16 insertions(+), 1 deletion(-)
28 --- a/drivers/firmware/raspberrypi.c
29 +++ b/drivers/firmware/raspberrypi.c
30 @@ -32,6 +32,8 @@ struct rpi_firmware {
31 struct kref consumers;
34 +static struct platform_device *g_pdev;
36 static DEFINE_MUTEX(transaction_lock);
38 static void response_callback(struct mbox_client *cl, void *msg)
39 @@ -279,6 +281,7 @@ static int rpi_firmware_probe(struct pla
40 kref_init(&fw->consumers);
42 platform_set_drvdata(pdev, fw);
45 rpi_firmware_print_firmware_revision(fw);
46 rpi_register_hwmon_driver(dev, fw);
47 @@ -307,6 +310,7 @@ static int rpi_firmware_remove(struct pl
55 @@ -381,7 +385,18 @@ static struct platform_driver rpi_firmwa
56 .shutdown = rpi_firmware_shutdown,
57 .remove = rpi_firmware_remove,
59 -module_platform_driver(rpi_firmware_driver);
61 +static int __init rpi_firmware_init(void)
63 + return platform_driver_register(&rpi_firmware_driver);
65 +subsys_initcall(rpi_firmware_init);
67 +static void __init rpi_firmware_exit(void)
69 + platform_driver_unregister(&rpi_firmware_driver);
71 +module_exit(rpi_firmware_exit);
73 MODULE_AUTHOR("Eric Anholt <eric@anholt.net>");
74 MODULE_DESCRIPTION("Raspberry Pi firmware driver");