Commit graph android_kernel_sony_sdm845/firmware
Message SHA1
cassini: use request_firmware
Firmware blob looks like this...
        __le16 load_address
        unsigned char data[]

[akpm@linux-foundation.org: include vmalloc.h]
Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Jaswinder Singh   authored and   David S. Miller   commited 2008-09-22 19:27:10 -07:00
fcaa40669c
Fix modules_install on RO nfs-exported trees.
Fixes http://bugzilla.kernel.org/show_bug.cgi?id=11355 by avoiding a
needless rebuild of the firmware/ihex2fw tool.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

David Woodhouse   commited 2008-09-02 09:28:59 +01:00
1cede1affb
Fix IHEX firmware generation/loading
Fix both the IHEX firmware generation (len field always null, and EOF
marker a byte too short) and loading (struct ihex_binrec needs to be
packed to reflect the on-disk structure).

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Marc Zyngier   authored and   David Woodhouse   commited 2008-08-02 18:36:10 +01:00
85ebd00334
Fix 'make clean' and .gitignore for firmware/ directory.
Provide a .gitignore file, and fix a typo which prevented some of the
generated binary files from being removed on 'make clean'.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Reported-and-tested-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

David Woodhouse   authored and   Linus Torvalds   commited 2008-07-16 07:34:18 -07:00
d25dc7fd47
Fix accidental reference to tg3 firmware
We're not updating the tg3 driver to use request_firmware() yet, but a
reference to its firmware accidentally slipped in as part of commit
c4667746 ("dabusb: use request_firmware()"). Remove it again.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Reported-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

David Woodhouse   authored and   Linus Torvalds   commited 2008-07-14 20:40:39 -07:00
ad1f8bf073
firmware: Correct dependency on CONFIG_EXTRA_FIRMWARE_DIR
When CONFIG_EXTRA_FIRMWARE_DIR gets changed, the filename in the .S file
(which uses .incbin to include the binary) needs to change. When we
renamed the BUILTIN_FIRMWARE_DIR option to EXTRA_FIRMWARE_DIR, we forgot
to update the manual dependency in firmware/Makefile, so it was
depending on a non-existent file in include/config/

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

David Woodhouse   authored and   Linus Torvalds   commited 2008-07-14 18:04:55 -07:00
50515af207
firmware: convert sb16_csp driver to use firmware loader exclusively
Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Jaswinder Singh   authored and   David Woodhouse   commited 2008-07-14 14:45:46 -07:00
d71792ac3d
dsp56k: use request_firmware
Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Jaswinder Singh   authored and   David Woodhouse   commited 2008-07-14 14:45:32 -07:00
7f127d5ed0
edgeport-ti: use request_firmware()
Firmware blob looks like this...
        uint8_t  MajorVersion
        uint8_t  MinorVersion
        __le16   BuildNumber
        uint8_t  data[]

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Jaswinder Singh   authored and   David Woodhouse   commited 2008-07-14 14:44:39 -07:00
d12b219a22
edgeport: use request_firmware()
Version number provided in first HEX record.

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Jaswinder Singh   authored and   David Woodhouse   commited 2008-07-14 14:44:37 -07:00
5b9ea93226
vicam: use request_firmware()
Although it wasn't actually using ihex records before, we use the Intel
HEX record format for this firmware -- because that gives us a simple
way to split it into separate chunks internally as we need, without
loading each part as a separate file.

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Jaswinder Singh   authored and   David Woodhouse   commited 2008-07-14 14:44:32 -07:00
fb54be8755
dabusb: use request_firmware()
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

David Woodhouse   commited 2008-07-14 14:44:21 -07:00
c466774636
cpia2: use request_firmware()
Thanks for Jaswinder Singh for converting the firmware blob itself to ihex.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

David Woodhouse   commited 2008-07-14 14:43:28 -07:00
04a33e406a
ip2: use request_firmware()
Converted with help from Jaswinder Singh

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Alan Cox <alan@redhat.com>

David Woodhouse   commited 2008-07-10 14:49:41 +01:00
547d8bb7dd
firmware: convert Ambassador ATM driver to request_firmware()
Since it had various regions to be loaded to separate addresses, and it
wanted to do them in fairly small chunks anyway, switch it to use the
new ihex code. Encode the start address in the first record.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Chas Williams <chas@cmf.nrl.navy.mil>

David Woodhouse   commited 2008-07-10 14:49:39 +01:00
27d202fff1
whiteheat: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:49:38 +01:00
ec6752f5af
ti_usb_3410_5052: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:49:34 +01:00
5f24e2d6b4
emi62: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:49:14 +01:00
b8e24bfabb
emi26: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:49:12 +01:00
ae93a55bf9
keyspan_pda: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:49:09 +01:00
3edbf98b86
keyspan: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:48:49 +01:00
2971c579f9
ttusb-budget: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:53 +01:00
0a2a736afa
kaweth: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:51 +01:00
79682499d9
smctr: use request_firmware()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:50 +01:00
0f805b86c9
firmware: convert ymfpci driver to use firmware loader exclusively
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:48 +01:00
18ee6dfae8
firmware: convert maestro3 driver to use firmware loader exclusively
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:46 +01:00
a292f404fa
firmware: convert korg1212 driver to use firmware loader exclusively
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:44 +01:00
76770664dc
ihex: Add support for long records to ihex2fw.c
Some drivers could do with using records like Intel HEX, but with each
record being larger than 256 bytes. This has been possible in the binary
representation (struct ihex_binrec) in the kernel since the beginning --
at least of the the current version of history. But we haven't been able
to represent that in the .HEX files which get converted to .fw files.

This adds a '-w' option to ihex2fw to make it interpret the first _two_
bytes of each line as the record length, instead of only one byte. And
adds makefile rules for %.H16->%.fw which use that.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:42 +01:00
59890f74e5
ihex: add ihex2fw tool for converting HEX files into firmware images
Not the straight conversion to binary which objcopy can do for us, but
actually representing each record with its original {addr, length},
because some drivers need that information preserved.

Fix up 'firmware_install' to be able to build $(hostprogs-y) too.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:41 +01:00
8bd6b2229b
firmware: Add firmware installation to modules_install, add firmware_install
For 'make modules_install', install any firmware required by
the modules which are being installed.

Also add a 'make firmware_install' target which doesn't depend on the
configuration, but installs _all_ available in-kernel-tree firmware into
$(INSTALL_FW_PATH), which defaults to /lib/firmware. This is intended
for distributors to make arch-independent (and config-independent)
packages containing firmware.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

David Woodhouse   commited 2008-07-10 14:47:34 +01:00
88ecf814c4
firmware: Add CONFIG_FIRMWARE_IN_KERNEL option.
This will control whether we build firmware into the kernel image for
_every_ driver which we convert to request_firmware(), to avoid a
proliferation of 'CONFIG_XXX_FIRMWARE' options for each one.

Default to 'y' for now, which is the wrong thing to do but people seem
to be insisting on it and refusing to even review patches until it's
done. And it does preserve the existing behaviour for built-in drivers.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>

David Woodhouse   commited 2008-07-10 14:47:20 +01:00
d172e7f5c6
firmware: Add CONFIG_EXTRA_FIRMWARE option
This allows arbitrary firmware files to be included in the static kernel
where the firmware loader can find them without requiring userspace to
be alive.

(Updated and CONFIG_EXTRA_FIRMWARE_DIR added with lots of help from
Johannes Berg).

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

David Woodhouse   commited 2008-07-10 14:30:39 +01:00
4d2acfbfdf