wiko-ufeel: new device (Wiko U FEEL) (!573)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Mathias Roux 2019-08-22 12:57:31 +00:00 committed by Oliver Smith
parent e512493acd
commit 136ef57fd5
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
8 changed files with 8766 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-wiko-ufeel"
pkgdesc="Wiko U-Feel"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-wiko-ufeel mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="5d00e4db9744c345f014f54d3b5d5cf5d93c001816dbbf57b66a6744a1677383d75db87ce47d6305b6fa9e6f40d161d1ffeeb5e1ef8fbf1aaa36e610c750dade deviceinfo"

View file

@ -0,0 +1,33 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Wiko U Feel"
deviceinfo_manufacturer="Wiko"
deviceinfo_codename="wiko-ufeel"
deviceinfo_date=""
deviceinfo_dtb=""
deviceinfo_modules_initfs=""
deviceinfo_arch="armv7"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_dev_touchscreen="/dev/input/event5"
deviceinfo_dev_touchscreen_calibration=""
deviceinfo_dev_keyboard=""
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,32N2"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_flash_offset_base="0x40000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x04000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x0e000000"
deviceinfo_flash_pagesize="2048"

View file

@ -0,0 +1,37 @@
diff --git a/Makefile b/Makefile
index 1ad63f5..af7a7c0 100644
--- a/Makefile
+++ b/Makefile
@@ -1494,13 +1494,13 @@ image_name:
@echo $(KBUILD_IMAGE)
# Clear a bunch of variables before executing the submake
-tools/: FORCE
- $(Q)mkdir -p $(objtree)/tools
- $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/
+#tools/: FORCE
+# $(Q)mkdir -p $(objtree)/tools
+# $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/
-tools/%: FORCE
- $(Q)mkdir -p $(objtree)/tools
- $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/ $*
+#tools/%: FORCE
+# $(Q)mkdir -p $(objtree)/tools
+# $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=$(objtree) subdir=tools -C $(src)/tools/ $*
# Single targets
# ---------------------------------------------------------------------------
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 2fe43be..845dcd1 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -300,7 +300,7 @@ MTK_PROJECT := $(CONFIG_ARCH_MTK_PROJECT:"%"=%)
export MTK_PLATFORM MTK_PROJECT MTK_TARGET_PROJECT
KBUILD_CPPFLAGS += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include
KBUILD_CPPFLAGS += -I$(srctree)/arch/arm/mach-mediatek/include/
--include $(srctree)/scripts/drvgen/drvgen.mk
+#-include $(srctree)/scripts/drvgen/drvgen.mk
archprepare: $(DRVGEN_FILE_LIST)
dtbs: $(DRVGEN_FILE_LIST)

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,607 @@
diff --git a/drivers/misc/mediatek/base/power/mt6735/mt_pbm.c b/drivers/misc/mediatek/base/power/mt6735/mt_pbm.c
index 138bde95..e4cc770b 100644
--- a/drivers/misc/mediatek/base/power/mt6735/mt_pbm.c
+++ b/drivers/misc/mediatek/base/power/mt6735/mt_pbm.c
@@ -20,8 +20,8 @@
#include <mach/mt_pbm.h>
#include <mach/upmu_sw.h>
#include <mt-plat/upmu_common.h>
-#include <mt_cpufreq.h>
-#include <mt_gpufreq.h>
+#include "mt_cpufreq.h"
+#include "mt_gpufreq.h"
#include <mach/mt_thermal.h>
#ifndef DISABLE_PBM_FEATURE
diff --git a/drivers/misc/mediatek/base/power/mt6735/mt_pm_init.c b/drivers/misc/mediatek/base/power/mt6735/mt_pm_init.c
index b21d1b11..dd7b161f 100644
--- a/drivers/misc/mediatek/base/power/mt6735/mt_pm_init.c
+++ b/drivers/misc/mediatek/base/power/mt6735/mt_pm_init.c
@@ -30,7 +30,7 @@
/* #include "mach/mt_cpufreq.h" */
/* #include "mach/mt_gpufreq.h" */
#include "mt_cpuidle.h"
-#include <mt_clkbuf_ctl.h>
+#include "mt_clkbuf_ctl.h"
/* #include "mach/mt_clkbuf_ctl.h" */
/* #include "mach/mt_chip.h" */
#include "mt-plat/mtk_rtc.h"
diff --git a/drivers/misc/mediatek/base/power/mt6735/mt_ptp.c b/drivers/misc/mediatek/base/power/mt6735/mt_ptp.c
index fadec129..778d9328 100644
--- a/drivers/misc/mediatek/base/power/mt6735/mt_ptp.c
+++ b/drivers/misc/mediatek/base/power/mt6735/mt_ptp.c
@@ -145,7 +145,7 @@ unsigned int reg_dump_addr_off[] = {
#include <linux/of_fdt.h>
#endif
/* local includes */
-#include <mt_spm.h>
+#include "mt_spm.h"
#include "aee.h"
#include <linux/gpio.h>
diff --git a/drivers/misc/mediatek/btcvsd/inc/mt6735/AudDrv_BTCVSD.h b/drivers/misc/mediatek/btcvsd/inc/mt6735/AudDrv_BTCVSD.h
index 2dbc586c..41d0eb7c 100644
--- a/drivers/misc/mediatek/btcvsd/inc/mt6735/AudDrv_BTCVSD.h
+++ b/drivers/misc/mediatek/btcvsd/inc/mt6735/AudDrv_BTCVSD.h
@@ -2,7 +2,7 @@
#define AUDDRV_BTCVSD_H
#include <linux/types.h>
-#include "AudioBTCVSDDef.h"
+#include "../../AudioBTCVSDDef.h"
#undef DEBUG_AUDDRV
#ifdef DEBUG_AUDDRV
diff --git a/drivers/misc/mediatek/cmdq/v2/cmdq_def.h b/drivers/misc/mediatek/cmdq/v2/cmdq_def.h
index 9c934827..b4a16437 100644
--- a/drivers/misc/mediatek/cmdq/v2/cmdq_def.h
+++ b/drivers/misc/mediatek/cmdq/v2/cmdq_def.h
@@ -9,7 +9,7 @@
#ifdef CMDQ_COMMON_ENG_SUPPORT
#include "cmdq_engine_common.h"
#else
-#include "cmdq_engine.h"
+#include "mt6735/cmdq_engine.h"
#endif
#define CMDQ_SPECIAL_SUBSYS_ADDR (99)
diff --git a/drivers/misc/mediatek/ext_disp/extd_factory.c b/drivers/misc/mediatek/ext_disp/extd_factory.c
index a5ddf765..3e182033 100644
--- a/drivers/misc/mediatek/ext_disp/extd_factory.c
+++ b/drivers/misc/mediatek/ext_disp/extd_factory.c
@@ -4,7 +4,7 @@
#include "extd_log.h"
#include "extd_factory.h"
#include "extd_info.h"
-#include "external_display.h"
+#include "mt6735/external_display.h"
#include "dpi_dvt_test.h"
diff --git a/drivers/misc/mediatek/ext_disp/extd_multi_control.c b/drivers/misc/mediatek/ext_disp/extd_multi_control.c
index 5e88d3f8..8c796b58 100755
--- a/drivers/misc/mediatek/ext_disp/extd_multi_control.c
+++ b/drivers/misc/mediatek/ext_disp/extd_multi_control.c
@@ -3,8 +3,8 @@
#include "extd_multi_control.h"
#include "disp_drv_platform.h"
-#include "external_display.h"
-#include "extd_platform.h"
+#include "mt6735/external_display.h"
+#include "mt6735/extd_platform.h"
#include "extd_log.h"
#include "mtk_ovl.h"
diff --git a/drivers/misc/mediatek/fingerprint/gfx1xm/gfx1xm-spi.c b/drivers/misc/mediatek/fingerprint/gfx1xm/gfx1xm-spi.c
index cc9c58e4..a8a564d9 100644
--- a/drivers/misc/mediatek/fingerprint/gfx1xm/gfx1xm-spi.c
+++ b/drivers/misc/mediatek/fingerprint/gfx1xm/gfx1xm-spi.c
@@ -35,7 +35,7 @@
#include <linux/proc_fs.h>
#include <linux/completion.h>
#include <mach/mt_clkmgr.h>
-#include <gfx1xm-spi.h>
+#include "gfx1xm-spi.h"
#ifdef CONFIG_OF
#include <linux/of.h>
#include <linux/of_irq.h>
diff --git a/drivers/misc/mediatek/gpio/mt6735/6735_gpio.h b/drivers/misc/mediatek/gpio/mt6735/6735_gpio.h
index 4ed08308..5cb6be65 100644
--- a/drivers/misc/mediatek/gpio/mt6735/6735_gpio.h
+++ b/drivers/misc/mediatek/gpio/mt6735/6735_gpio.h
@@ -1,7 +1,7 @@
#ifndef _6735_GPIO_H
#define _6735_GPIO_H
-#include <mt_gpio_base.h>
+#include "mt_gpio_base.h"
#include <linux/slab.h>
#include <linux/device.h>
diff --git a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_affix.c b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_affix.c
index ce2d6c88..70d098a9 100644
--- a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_affix.c
+++ b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_affix.c
@@ -5,7 +5,7 @@
#include <linux/device.h>
/* #include <mach/mt_gpio.h> */
#include <mt-plat/mt_gpio_core.h>
-#include <6735_gpio.h>
+#include "6735_gpio.h"
void mt_gpio_pin_decrypt(unsigned long *cipher)
diff --git a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base.c b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base.c
index 1e35250f..e6e4b0e3 100644
--- a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base.c
+++ b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base.c
@@ -9,14 +9,14 @@
******************************************************************************/
-#include <6735_gpio.h>
+#include "6735_gpio.h"
#include <linux/types.h>
#include "mt-plat/sync_write.h"
#include <mt-plat/mt_gpio.h>
#include <mt-plat/mt_gpio_core.h>
-#include <mt_gpio_base.h>
+#include "mt_gpio_base.h"
/* autogen */
-#include <gpio_cfg.h>
+#include "gpio_cfg.h"
#ifdef CONFIG_OF
#include <linux/of_address.h>
#endif
diff --git a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base_linux.c b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base_linux.c
index 2cec43ad..8eb87094 100644
--- a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base_linux.c
+++ b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_base_linux.c
@@ -6,7 +6,7 @@
#include <linux/platform_device.h>
#include <linux/seq_file.h>
-#include <mt_gpio_base.h>
+#include "mt_gpio_base.h"
#include <mt-plat/mt_gpio_core.h>
/*#include <mach/eint.h>*/
#include <linux/interrupt.h>
diff --git a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
index 6c080223..6c2a7d5f 100644
--- a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
+++ b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
@@ -9,7 +9,7 @@
******************************************************************************/
#include <linux/slab.h>
-#include <6735_gpio.h>
+#include "6735_gpio.h"
#include <mt-plat/mt_gpio.h>
#include <mt-plat/mt_gpio_core.h>
diff --git a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_ext.c b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_ext.c
index a35c91ab..99245e11 100644
--- a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_ext.c
+++ b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_ext.c
@@ -10,7 +10,7 @@
#include <mt-plat/mt_gpio.h>
#include <mt-plat/mt_gpio_core.h>
-#include <mt_gpio_ext.h>
+#include "mt_gpio_ext.h"
/* #define MAX_GPIO_REG_BITS 16 */
/* #define MAX_GPIO_MODE_PER_REG 5 */
diff --git a/drivers/misc/mediatek/i2c/mt6735/i2c.c b/drivers/misc/mediatek/i2c/mt6735/i2c.c
index 6274df6d..2bc2d4a0 100644
--- a/drivers/misc/mediatek/i2c/mt6735/i2c.c
+++ b/drivers/misc/mediatek/i2c/mt6735/i2c.c
@@ -25,7 +25,7 @@
#include <asm/io.h>
/* #include <mach/dma.h> */
/* #include <mach/mt_reg_base.h> */
-#include <mt_i2c.h>
+#include "mt_i2c.h"
#include <mt-plat/sync_write.h>
#include "../../base/power/mt6735/mt_pm_init.h"
/* #include "mach/memory.h" */
diff --git a/drivers/misc/mediatek/i2c/mt6735/i2c_common.c b/drivers/misc/mediatek/i2c/mt6735/i2c_common.c
index 7e004a7c..abca0d66 100644
--- a/drivers/misc/mediatek/i2c/mt6735/i2c_common.c
+++ b/drivers/misc/mediatek/i2c/mt6735/i2c_common.c
@@ -8,7 +8,7 @@
#include <linux/err.h>
/* #include <mach/mt_pm_ldo.h> */
#include <asm/memory.h>
-#include <mt_i2c.h>
+#include "mt_i2c.h"
static char data_buffer[256 * 4];
diff --git a/drivers/misc/mediatek/include/mt-plat/mt6735/include/mach/mt_thermal.h b/drivers/misc/mediatek/include/mt-plat/mt6735/include/mach/mt_thermal.h
index 2fe522b6..a7bedac6 100644
--- a/drivers/misc/mediatek/include/mt-plat/mt6735/include/mach/mt_thermal.h
+++ b/drivers/misc/mediatek/include/mt-plat/mt6735/include/mach/mt_thermal.h
@@ -13,7 +13,7 @@
#include "mt-plat/sync_write.h"
#include "mtk_thermal_typedefs.h"
#include "mt-plat/mtk_mdm_monitor.h"
-#include "mt_gpufreq.h"
+#include "../../../../../drivers/misc/mediatek/base/power/mt6735/mt_gpufreq.h"
/* #include "mach/mt6575_auxadc_hw.h" */
#if !defined(CONFIG_MTK_LEGACY)
diff --git a/drivers/misc/mediatek/include/mt-plat/sd_misc.h b/drivers/misc/mediatek/include/mt-plat/sd_misc.h
index 7e6768c9..cc5f27a6 100644
--- a/drivers/misc/mediatek/include/mt-plat/sd_misc.h
+++ b/drivers/misc/mediatek/include/mt-plat/sd_misc.h
@@ -10,7 +10,7 @@
#include <linux/mmc/sd.h>
#endif
-#include <mt_sd.h>
+#include "../../../../mmc/host/mediatek/mt6735/mt_sd.h"
#ifndef FPGA_PLATFORM
extern void msdc_set_driving(struct msdc_host *host, struct msdc_hw *hw, bool sd_18);
diff --git a/drivers/misc/mediatek/m4u/2.0/m4u_pgtable.h b/drivers/misc/mediatek/m4u/2.0/m4u_pgtable.h
index fce98246..d3f5cad2 100644
--- a/drivers/misc/mediatek/m4u/2.0/m4u_pgtable.h
+++ b/drivers/misc/mediatek/m4u/2.0/m4u_pgtable.h
@@ -1,7 +1,7 @@
#ifndef __M4U_PGTABLE_H__
#define __M4U_PGTABLE_H__
-#include "m4u_reg.h"
+#include "../mt6735/mt6735/m4u_reg.h"
/* ================================================================= */
/* 2 level pagetable: pgd -> pte */
diff --git a/drivers/misc/mediatek/m4u/2.0/m4u_v2.h b/drivers/misc/mediatek/m4u/2.0/m4u_v2.h
index 6063d8c8..d28148dd 100644
--- a/drivers/misc/mediatek/m4u/2.0/m4u_v2.h
+++ b/drivers/misc/mediatek/m4u/2.0/m4u_v2.h
@@ -2,7 +2,7 @@
#define __M4U_V2_H__
#include <linux/ioctl.h>
#include <linux/fs.h>
-#include "m4u_port.h"
+#include "../mt6735/m4u_port.h"
#include <linux/scatterlist.h>
typedef int M4U_PORT_ID;
diff --git a/drivers/misc/mediatek/m4u/mt6735/m4u_priv.h b/drivers/misc/mediatek/m4u/mt6735/m4u_priv.h
index 69dfa34b..7d4554d8 100644
--- a/drivers/misc/mediatek/m4u/mt6735/m4u_priv.h
+++ b/drivers/misc/mediatek/m4u/mt6735/m4u_priv.h
@@ -12,9 +12,9 @@
#endif
#include "m4u.h"
-#include "m4u_reg.h"
+#include "mt6735/m4u_reg.h"
#include "../2.0/m4u_pgtable.h"
-#include "m4u_platform.h"
+#include "mt6735/m4u_platform.h"
#define M4UMSG(string, args...) pr_err("M4U"string, ##args)
#define M4UINFO(string, args...) pr_debug("M4U"string, ##args)
diff --git a/drivers/misc/mediatek/power/mt6735/mt6311.c b/drivers/misc/mediatek/power/mt6735/mt6311.c
index 018fc81f..9d71d731 100644
--- a/drivers/misc/mediatek/power/mt6735/mt6311.c
+++ b/drivers/misc/mediatek/power/mt6735/mt6311.c
@@ -27,7 +27,7 @@
/*#include <mach/eint.h> TBD*/
#include <mt-plat/upmu_common.h>
-#include <mt6311.h>
+#include "mt6311.h"
#include <mach/mt_pmic.h>
diff --git a/drivers/misc/mediatek/power/mt6735/pmic.c b/drivers/misc/mediatek/power/mt6735/pmic.c
index 132569a5..b3b2f254 100644
--- a/drivers/misc/mediatek/power/mt6735/pmic.c
+++ b/drivers/misc/mediatek/power/mt6735/pmic.c
@@ -65,7 +65,7 @@
#include <linux/gpio/consumer.h>
#endif
#include <mt-plat/upmu_common.h>
-#include <pmic.h>
+#include "pmic.h"
/*#include <mach/eint.h> TBD*/
#include <mach/mt_pmic_wrap.h>
#if defined CONFIG_MTK_LEGACY
@@ -89,7 +89,7 @@
//#include <mach/mt_battery_meter.h>
#include "cust_battery_meter.h"
#endif
-#include <mt6311.h>
+#include "mt6311.h"
#include <mach/mt_pmic.h>
#include <mt-plat/aee.h>
diff --git a/drivers/misc/mediatek/uart/include/mtk_uart.h b/drivers/misc/mediatek/uart/include/mtk_uart.h
index d971cb0a..e60b128e 100644
--- a/drivers/misc/mediatek/uart/include/mtk_uart.h
+++ b/drivers/misc/mediatek/uart/include/mtk_uart.h
@@ -5,7 +5,7 @@
#include <mach/mt_reg_base.h>
#endif
#include <mt-plat/sync_write.h>
-#include "platform_uart.h"
+#include "../mt6735/platform_uart.h"
/*---------------------------------------------------------------------------*/
#if defined(ENABLE_VFIFO_DEBUG)
diff --git a/drivers/misc/mediatek/uart/include/mtk_uart_intf.h b/drivers/misc/mediatek/uart/include/mtk_uart_intf.h
index aff13c8a..60321384 100644
--- a/drivers/misc/mediatek/uart/include/mtk_uart_intf.h
+++ b/drivers/misc/mediatek/uart/include/mtk_uart_intf.h
@@ -1,7 +1,7 @@
#ifndef __MTK_UART_INTF_H__
#define __MTK_UART_INTF_H__
-#include "platform_uart.h"
+#include "../mt6735/platform_uart.h"
#include <linux/platform_device.h>
/*---------------------------------------------------------------------------*/
/* fiq debugger */
diff --git a/drivers/misc/mediatek/video/common/mtkfb_fence.h b/drivers/misc/mediatek/video/common/mtkfb_fence.h
index d8bae158..748c9949 100644
--- a/drivers/misc/mediatek/video/common/mtkfb_fence.h
+++ b/drivers/misc/mediatek/video/common/mtkfb_fence.h
@@ -4,8 +4,8 @@
#include <linux/mutex.h>
#include <linux/list.h>
#include "disp_session.h"
-#include "disp_drv_platform.h"
-#include "display_recorder.h"
+#include "../mt6735/videox/mt6735/disp_drv_platform.h"
+#include "../mt6735/dispsys/display_recorder.h"
#ifdef __cplusplus
extern "C" {
diff --git a/drivers/misc/mediatek/video/common/rdma10/ddp_rdma.h b/drivers/misc/mediatek/video/common/rdma10/ddp_rdma.h
index 4f4b3ac9..99c1ed6b 100644
--- a/drivers/misc/mediatek/video/common/rdma10/ddp_rdma.h
+++ b/drivers/misc/mediatek/video/common/rdma10/ddp_rdma.h
@@ -4,8 +4,8 @@
#include <mt-plat/sync_write.h>
#include <linux/types.h>
/* #include <mach/mt_reg_base.h> */
-#include "ddp_info.h"
-#include "ddp_hal.h"
+#include "../../mt6735/dispsys/ddp_info.h"
+#include "../../mt6735/dispsys/ddp_hal.h"
extern unsigned long long rdma_start_time[];
extern unsigned long long rdma_end_time[];
diff --git a/drivers/misc/mediatek/video/common/wdma10/ddp_wdma.h b/drivers/misc/mediatek/video/common/wdma10/ddp_wdma.h
index 78e85172..3728d329 100644
--- a/drivers/misc/mediatek/video/common/wdma10/ddp_wdma.h
+++ b/drivers/misc/mediatek/video/common/wdma10/ddp_wdma.h
@@ -1,8 +1,8 @@
#ifndef _DDP_WDMA_H_
#define _DDP_WDMA_H_
-#include "ddp_hal.h"
-#include "ddp_info.h"
+#include "../../mt6735/dispsys/ddp_hal.h"
+#include "../../mt6735/dispsys/ddp_info.h"
/* start module */
int wdma_start(DISP_MODULE_ENUM module, void *handle);
diff --git a/drivers/misc/mediatek/video/mt6735/dispsys/ddp_pwm_mux.c b/drivers/misc/mediatek/video/mt6735/dispsys/ddp_pwm_mux.c
index f86dfb42..759eee39 100644
--- a/drivers/misc/mediatek/video/mt6735/dispsys/ddp_pwm_mux.c
+++ b/drivers/misc/mediatek/video/mt6735/dispsys/ddp_pwm_mux.c
@@ -1,10 +1,10 @@
#include <linux/kernel.h>
#include <linux/clk.h>
-#include <ddp_drv.h>
-#include <ddp_pwm_mux.h>
+#include "ddp_drv.h"
+#include "../../include/ddp_pwm_mux.h"
#include <linux/of.h>
#include <linux/of_address.h>
-#include <ddp_reg.h>
+#include "mt6735/ddp_reg.h"
#define PWM_MSG(fmt, arg...) pr_debug("[PWM] " fmt "\n", ##arg)
#define PWM_ERR(fmt, arg...) pr_err("[PWM] " fmt "\n", ##arg)
diff --git a/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_ovl.h b/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_ovl.h
index 7a8c5dc8..8dad5b89 100644
--- a/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_ovl.h
+++ b/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_ovl.h
@@ -1,9 +1,9 @@
#ifndef _DDP_OVL_H_
#define _DDP_OVL_H_
-#include "ddp_hal.h"
+#include "../ddp_hal.h"
#include "DpDataType.h"
-#include "ddp_info.h"
+#include "../ddp_info.h"
#define OVL_MAX_WIDTH (4095)
diff --git a/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_rdma_ex.h b/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_rdma_ex.h
index 80e16a42..f934000f 100644
--- a/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_rdma_ex.h
+++ b/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_rdma_ex.h
@@ -1,6 +1,6 @@
#ifndef _DDP_RDMA_EX_H_
#define _DDP_RDMA_EX_H_
-#include "ddp_info.h"
+#include "../ddp_info.h"
#define RDMA_INSTANCES 2
#define RDMA_MAX_WIDTH 4095
diff --git a/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_reg.h b/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_reg.h
index c40eec43..6dd2bb7f 100644
--- a/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_reg.h
+++ b/drivers/misc/mediatek/video/mt6735/dispsys/mt6735/ddp_reg.h
@@ -3,11 +3,11 @@
#include <mt-plat/sync_write.h>
/* #include <mach/mt_reg_base.h> */
#include <linux/types.h>
-#include "display_recorder.h"
-#include "cmdq_record.h"
-#include "cmdq_core.h"
-#include "ddp_hal.h"
-#include "ddp_log.h"
+#include "../display_recorder.h"
+#include "../../../../cmdq/v2/cmdq_record.h"
+#include "../../../../cmdq/v2/cmdq_core.h"
+#include "../ddp_hal.h"
+#include "../ddp_log.h"
/* MIPITX and DSI */
#define ENABLE_CLK_MGR
diff --git a/drivers/misc/mediatek/video/mt6735/videox/disp_drv_log.h b/drivers/misc/mediatek/video/mt6735/videox/disp_drv_log.h
index 4262d8be..d2fa28b7 100644
--- a/drivers/misc/mediatek/video/mt6735/videox/disp_drv_log.h
+++ b/drivers/misc/mediatek/video/mt6735/videox/disp_drv_log.h
@@ -1,8 +1,8 @@
#ifndef __DISP_DRV_LOG_H__
#define __DISP_DRV_LOG_H__
-#include "display_recorder.h"
-#include "ddp_debug.h"
-#include "disp_drv_platform.h"
+#include "../dispsys/display_recorder.h"
+#include "../dispsys/ddp_debug.h"
+#include "mt6735/disp_drv_platform.h"
extern unsigned int dprec_error_log_len;
extern unsigned int dprec_error_log_id;
diff --git a/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h b/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h
index a359f009..a52314e0 100644
--- a/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h
+++ b/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h
@@ -15,10 +15,10 @@
/*#include <board-custom.h>*/
#include "disp_assert_layer.h"
#include <mt-plat/sync_write.h>
-#include "ddp_hal.h"
+#include "../../dispsys/ddp_hal.h"
/* #include "ddp_drv.h" */
-#include "ddp_path.h"
-#include "ddp_ovl.h"
+#include "../../dispsys/ddp_path.h"
+#include "../../dispsys/mt6735/ddp_ovl.h"
#define ALIGN_TO(x, n) \
diff --git a/drivers/misc/mediatek/video/mt6735/videox/primary_display.h b/drivers/misc/mediatek/video/mt6735/videox/primary_display.h
index 673ff8df..35ea98aa 100644
--- a/drivers/misc/mediatek/video/mt6735/videox/primary_display.h
+++ b/drivers/misc/mediatek/video/mt6735/videox/primary_display.h
@@ -1,8 +1,8 @@
#ifndef _PRIMARY_DISPLAY_H_
#define _PRIMARY_DISPLAY_H_
-#include "ddp_hal.h"
-#include "ddp_manager.h"
+#include "../dispsys/ddp_hal.h"
+#include "../dispsys/ddp_manager.h"
#include <linux/types.h>
#include "disp_lcm.h"
#include "disp_session.h"
diff --git a/drivers/watchdog/mediatek/wdt/mt6735/mtk_wdt.c b/drivers/watchdog/mediatek/wdt/mt6735/mtk_wdt.c
index 9d6869ba..93fb16a3 100644
--- a/drivers/watchdog/mediatek/wdt/mt6735/mtk_wdt.c
+++ b/drivers/watchdog/mediatek/wdt/mt6735/mtk_wdt.c
@@ -11,7 +11,7 @@
#include <asm/uaccess.h>
#include <linux/types.h>
-#include <mt_wdt.h>
+#include "mt_wdt.h"
#include <linux/delay.h>
#include <linux/device.h>
diff --git a/kernel/power/tuxonice_ui.c b/kernel/power/tuxonice_ui.c
index fc3ac655..cdcc531c 100644
--- a/kernel/power/tuxonice_ui.c
+++ b/kernel/power/tuxonice_ui.c
@@ -124,7 +124,7 @@ void toi_early_boot_message(int message_detail, int default_answer, char *warnin
say("BIG FAT WARNING!! %s", local_printf_buf);
switch (message_detail) {
case 0:
- say("If you continue booting, note that any image WILL NOT BE REMOVED")
+ say("If you continue booting, note that any image WILL NOT BE REMOVED");
/* TuxOnIce is unable to do so because the appropriate modules aren't loaded.
* You should manually remove the image to avoid any possibility of corrupting
* your filesystem(s) later.
diff --git a/kernel/power/tuxonice_userui.c b/kernel/power/tuxonice_userui.c
index 77e0a37c..faf19196 100644
--- a/kernel/power/tuxonice_userui.c
+++ b/kernel/power/tuxonice_userui.c
@@ -315,10 +315,10 @@ static void userui_prepare_status(int clearbar, const char *fmt, ...)
if (clearbar)
toi_update_status(0, 1, NULL);
- if (ui_helper_data.pid == -1)
+ //if (ui_helper_data.pid == -1)
pr_err("%s\n", lastheader);
- else
- toi_message(0, TOI_STATUS, 1, lastheader, NULL);
+ //else
+ // toi_message(0, TOI_STATUS, 1, lastheader, NULL);
}
/**
diff --git a/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h b/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h
index a52314e0..1e42b6c6 100644
--- a/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h
+++ b/drivers/misc/mediatek/video/mt6735/videox/mt6735/disp_drv_platform.h
@@ -13,7 +13,7 @@
#endif
/* #include <mach/mt_irq.h> */
/*#include <board-custom.h>*/
-#include "disp_assert_layer.h"
+#include "../disp_assert_layer.h"
#include <mt-plat/sync_write.h>
#include "../../dispsys/ddp_hal.h"
/* #include "ddp_drv.h" */
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt6735.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt6735.h
index 4bc6b34d..280ecd16 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-mt6735.h
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt6735.h
@@ -12,7 +12,7 @@
#define __PINCTRL_MTK_MT6735_H
#include <linux/pinctrl/pinctrl.h>
-#include <pinctrl-mtk-common.h>
+#include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt6735[] = {
MTK_PIN(
diff --git a/drivers/spi/mediatek/mt6735/spi.c b/drivers/spi/mediatek/mt6735/spi.c
index c5cfe271..0b832910 100644
--- a/drivers/spi/mediatek/mt6735/spi.c
+++ b/drivers/spi/mediatek/mt6735/spi.c
@@ -27,7 +27,7 @@
#include <linux/of_address.h>
#endif
/*#include <mach/irqs.h>*/
-#include <mt_spi.h>
+#include "mt_spi.h"
#include "mt_spi_hal.h"
/*#include <mach/mt_gpio.h>*/
diff --git a/drivers/spi/mediatek/mt6735/spi-dev.c b/drivers/spi/mediatek/mt6735/spi-dev.c
index 1408ae3b..3c1075cd 100644
--- a/drivers/spi/mediatek/mt6735/spi-dev.c
+++ b/drivers/spi/mediatek/mt6735/spi-dev.c
@@ -4,7 +4,7 @@
#include <linux/types.h>
#include <linux/device.h>
#include <linux/delay.h>
-#include <mt_spi.h>
+#include "mt_spi.h"
#include <linux/dma-mapping.h>
#include <linux/sched.h>

View file

@ -0,0 +1,25 @@
unchanged:
--- a/drivers/misc/mediatek/connectivity/common/conn_soc/core/include/wmt_conf.h
+++ b/drivers/misc/mediatek/connectivity/common/conn_soc/core/include/wmt_conf.h
@@ -31,7 +31,7 @@
********************************************************************************
*/
#define CUST_CFG_WMT "WMT_SOC.cfg"
-#define CUST_CFG_WMT_PREFIX "/system/etc/firmware/"
+#define CUST_CFG_WMT_PREFIX "/lib/firmware/postmarketos"
/*******************************************************************************
* E X T E R N A L R E F E R E N C E S
only in patch2:
unchanged:
--- a/drivers/misc/mediatek/wmt_ccci/wmt_cfg_parser.h
+++ b/drivers/misc/mediatek/wmt_ccci/wmt_cfg_parser.h
@@ -78,7 +78,7 @@ do { \
#endif
#define WMT_CFG_FILE "WMT_SOC.cfg"
-#define WMT_CFG_FILE_PREFIX "/system/etc/firmware/"
+#define WMT_CFG_FILE_PREFIX "/lib/postmarketos/firmware"
/*******************************************************************************
* D A T A T Y P E S

View file

@ -0,0 +1,74 @@
# Kernel config based on: arch/arm/configs/p6601_defconfig
# Wiko U Feel is based on Tinno p6601
pkgname="linux-wiko-ufeel"
pkgver=3.18.19
pkgrel=0
pkgdesc="Wiko U Feel kernel"
arch="armv7"
_carch="arm"
_flavor="wiko-ufeel"
url="https://wikomobile.com"
license="GPL-2.0-only"
options="!strip !check !tracedeps"
makedepends="perl userspace-rcu sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc6"
## Compiler: GCC 6 (doesn't boot when compiled with newer versions)
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_repository="linux-wiko-ufeel"
_commit="225754d6fb494c6d5993f40451e415450337ba89"
_config="config-${_flavor}.${arch}"
source="
$pkgname-$_commit.tar.gz::https://github.com/pmsourcedump/${_repository}/archive/${_commit}.tar.gz
$_config
00_disable_drvgen.patch
01_add_decompiled_stock_dtb_dtsi.patch
02_fix_various_include_directives_mt6735.patch
04-workaround-loading-wifi-firmware-mt6735.patch
"
builddir="$srcdir/${_repository}-${_commit}"
prepare() {
default_prepare
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
# kernel.release
install -D "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
# zImage (find the right one)
cd "$builddir/arch/$_carch/boot"
_target="$pkgdir/boot/vmlinuz-$_flavor"
for _zimg in zImage-dtb Image.gz-dtb *zImage Image; do
[ -e "$_zimg" ] || continue
msg "zImage found: $_zimg"
install -Dm644 "$_zimg" "$_target"
break
done
if ! [ -e "$_target" ]; then
error "Could not find zImage in $PWD!"
return 1
fi
}
sha512sums="140e5d015ede0ebac771d4bb1e35e0133341dc05fe5c97ebc9f40142e889263722e40b7e7c99f865ad9890c879e85e2468d024d5cf5b8c4f79d74b678188bc6e linux-wiko-ufeel-225754d6fb494c6d5993f40451e415450337ba89.tar.gz
b3c2db70353a5975715d2bf9c1eef8984d22a866de530ae28926f9ffa3f6588501569efad47e6e9777f8993ba9553a871f1fb51d209f6643226e9b7d2bc8a1e0 config-wiko-ufeel.armv7
8a04940e6f5424df67a3cc4c75dd19be1c9b560859e9db0ae67b766d52982a46156b601698afb80f90b9b99f63ef74e1f6147902b43ec97c25d2b75ba2f8d2b3 00_disable_drvgen.patch
e2b77554b0c22cacf9e011bd7ccd447c5d530fc23caa25416469ca3df6c2f6c0e11fb28cdf751ea8e3b35e629d8c68410ad4abf50f9fdbe493f6754810d9966d 01_add_decompiled_stock_dtb_dtsi.patch
1f6d7d043ee8556758e2475ca2d677abf1582f4329eb66cfcd6481a4b3216efd35a0f44d0483a8a3344bb4b5dd24d340327d9216f3069ed4b86e5bf8ffc5412b 02_fix_various_include_directives_mt6735.patch
3d8c0888e6de769861fbc6b3d6419bffa7ea841f0a5a38c2990f5ddefb511ae1dce0418ff61a96ac9b6b4438232c0706d627d58eec42fa7b36e135c45ee9bf99 04-workaround-loading-wifi-firmware-mt6735.patch"

File diff suppressed because it is too large Load diff