radeon: Use request_firmware()
authorBen Hutchings <ben@decadent.org.uk>
Sat, 29 Aug 2009 13:53:51 +0000 (14:53 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 30 Aug 2009 23:09:30 +0000 (09:09 +1000)
commit70967ab9c0c9017645d167d33675eab996633631
tree5ec85349ccbf2bd21ab4929223d94ac11d17fa44
parent1ae70072f0699916c1a77a9bacad958ee46f7395
radeon: Use request_firmware()

Loosely based on a patch by
Jaswinder Singh Rajput <jaswinderlinux@gmail.com>.

KMS support by Dave Airlie <airlied@redhat.com>.

For Radeon 100- to 500-series, firmware blobs look like:
    struct {
        __be32 datah;
        __be32 datal;
    } cp_ucode[256];

For Radeon 600-series, there are two separate firmware blobs:
    __be32 me_ucode[PM4_UCODE_SIZE * 3];
    __be32 pfp_ucode[PFP_UCODE_SIZE];

For Radeon 700-series, likewise:
    __be32 me_ucode[R700_PM4_UCODE_SIZE];
    __be32 pfp_ucode[R700_PFP_UCODE_SIZE];

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
38 files changed:
drivers/gpu/drm/Kconfig
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600_cp.c
drivers/gpu/drm/radeon/r600_microcode.h [deleted file]
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_cp.c
drivers/gpu/drm/radeon/radeon_drv.h
drivers/gpu/drm/radeon/radeon_irq_kms.c
drivers/gpu/drm/radeon/radeon_microcode.h [deleted file]
firmware/Makefile
firmware/WHENCE
firmware/radeon/R100_cp.bin.ihex [new file with mode: 0644]
firmware/radeon/R200_cp.bin.ihex [new file with mode: 0644]
firmware/radeon/R300_cp.bin.ihex [new file with mode: 0644]
firmware/radeon/R420_cp.bin.ihex [new file with mode: 0644]
firmware/radeon/R520_cp.bin.ihex [new file with mode: 0644]
firmware/radeon/R600_me.bin.ihex [new file with mode: 0644]
firmware/radeon/R600_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RS600_cp.bin.ihex [new file with mode: 0644]
firmware/radeon/RS690_cp.bin.ihex [new file with mode: 0644]
firmware/radeon/RS780_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RS780_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV610_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV610_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV620_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV620_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV630_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV630_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV635_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV635_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV670_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV670_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV710_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV710_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV730_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV730_pfp.bin.ihex [new file with mode: 0644]
firmware/radeon/RV770_me.bin.ihex [new file with mode: 0644]
firmware/radeon/RV770_pfp.bin.ihex [new file with mode: 0644]