first and last commit
This commit is contained in:
commit
1bf4efd552
2612 files changed
+636500
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C) 2013-2014 Apple Inc. All rights reserved.
|
||||
*
|
||||
* This document is the property of Apple Computer, Inc.
|
||||
* It is considered confidential and proprietary.
|
||||
*
|
||||
* This document may not be reproduced or transmitted in any form,
|
||||
* in whole or in part, without the express written permission of
|
||||
* Apple Inc.
|
||||
*/
|
||||
#ifndef __TARGET_ADBE_SETTINGS_H
|
||||
#define __TARGET_ADBE_SETTINGS_H
|
||||
|
||||
static struct adbe_v2_tuneable adbe_tuneables[] = {
|
||||
{
|
||||
.name = "default",
|
||||
.adbe0_vblank_pos_vbi_pulse = 0x0132,
|
||||
.adbe0_vblank_clk_gate_wakeup = 0x0132,
|
||||
.adbe0_vblank_clk_gate_idle = 0x0000,
|
||||
.adbe0_vblank_busy_finish = 2,
|
||||
.adbe0_tunable_mode_ctrl = (DBEMODECNTL_DPB_BUSY_MASK | \
|
||||
DBEMODECNTL_PMGR_CLK_GATE_ENABLE | \
|
||||
DBEMODECNTL_DYN_CLK_GATE_ENABLE | \
|
||||
DBEMODECNTL_BLK_CLK_GATE_ENABLE),
|
||||
.adbe0_aap_support = 1,
|
||||
.adbe0_aap_format_control_reg1 = (AAP_FORMAT_CONTROL_REG1_AUTOPOS | AAP_FORMAT_CONTROL_REG1_RSVD(8) | AAP_FORMAT_CONTROL_REG1_VS_POL),
|
||||
},
|
||||
|
||||
{
|
||||
.name = "camelia",
|
||||
.adbe0_vblank_pos_vbi_pulse = 0x0000,
|
||||
.adbe0_vblank_clk_gate_wakeup = 0x0000,
|
||||
.adbe0_vblank_clk_gate_idle = 0x0001,
|
||||
.adbe0_vblank_busy_finish = 0,
|
||||
.adbe0_tunable_mode_ctrl = (DBEMODECNTL_DPB_BUSY_MASK | \
|
||||
DBEMODECNTL_PMGR_CLK_GATE_ENABLE | \
|
||||
DBEMODECNTL_DYN_CLK_GATE_ENABLE | \
|
||||
DBEMODECNTL_BLK_CLK_GATE_ENABLE),
|
||||
.adbe0_aap_support = 1,
|
||||
.adbe0_aap_format_control_reg1 = (AAP_FORMAT_CONTROL_REG1_AUTOPOS | AAP_FORMAT_CONTROL_REG1_RSVD(8) | AAP_FORMAT_CONTROL_REG1_VS_POL),
|
||||
},
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Apple Inc. All rights reserved.
|
||||
*
|
||||
* This document is the property of Apple Computer, Inc.
|
||||
* It is considered confidential and proprietary.
|
||||
*
|
||||
* This document may not be reproduced or transmitted in any form,
|
||||
* in whole or in part, without the express written permission of
|
||||
* Apple Inc.
|
||||
*/
|
||||
#ifndef __TARGET_ASPNANDCONFIG_H
|
||||
#define __TARGET_ASPNANDCONFIG_H
|
||||
|
||||
//MLC devices
|
||||
#define ASPNAND_MLC_WRITE_DIES_IN_PARALLEL 8
|
||||
#define ASPNAND_SLC_WRITE_DIES_IN_PARALLEL 4
|
||||
#define ASPNAND_ERASE_DIES_IN_PARALLEL 8
|
||||
#define ASPNAND_READ_DIES_IN_PARALLEL 8
|
||||
#define ASPNAND_MLC_WRITE_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
#define ASPNAND_SLC_WRITE_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
#define ASPNAND_ERASE_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
#define ASPNAND_READ_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
|
||||
//TLC devices
|
||||
#define ASPNAND_TLC_TLC_WRITE_DIES_IN_PARALLEL 8
|
||||
#define ASPNAND_TLC_SLC_WRITE_DIES_IN_PARALLEL 8
|
||||
#define ASPNAND_TLC_ERASE_DIES_IN_PARALLEL 2
|
||||
#define ASPNAND_TLC_READ_DIES_IN_PARALLEL 8
|
||||
#define ASPNAND_TLC_TLC_WRITE_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
#define ASPNAND_TLC_SLC_WRITE_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
#define ASPNAND_TLC_ERASE_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
#define ASPNAND_TLC_READ_LOW_POWER_DIES_IN_PARALLEL 2
|
||||
|
||||
// rdar://problem/18371949 - these values should be the same for post-OkemoTaos targets
|
||||
#define ASPNAND_INDIRECTION_MEMORY (8*1024*1024)
|
||||
#define ASPNAND_LEGACY_INDIRECTION_MEMORY ASPNAND_INDIRECTION_MEMORY
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (C) 2013-2014 Apple Inc. All rights reserved.
|
||||
*
|
||||
* This document is the property of Apple Inc.
|
||||
* It is considered confidential and proprietary.
|
||||
*
|
||||
* This document may not be reproduced or transmitted in any form,
|
||||
* in whole or in part, without the express written permission of
|
||||
* Apple Inc.
|
||||
*/
|
||||
#ifndef TARGET_BOARDID_H
|
||||
#define TARGET_BOARDID_H
|
||||
|
||||
#define TARGET_BOARD_ID_J98AP (12)
|
||||
#define TARGET_BOARD_ID_J98DEV (13)
|
||||
#define TARGET_BOARD_ID_J99AP (4)
|
||||
#define TARGET_BOARD_ID_J99DEV (5)
|
||||
|
||||
// Board revs
|
||||
#define J98_DEV1_BOARD_REV (0x0)
|
||||
#define J98_DEV2_BOARD_REV (0x1)
|
||||
// board revs on AP are reversed
|
||||
// <rdar://problem/16314440> J99: Display timing selection on Form Factor is incorrect
|
||||
#define J99_PROTO0_BOARD_REV_LOCAL (0xE)
|
||||
#define J99_PROTO0_BOARD_REV_CHINA (0xD)
|
||||
#define J99_PROTO1_BOARD_REV_LOCAL (0xC)
|
||||
#define J99_PROTO1_BOARD_REV_CHINA (0xB)
|
||||
#define J99_PROTO2_BOARD_REV (0xA)
|
||||
#define J99_PROTO3_BOARD_REV (0x9)
|
||||
#define J99_PROTO3_P9_BOARD_REV (0x8)
|
||||
#define J99_EVT_BOARD_REV (0x7)
|
||||
#define J99_EVT_PLUS_BOARD_REV (0x6)
|
||||
#define J99_EVT2_BOARD_REV (0x5)
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Apple Inc. All rights reserved.
|
||||
*
|
||||
* This document is the property of Apple Inc.
|
||||
* It is considered confidential and proprietary.
|
||||
*
|
||||
* This document may not be reproduced or transmitted in any form,
|
||||
* in whole or in part, without the express written permission of
|
||||
* Apple Inc.
|
||||
*/
|
||||
#ifndef __TARGET_GPIODEF_H
|
||||
#define __TARGET_GPIODEF_H
|
||||
|
||||
/* ipad5,x specific gpio -> pin mappings */
|
||||
|
||||
#include <platform/gpio.h>
|
||||
|
||||
/* define target-specific gpios in a generic fashion here. */
|
||||
|
||||
/* Board Revision */
|
||||
#define GPIO_BOARD_REV0 GPIO( 20, 1) // 161 : ULPI_NXT
|
||||
#define GPIO_BOARD_REV1 GPIO( 19, 7) // 159 : ULPI_DIR
|
||||
#define GPIO_BOARD_REV2 GPIO( 21, 0) // 168 : ULPI_DATA[2]
|
||||
#define GPIO_BOARD_REV3 GPIO( 20, 3) // 163 : ULPI_DATA[6]
|
||||
|
||||
/* Miscellaneous Pins */
|
||||
#define GPIO_PMU_LCD_PWR_EN (17)
|
||||
|
||||
/* D2207 watchdog tickle, 'KEEPACT' */
|
||||
#define GPIO_WDOG_TICKLE GPIO( 10, 7) // 87 : GPIO[7] -> GPIO_SOC2PMU_KEEPACT
|
||||
|
||||
/* Enable for GPU UVD */
|
||||
#define GPIO_SOC2GPUUVD_EN GPIO( 10, 0)
|
||||
|
||||
/* which IICs to initialize */
|
||||
#define IICS_MASK (0xF)
|
||||
|
||||
#define TRISTAR_IIC_BUS (0)
|
||||
|
||||
#define BACKLIGHT_IIC_BUS (0)
|
||||
|
||||
#endif /* ! __TARGET_GPIODEF_H */
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (C) 2014 Apple Inc. All rights reserved.
|
||||
*
|
||||
* This document is the property of Apple Inc.
|
||||
* It is considered confidential and proprietary.
|
||||
*
|
||||
* This document may not be reproduced or transmitted in any form,
|
||||
* in whole or in part, without the express written permission of
|
||||
* Apple Inc.
|
||||
*/
|
||||
#ifndef LPDP_SETTINGS_H
|
||||
#define LPDP_SETTINGS_H
|
||||
|
||||
static struct lpdp_port_calibration lpdp_port_calibration_table[1][1] = {
|
||||
{ {LPDP_PHY_LANE_VREG_ADJ_360_mV, 0}, },
|
||||
};
|
||||
|
||||
#define LPDP_PORT_CALIBRATION_TABLE_FIXED (true)
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,120 @@
|
||||
#ifndef __TARGET_POWERCONFIG_H
|
||||
#define __TARGET_POWERCONFIG_H
|
||||
|
||||
/* configuration per target */
|
||||
|
||||
#define PMU_IIC_BUS 0
|
||||
#define CHARGER_IIC_BUS 3
|
||||
|
||||
/* this configuration is very PMU specific and must be included exactly once in power.c */
|
||||
#ifdef POWERCONFIG_PMU_SETUP
|
||||
|
||||
static const struct pmu_setup_struct pmu_ldo_warm_setup[] =
|
||||
{
|
||||
};
|
||||
|
||||
static const struct pmu_setup_struct pmu_ldo_cold_setup[] =
|
||||
{
|
||||
{ PMU_IIC_BUS, kD2207_HIBERNATE6, 0x24 }, // enable BUCK4_SW2+BUCK3_SW3 (Oscar Rails) in hibernate
|
||||
};
|
||||
|
||||
static const struct pmu_setup_struct pmu_warm_init[] =
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
static const struct pmu_setup_struct pmu_cold_init[] =
|
||||
{
|
||||
{ PMU_IIC_BUS, kD2207_GPIO3, 0xDA}, // GPIO_IOXPNDR_INT_L In, F Edge, No Push-Pull, No Wake, PU
|
||||
{ PMU_IIC_BUS, kD2207_GPIO4, 0x7B}, // GPIO_TS2ORIONSOC2PMU_IRQ In, R Edge, No Push-Pull, No Wake, PU
|
||||
#if TARGET_HAS_BASEBAND
|
||||
{ PMU_IIC_BUS, kD2207_GPIO5, 0x09}, // GPIO_PMU2BBPMU_RESET_L Out 0, Push-Pull, VBUCK3
|
||||
#else
|
||||
{ PMU_IIC_BUS, kD2207_GPIO5, 0xB9}, // GPIO_PMU2BBPMU_RESET_L In, R Edge, PD
|
||||
#endif
|
||||
{ PMU_IIC_BUS, kD2207_GPIO6, 0xDA}, // UART_BATT_HDQ In, F Edge, Wake, PD
|
||||
{ PMU_IIC_BUS, kD2207_GPIO7, 0xBA}, // GPIO_BT2PMU_HOST_WAKE In, R Edge, Wake, PD
|
||||
{ PMU_IIC_BUS, kD2207_GPIO8, 0x7B}, // GPIO_WLAN2PMU_HOST_WAKE In, R Edge, No Pull-Up, No Wake, PD
|
||||
#if TARGET_HAS_BASEBAND
|
||||
{ PMU_IIC_BUS, kD2207_GPIO9, 0x8A}, // GPIO_BB2PMU_HOST_WAKE_L In, Active low, Wake, PU, VBUCK3
|
||||
#else
|
||||
{ PMU_IIC_BUS, kD2207_GPIO9, 0xB9}, // GPIO_BB2PMU_HOST_WAKE_L In, R Edge, PD
|
||||
#endif
|
||||
{ PMU_IIC_BUS, kD2207_GPIO10, 0xEA}, // GPIO_CODEC2PMU_HS_IRQ_L In, Any Edge, Wake, PU, VBUCK3
|
||||
{ PMU_IIC_BUS, kD2207_GPIO11, 0xFB}, // GPIO_HALL2PMU_IRQ0 Both Edges, Wake, PD
|
||||
{ PMU_IIC_BUS, kD2207_GPIO12, 0x7B}, // GPIO_TS2SOC2PMU_IRQ In, Hi level, Wake, PD
|
||||
{ PMU_IIC_BUS, kD2207_GPIO13, 0xEA}, // GPIO_HALL2PMU_IRQ1 Both Edges, VBUCK3, Wake, PU
|
||||
{ PMU_IIC_BUS, kD2207_GPIO14, 0xB8}, // PCIE_WLAN2PMU_WAKE_L In, F Edge, VBUCK3, No Wake, PU
|
||||
{ PMU_IIC_BUS, kD2207_GPIO15, 0xDA}, // GPIO_GANGES2SOC2PMU_IRQ_L In, F Edge, Wake, PD
|
||||
{ PMU_IIC_BUS, kD2207_GPIO16, 0x7B}, // GPIO_OSCAR2PMU_HOST_WAKE In, Hi level, Wake, PD
|
||||
|
||||
{ PMU_IIC_BUS, kD2207_BUCK_DWI_CTRL0, 0x23 }, // enable DWI for BUCK0, BUCK1, BUCK5
|
||||
{ PMU_IIC_BUS, kDIALOG_SYS_CONTROL2, 0x11 }, // HIB_32K (for WiFi/BT) + DWI_EN
|
||||
};
|
||||
|
||||
static const struct pmu_setup_struct pmu_backlight_enable[] =
|
||||
{
|
||||
{ PMU_IIC_BUS, kDIALOG_WLED_ISET, 0xD4 }, // 50% value from OS
|
||||
{ PMU_IIC_BUS, kDIALOG_WLED_ISET2, 0x00 },
|
||||
{ PMU_IIC_BUS, kDIALOG_WLED_CONTROL, // enable all LED strings
|
||||
(kDIALOG_WLED_CONTROL_WLED_ENABLE1 |
|
||||
kDIALOG_WLED_CONTROL_WLED_ENABLE2 |
|
||||
kDIALOG_WLED_CONTROL_WLED_ENABLE3 |
|
||||
kDIALOG_WLED_CONTROL_WLED_ENABLE4 |
|
||||
kDIALOG_WLED_CONTROL_WLED_ENABLE5 |
|
||||
kDIALOG_WLED_CONTROL_WLED_ENABLE6) },
|
||||
{ PMU_IIC_BUS, kDIALOG_WLED_OPTIONS, // enable LED Power
|
||||
(kDIALOG_WLED_CONTROL2_WLED_RAMP_EN |
|
||||
kDIALOG_WLED_CONTROL2_WLED_DITH_EN) }
|
||||
};
|
||||
|
||||
static const struct pmu_setup_struct pmu_backlight_disable[] =
|
||||
{
|
||||
{ PMU_IIC_BUS, kDIALOG_WLED_CONTROL, 0x0 } // disable LED power
|
||||
};
|
||||
|
||||
static const struct core_rails_struct soc_rails[] =
|
||||
{
|
||||
{ PMU_IIC_BUS, 0, kD2207_BUCK2_VSEL }
|
||||
};
|
||||
|
||||
static const struct core_rails_struct cpu_rails[] =
|
||||
{
|
||||
{ PMU_IIC_BUS, 0, kD2207_BUCK0_VSEL }
|
||||
};
|
||||
|
||||
static const struct core_rails_struct ram_rails[] =
|
||||
{
|
||||
{ PMU_IIC_BUS, 0, kD2207_BUCK5_VSEL }
|
||||
};
|
||||
|
||||
#define TARGET_USE_CHARGE_TABLE 1
|
||||
static const struct power_charge_limits pmu_charge_table[16] = {
|
||||
{ 4100, 1000, 1500, 2018 }, // 10 - 15C
|
||||
{ 4200, 1000, 1500, 2018 },
|
||||
{ USHRT_MAX, 1000, 1500, 2018 },
|
||||
{ 4100, 1500, 2000, 6053 }, // 15 - 20C
|
||||
{ 4200, 1500, 2000, 4035 },
|
||||
{ USHRT_MAX, 1500, 2000, 2018 },
|
||||
{ 4100, 2000, 4500, 6053 }, // 20 - 45C
|
||||
{ 4200, 2000, 4500, 5044 },
|
||||
{ USHRT_MAX, 2000, 4500, 4035 },
|
||||
};
|
||||
|
||||
#endif /* POWERCONFIG_PMU_SETUP */
|
||||
|
||||
#define NO_BATTERY_VOLTAGE 2700
|
||||
#define MIN_BOOT_BATTERY_VOLTAGE 3600
|
||||
#define TARGET_BOOT_BATTERY_VOLTAGE 3700
|
||||
#define TARGET_BOOT_BATTERY_CAPACITY 50
|
||||
#define PRECHARGE_BACKLIGHT_LEVEL 824
|
||||
#define ALWAYS_BOOT_BATTERY_VOLTAGE (TARGET_BOOT_BATTERY_VOLTAGE + 100)
|
||||
#define TARGET_MAX_USB_INPUT_CURRENT 2400
|
||||
#define TARGET_PRECHARGE_ALWAYS_DISPLAY_IDLE 1
|
||||
|
||||
|
||||
#define ACC_PWR_LDO (6)
|
||||
|
||||
#define GASGAUGE_BATTERYID_BLOCK 1
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Apple Inc. All rights reserved.
|
||||
*
|
||||
* This document is the property of Apple Inc.
|
||||
* It is considered confidential and proprietary.
|
||||
*
|
||||
* This document may not be reproduced or transmitted in any form,
|
||||
* in whole or in part, without the express written permission of
|
||||
* Apple Inc.
|
||||
*/
|
||||
#ifndef __TARGET_UARTCONFIG_H
|
||||
#define __TARGET_UARTCONFIG_H
|
||||
|
||||
/* define one debug serial ports */
|
||||
#define DEBUG_SERIAL_PORT (0)
|
||||
|
||||
#define HDQGAUGE_SERIAL_PORT (5)
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user