Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions config.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[variables]
DEVICE_NAME = Vega Iron 2

DEVICE_NAME = Vega Secret Note
LK_TARGET = msm8974
LK_SOURCE = qcom/LA.BF64
LK_BASE = 0x0f600000
EDK2_BASE = 0xde000000
EDK2_SIZE = 0x02000000

BOOTIMG_BASE = 0x00000000
BOOTIMG_DT = $(DEVICE_DIR)/dt.img
LK_BASE = 0x000000000f600000
EDK2_BASE = 0x00000000be000000
EDK2_SIZE = 0x0000000002000000
BOOTIMG_BASE = 0x00000000
BOOTIMG_DT = $(DEVICE_DIR)/dt.img
BOOTIMG_PAGESIZE = 2048

LCD_DENSITY = 480

Binary file modified dt.img
Binary file not shown.
12 changes: 12 additions & 0 deletions pantech/ef59/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[variables]
DEVICE_NAME = Vega Secret Note
LK_TARGET = msm8974
LK_SOURCE = qcom/LA.BF64
LK_BASE = 0x000000000f600000
EDK2_BASE = 0x00000000be000000
EDK2_SIZE = 0x0000000002000000
BOOTIMG_BASE = 0x00000000
BOOTIMG_DT = $(DEVICE_DIR)/dt.img
BOOTIMG_PAGESIZE = 2048
LCD_DENSITY = 480

Binary file added pantech/ef59/dt.img
Binary file not shown.
7 changes: 7 additions & 0 deletions pantech/ef59/efidroid.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"repository": "bootloader_lk",
"target_path": "bootloader/lk/qcom/LA.BF64",
"branch": "qcom/LA.BF64"
}
]
6 changes: 6 additions & 0 deletions pantech/ef59/fstab.multiboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/dev/block/platform/msm_sdcc.1/by-name/system /system auto defaults multiboot
/dev/block/platform/msm_sdcc.1/by-name/cache /cache auto defaults multiboot
/dev/block/platform/msm_sdcc.1/by-name/userdata /data auto defaults multiboot,esp=datamedia
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults multiboot,uefi,nvvars
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults uefi
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware emmc defaults multiboot
6 changes: 6 additions & 0 deletions pantech/ef59/lk_inc.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
EMMC_BOOT := 1
DISPLAY_2NDSTAGE_DTB :=1
DEVICE_PREFER_ATAGS_HWID := 1

MODULES += \
$(EFIDROID_DEVICE_DIR)/lkshim
31 changes: 31 additions & 0 deletions pantech/ef59/lkshim/init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#include <stdint.h>
#include <platform/gpio.h>
#include <pm8x41.h>
#include <platform/timer.h>

int target_volume_down(void)
{
static uint8_t first_time = 0;
uint8_t status = 0;
struct pm8x41_gpio gpio;

if (!first_time) {
/* Configure the GPIO */
gpio.direction = PM_GPIO_DIR_IN;
gpio.function = 0;
gpio.pull = PM_GPIO_PULL_UP_30;
gpio.vin_sel = 2;

pm8x41_gpio_config(2, &gpio);

/* Wait for the pmic gpio config to take effect */
udelay(10000);

first_time = 1;
}

/* Get status of P_GPIO_5 */
pm8x41_gpio_get(2, &status);

return !status; /* active low */
}
4 changes: 4 additions & 0 deletions pantech/ef59/lkshim/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LOCAL_DIR := $(GET_LOCAL_DIR)

SHIMOBJS += \
$(LOCAL_DIR)/init.o