Skip to content

Commit

Permalink
Clean up MALI driver integration
Browse files Browse the repository at this point in the history
- Can only be built as module
- Enabled via defconfig, not hardwired in the target architecture
- Rename CONFIG_GPU_MALI to CONFIG_MALI
  • Loading branch information
hno committed Jun 6, 2012
1 parent 2d46c99 commit 882b892
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion arch/arm/Kconfig
Expand Up @@ -625,7 +625,6 @@ config ARCH_SUN4I
select GENERIC_CLOCKEVENTS
select ARCH_HAS_CPUFREQ
select ARM_L1_CACHE_SHIFT_6
select GPU_MALI
help
This enables support for Allwinner Technology Co., Ltd A10 SoC based systems

Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/sun4i_crane_defconfig
Expand Up @@ -1492,6 +1492,7 @@ CONFIG_PA_CONFIG=y
#
# CONFIG_DRM is not set
# CONFIG_ION is not set
CONFIG_MALI=m
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
CONFIG_FB=y
Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/sun4i_defconfig
Expand Up @@ -1148,6 +1148,7 @@ CONFIG_PA_CONFIG=y
#
# CONFIG_DRM is not set
# CONFIG_ION is not set
CONFIG_MALI=m
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
CONFIG_FB=y
Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/sun5i_defconfig
Expand Up @@ -996,6 +996,7 @@ CONFIG_PA_CONFIG=y
#
# CONFIG_DRM is not set
# CONFIG_ION is not set
CONFIG_MALI=m
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
CONFIG_FB=y
Expand Down
2 changes: 0 additions & 2 deletions drivers/Kconfig
Expand Up @@ -129,6 +129,4 @@ source "drivers/hwspinlock/Kconfig"

source "drivers/clocksource/Kconfig"

source "drivers/gpu/Kconfig"

endmenu
5 changes: 0 additions & 5 deletions drivers/gpu/Kconfig

This file was deleted.

6 changes: 3 additions & 3 deletions drivers/gpu/mali/Kconfig
@@ -1,6 +1,6 @@
config GPU_MALI
boolean "ARM Mali GPU modules"
depends on ARM
config MALI
tristate "ARM Mali GPU modules"
depends on ARM && m
default n
help
This enables the generation of mali.ko and ump.ko.
2 changes: 1 addition & 1 deletion drivers/gpu/mali/Makefile
Expand Up @@ -7,4 +7,4 @@ BUILD:=release
TARGET_PLATFORM:=mali400-pmu
export CONFIG USING_MMU USING_UMP USING_PMM BUILD TARGET_PLATFORM

obj-$(CONFIG_GPU_MALI) += ump/ mali/
obj-$(CONFIG_MALI) += ump/ mali/
2 changes: 2 additions & 0 deletions drivers/video/Kconfig
Expand Up @@ -25,6 +25,8 @@ source "drivers/gpu/stub/Kconfig"

source "drivers/gpu/ion/Kconfig"

source "drivers/gpu/mali/Kconfig"

config VGASTATE
tristate
default n
Expand Down

0 comments on commit 882b892

Please sign in to comment.