Skip to content

Commit 9822504

Browse files
Ard BiesheuvelIngo Molnar
authored andcommitted
efifb: Enable the efi-framebuffer platform driver for ARM and arm64
Allows the efifb driver to be built for ARM and arm64. This simply involves updating the Kconfig dependency expression, and supplying dummy versions of efifb_setup_from_dmi(). Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Cc: Borislav Petkov <bp@alien8.de> Cc: David Herrmann <dh.herrmann@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Jones <pjones@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1461614832-17633-25-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent e3271c9 commit 9822504

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

arch/arm/include/asm/efi.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ void efi_virtmap_unload(void);
6767
struct screen_info *alloc_screen_info(efi_system_table_t *sys_table_arg);
6868
void free_screen_info(efi_system_table_t *sys_table, struct screen_info *si);
6969

70+
static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
71+
{
72+
}
73+
7074
/*
7175
* A reasonable upper bound for the uncompressed kernel size is 32 MBytes,
7276
* so we will reserve that amount of memory. We have no easy way to tell what

arch/arm64/include/asm/efi.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md);
5959
#define alloc_screen_info(x...) &screen_info
6060
#define free_screen_info(x...)
6161

62+
static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
63+
{
64+
}
65+
6266
#define EFI_ALLOC_ALIGN SZ_64K
6367

6468
/*

drivers/video/fbdev/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ config FB_VESA
761761

762762
config FB_EFI
763763
bool "EFI-based Framebuffer Support"
764-
depends on (FB = y) && X86 && EFI
764+
depends on (FB = y) && !IA64 && EFI
765765
select FB_CFB_FILLRECT
766766
select FB_CFB_COPYAREA
767767
select FB_CFB_IMAGEBLIT

0 commit comments

Comments
 (0)