]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
firmware: zynqmp: Store driver data in data section
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Tue, 23 May 2023 12:42:14 +0000 (14:42 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 12 Jun 2023 11:25:01 +0000 (13:25 +0200)
Store the driver data in the data section to make the data usable before
relocation. Additionally mark the driver data static to restrict the
access.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Link: https://lore.kernel.org/r/20230523124215.30915-5-stefan.herbrechtsmeier-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/firmware/firmware-zynqmp.c

index e1abfb4cec3202bcb14e4d02d2461c59ec5e2c1c..74d1b67541e31cfb548d56a828bcc819a0a0ad37 100644 (file)
 #define XST_PM_NO_ACCESS       2002L
 #define XST_PM_ALREADY_CONFIGURED      2009L
 
-struct zynqmp_power {
+static struct zynqmp_power {
        struct mbox_chan tx_chan;
        struct mbox_chan rx_chan;
-} zynqmp_power = {};
+} zynqmp_power __section(".data");
 
 #define NODE_ID_LOCATION       5