first and last commit

This commit is contained in:
Chris Nutter committed 2023-07-08 13:03:17 -07:00
commit 1bf4efd552
2612 files changed
+636500

No files matched your search

@@ -0,0 +1,32 @@
/*
* Copyright (C) 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_v1_tuneable adbe_tuneables[] = {
{
.name = "default",
.adbe0_vblank_pos_vbi_pulse = 0x0000,
.adbe0_vblank_clk_gate_wakeup = 0x0000,
.adbe0_vblank_clk_gate_idle = 0x0001,
.adbe0_vblank_blk_idle_dpb = 0x0000,
.adbe0_vblank_blk_idle_aap = 0x0000,
/*
* disable all clock gating until SEG resolves:
* <rdar://problem/13305313> J34: adbe dynamic clock gating causes no video on dp_tx
*/
.adbe0_tunable_mode_ctrl = 0,
.adbe0_aap_support = 1,
},
};
#endif
+106
View File
@@ -0,0 +1,106 @@
/*
* Copyright (C) 2011-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.
*/
static const struct amc_param amc_params = {
.flags = (FLAG_AMC_PARAM_BUSTAT23 | FLAG_AMC_PARAM_SLOW_BOOT | FLAG_AMC_PARAM_ZQCL),
.tREFi = 0x5d,
.longsrcnt = 0x2008,
.srextrarefcnt = 0x00020000,
.rdlat = 6,
.wrlat = 3,
.phyrdlat = 10,
.phywrlat = 2,
.pdn = 0x22000403,
.read = 0x00000203,
.bustat = 0x00222209,
.bustat2 = 0x00222209,
.derate = 0x2483135b,
.mcphyupdate = 0x05030000,
.autoref_params = 0x00000021,
.pwrmngtparam_small = 0x00011000,
.pwrmngtparam_guided = 0x01801000,
.chnldec = 0x00050000,
.aref_freq0 = 0x00000110,
.schen_default = 0x00000110,
.mr1 = 0x44,
.mr2 = 0x1a,
.mr3 = 0x01,
.pwrmngten_default = 0x00100100,
.mcphyupdate1 = 0x00000001,
.odts = 0x190,
.readleveling = 0x00000300,
.offset_shift_hynix = 0,
.offset_shift_elpida = 1,
.freq = {
{ // 800MHz
.cas = 0x00000308,
.pch = 0x00030612,
.act = 0x12040908,
.autoref = 0x19350000,
.selfref = 0x00039060,
.modereg = 0x20250782,
.mifcassch = 0x00000110,
.arefparam = 0x0c022131,
},
{ // 400MHz
.cas = 0x00000005,
.pch = 0x00000009,
.act = 0x09020505,
.autoref = 0x0d1b0000,
.selfref = 0x0001d000,
.modereg = 0x00130000,
.mifcassch = 0x00000000,
.arefparam = 0x00000101,
},
{ // 200MHz
.cas = 0x00000003,
.pch = 0x00000005,
.act = 0x08020303,
.autoref = 0x070e0000,
.selfref = 0x0000f000,
.modereg = 0x000a0000,
.mifcassch = 0x00000000,
.arefparam = 0x00000101,
},
{ // 50MHz
.cas = 0x00000003,
.pch = 0x00000003,
.act = 0x08020303,
.autoref = 0x02040000,
.selfref = 0x00004000,
.modereg = 0x00030000,
.mifcassch = 0x00000000,
.arefparam = 0x00000101,
}
}
};
static const struct amc_tunable amc_tunables[] = {
{ &rAMC_MCSARBCFG, 0x00000001 },
{ &rAMC_OPIDLETMR, 0x00200000 },
{ &rAMC_OPTMRADJPARAM, 0x20400064 },
{ &rAMC_MIFACTSCH, 0x00000001 },
{ &rAMC_MIFCASSCH_FREQ(0), 0x10000010 },
{ &rAMC_PSQRQCTL0, 0xff010110 },
{ &rAMC_PSQRQCTL1, 0x00001728 },
{ &rAMC_PSQRQTIMER0, 0x00000040 },
{ &rAMC_PSQRQTIMER1, 0x00000014 },
{ &rAMC_PSQRQTIMER2, 0x00000040 },
{ &rAMC_PSQRQBRST, 0x04100410 },
{ &rAMC_PSQRQSCHCRD, 0x00101400 },
{ &rAMC_PSQWQCTL0, 0x00010100 },
{ &rAMC_PSQWQBRST, 0x04100410 },
{ &rAMC_PSQWQSCHCRD, 0x00101400 },
{ &rAMC_MCUQOS, 0x00001919 },
{ &rAMC_MCUQOSLLT, 0x0000011f },
};
@@ -0,0 +1,38 @@
/*
* Copyright (C) 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_ASPNANDCONFIG_H
#define __TARGET_ASPNANDCONFIG_H
//MLC devices
#define ASPNAND_MLC_WRITE_DIES_IN_PARALLEL 4
#define ASPNAND_SLC_WRITE_DIES_IN_PARALLEL 2
#define ASPNAND_ERASE_DIES_IN_PARALLEL 4
#define ASPNAND_READ_DIES_IN_PARALLEL 4
#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 (2*1024*1024)
#define ASPNAND_LEGACY_INDIRECTION_MEMORY (2*1024*1024)
#endif
+36
View File
@@ -0,0 +1,36 @@
/*
* 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 __TARGET_GPIODEF_H
#define __TARGET_GPIODEF_H
/* j34m specific gpio -> pin mappings */
#include <platform/gpio.h>
/* define target-specific gpios in a generic fashion here. */
/* Board Revision */
#define GPIO_BOARD_REV0 GPIO(14, 6)
#define GPIO_BOARD_REV1 GPIO(14, 5)
#define GPIO_BOARD_REV2 GPIO(14, 4)
#define GPIO_BOARD_REV3 GPIO(14, 3)
/* which IICs to initialize */
#define IICS_MASK (0xD)
#define TRISTAR_IIC_BUS (2)
/* D2089 watchdog tickle, 'KEEPACT' */
#define GPIO_WDOG_TICKLE GPIO(12, 6)
#define POWER_GPIO_HVR_RESET_L (5)
#endif /* ! __TARGET_GPIODEF_H */
+83
View File
@@ -0,0 +1,83 @@
#ifndef __TARGET_POWERCONFIG_H
#define __TARGET_POWERCONFIG_H
/* configuration per target */
#define PMU_IIC_BUS 0
/* 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, kD2089_ACTIVE2, 0x03 }, // WLEDA/B BST
{ PMU_IIC_BUS, kD2089_BUCK4_VSEL, 0xD0 }, // rdar:// 15918274 PP1V2_S2R
{ PMU_IIC_BUS, kD2089_BUCK4_VSEL_ALT, 0xD0 }, //
};
static const struct pmu_setup_struct pmu_warm_init[] =
{
};
static const struct pmu_setup_struct pmu_cold_init[] =
{
/* GPIO configuration from I/O spreadsheet.
<rdar://problem/15995289> J34m: IO spreadsheet
Request spreadsheet update before modifying
update GPIO1,15 and remove dup of OTP per <rdar://16415219> J34m: set iBoot PMU GPIOs to IOSpreadsheet
update GPIO1 per <rdar://problem/16502988> J34m: PMU register for GPIO1 not set properly
*/
{ PMU_IIC_BUS, kD2089_GPIO1, 0x01 }, // PHY_SEL Out 0, Push-Pull, no PU
{ PMU_IIC_BUS, kD2089_GPIO3, 0x09 }, // PMU_GPIO_BT_REG_ON Out 0, Push-Pull, VBUCK3
{ PMU_IIC_BUS, kD2089_GPIO4, 0x09 }, // PMU_GPIO_WLAN_REG_ON Out 0, Push-Pull, VBUCK3
{ PMU_IIC_BUS, kD2089_GPIO7, 0xBA }, // PMU_GPIO_BT2PMU_HOST_WAKE In, R Edge, Wake, PD
{ PMU_IIC_BUS, kD2089_GPIO8, 0xBA }, // PMU_GPIO_WLAN2PMU_HOST_WAKE In, R Edge, Wake, PD
{ PMU_IIC_BUS, kD2089_GPIO12, 0x7B }, // GPIO_TS2SOC2PMU_INT In, Hi level, Wake, PD
{ PMU_IIC_BUS, kD2089_GPIO15, 0x88 }, // MOCA_LINK_L In, Lo level, PU, VBUCK3
{ PMU_IIC_BUS, kD2089_GPIO16, 0x18 }, // PMU_LAN2_RESET_L Out 0, Open-Drain, No PU
{ PMU_IIC_BUS, kD2089_GPIO17, 0xA1 }, // VBAT_DETECT In, R Edge, PD, VCC_MAIN
{ PMU_IIC_BUS, kD2089_GPIO_DEB3, 0x20 }, // GPIO5_DEBOUNCE=0, rdar://16735592 Debounce of ENET_DET needs to be disabled
{ PMU_IIC_BUS, kD2089_BUCK_DWI_CTRL0, 0x03 }, // enable DWI for BUCK0, BUCK1
{ PMU_IIC_BUS, kD2089_ACT_TO_HIB_DLY, 0x03 }, // set ACT_TO_HIB_DLY to 3 (6ms)
{ PMU_IIC_BUS, kDIALOG_SYS_CONTROL2, 0x11 }, // enable HIB_32kHz (for WIFI/BT) and DWI
};
static const struct pmu_setup_struct pmu_backlight_enable[] =
{
};
static const struct pmu_setup_struct pmu_backlight_disable[] =
{
};
static const struct core_rails_struct soc_rails[] =
{
{ PMU_IIC_BUS, 0, kD2089_BUCK2_VSEL }
};
static const struct core_rails_struct cpu_rails[] =
{
{ PMU_IIC_BUS, 0, kD2089_BUCK0_VSEL }
};
static const struct core_rails_struct ram_rails[] =
{
{ PMU_IIC_BUS, 0, kD2089_BUCK5_VSEL }
};
#endif /* POWERCONFIG_PMU_SETUP */
#define TARGET_POWER_NO_BATTERY 1
#define ALWAYS_BOOT_BATTERY_VOLTAGE (3000)
#define PRECHARGE_BACKLIGHT_LEVEL 103
#define TARGET_MAX_USB_INPUT_CURRENT 2400
#define ACC_PWR_LDO (6)
#endif
+21
View File
@@ -0,0 +1,21 @@
/*
* 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 __TARGET_UARTCONFIG_H
#define __TARGET_UARTCONFIG_H
/* define one debug serial ports */
#define DEBUG_SERIAL_PORT (3)
#define MCU_SERIAL_PORT (1)
#define UART_FLOWCONTROL_MASK (0x08)
#endif
+21
View File
@@ -0,0 +1,21 @@
/*
* 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 __TARGET_USBCONFIG_H
#define __TARGET_USBCONFIG_H
#ifdef USBPHY_OTGTUNE0
#undef USBPHY_OTGTUNE0
#define USBPHY_OTGTUNE0 (0x37449373)
#endif /* USBPHY_OTGTUNE0 */
#endif /* __TARGET_USBCONFIG_H */