first and last commit
This commit is contained in:
commit
1bf4efd552
2612 files changed
+636500
No files matched your search
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (C) 2012 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 = 0x0000,
|
||||
.adbe0_vblank_clk_gate_wakeup = 0x0000,
|
||||
.adbe0_vblank_clk_gate_idle = 0x0001,
|
||||
.adbe0_vblank_busy_finish = 0,
|
||||
.adbe0_tunable_mode_ctrl = 0,
|
||||
.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) 2012-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 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
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#if SUB_PLATFORM_S8001
|
||||
#include <target/dcsfixup_s8001.h>
|
||||
#elif SUB_PLATFORM_S8003
|
||||
#include <target/dcsfixup_s8003.h>
|
||||
#else
|
||||
#include <target/dcsfixup_s8000.h>
|
||||
#endif
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 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 inline
|
||||
void dcs_init_config_fixup_params(dcs_config_params_t *dcs_params, dcs_target_t targtype)
|
||||
{
|
||||
uint32_t chip_rev = platform_get_chip_revision();
|
||||
|
||||
if(chip_rev < CHIP_REVISION_B0) {
|
||||
dcs_params->freq[0].freqchngctl[1] = 0x000b110c;
|
||||
dcs_params->freq[1].freqchngctl[1] = 0x000b110c;
|
||||
dcs_params->freq[0].selfref = 0x02001012;
|
||||
dcs_params->freq[1].selfref = 0x02001012;
|
||||
dcs_params->freq[2].selfref = 0x02001012;
|
||||
dcs_params->freq[3].selfref = 0x02001012;
|
||||
} else {
|
||||
dcs_params->freq[0].freqchngctl[2] = 0xb303000b;
|
||||
dcs_params->freq[1].freqchngctl[2] = 0xf303000b;
|
||||
dcs_params->freq[0].selfref = 0x28002012;
|
||||
dcs_params->freq[1].selfref = 0x28002012;
|
||||
dcs_params->freq[2].selfref = 0x28002012;
|
||||
dcs_params->freq[3].selfref = 0x28002012;
|
||||
}
|
||||
|
||||
dcs_params->freq[0].lat = 0x001030c2;
|
||||
dcs_params->freq[1].lat = 0x001020c2;
|
||||
dcs_params->freq[0].phyrdwrtim = 0x00010c01;
|
||||
dcs_params->freq[1].phyrdwrtim = 0x00010b01;
|
||||
dcs_params->freq[0].caspch = 0x40c20402;
|
||||
dcs_params->freq[0].act = 0x01020202;
|
||||
dcs_params->freq[0].autoref = 0x01010078;
|
||||
dcs_params->modereg = 0x04009024;
|
||||
dcs_params->freq[1].caspch = 0x40c20402;
|
||||
dcs_params->freq[1].act = 0x01020202;
|
||||
dcs_params->freq[1].autoref = 0x01010050;
|
||||
dcs_params->freq[2].caspch = 0x40c20402;
|
||||
dcs_params->freq[2].act = 0x01020202;
|
||||
dcs_params->freq[2].autoref = 0x01010014;
|
||||
dcs_params->freq[3].act = 0x01020404;
|
||||
dcs_params->freq[3].autoref = 0x01010005;
|
||||
dcs_params->autoref_params = 0x00150013;
|
||||
dcs_params->pdn = 0x21262222;
|
||||
dcs_params->freq[0].derate = 0x08212082;
|
||||
dcs_params->freq[1].derate = 0x08212082;
|
||||
dcs_params->freq[2].derate = 0x08212082;
|
||||
dcs_params->freq[0].lat2 = 0x001110c2;
|
||||
dcs_params->freq[1].lat2 = 0x001110c2;
|
||||
dcs_params->freq[0].tat = 0x01212222;
|
||||
dcs_params->freq[1].tat = 0x01212222;
|
||||
dcs_params->freq[3].mifqmaxctrl = 0x00000003;
|
||||
dcs_params->freq[0].odt_enable = 0x00000000;
|
||||
dcs_params->freq[1].odt_enable = 0x00000000;
|
||||
dcs_params->freq[0].rdcapcfg = 0x01000606;
|
||||
dcs_params->freq[1].rdcapcfg = 0x21000606;
|
||||
dcs_params->freq[2].rdcapcfg = 0x41000606;
|
||||
dcs_params->freq[3].rdcapcfg = 0x61000606;
|
||||
dcs_params->freq[0].autoref2 = 0x01010001;
|
||||
dcs_params->freq[1].autoref2 = 0x01010001;
|
||||
dcs_params->freq[2].autoref2 = 0x01010001;
|
||||
dcs_params->freq[3].autoref2 = 0x01010001;
|
||||
dcs_params->autoref_params2 = 0x00170013;
|
||||
dcs_params->odtszqc = 0x00000000;
|
||||
dcs_params->odtszqc2 = 0xc0000000;
|
||||
dcs_params->qbrparam = 0x00006100;
|
||||
dcs_params->odtszqc3 = 0xc0002320;
|
||||
};
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 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 inline
|
||||
void dcs_init_config_fixup_params(dcs_config_params_t *dcs_params, dcs_target_t targtype)
|
||||
{
|
||||
dcs_params->freq[0].freqchngctl[2] = 0xb303000b;
|
||||
dcs_params->freq[1].freqchngctl[2] = 0xd303000b;
|
||||
dcs_params->freq[0].lat = 0x001030c2;
|
||||
dcs_params->freq[1].lat = 0x001020c2;
|
||||
dcs_params->freq[0].phyrdwrtim = 0x00010d01;
|
||||
dcs_params->freq[1].phyrdwrtim = 0x00010b01;
|
||||
dcs_params->freq[0].caspch = 0x40c20402;
|
||||
dcs_params->freq[0].act = 0x01020202;
|
||||
dcs_params->freq[0].autoref = 0x01010078;
|
||||
dcs_params->freq[0].selfref = 0x28002012;
|
||||
dcs_params->modereg = 0x060c5024;
|
||||
dcs_params->freq[1].caspch = 0x40c20402;
|
||||
dcs_params->freq[1].act = 0x01020202;
|
||||
dcs_params->freq[1].autoref = 0x01010050;
|
||||
dcs_params->freq[1].selfref = 0x28002012;
|
||||
dcs_params->freq[2].caspch = 0x40c20402;
|
||||
dcs_params->freq[2].act = 0x01020202;
|
||||
dcs_params->freq[2].autoref = 0x01010014;
|
||||
dcs_params->freq[2].selfref = 0x28002012;
|
||||
dcs_params->freq[3].act = 0x01020404;
|
||||
dcs_params->freq[3].autoref = 0x01010005;
|
||||
dcs_params->freq[3].selfref = 0x28002012;
|
||||
dcs_params->autoref_params = 0x00150013;
|
||||
dcs_params->pdn = 0x21272222;
|
||||
dcs_params->freq[0].derate = 0x08212082;
|
||||
dcs_params->freq[1].derate = 0x08212082;
|
||||
dcs_params->freq[2].derate = 0x08212082;
|
||||
dcs_params->freq[0].lat2 = 0x001110c2;
|
||||
dcs_params->freq[1].lat2 = 0x001110c2;
|
||||
dcs_params->freq[0].tat = 0x01212222;
|
||||
dcs_params->freq[1].tat = 0x01212222;
|
||||
dcs_params->freq[3].mifqmaxctrl = 0x00000003;
|
||||
dcs_params->freq[0].odt_enable = 0x00000000;
|
||||
dcs_params->freq[1].odt_enable = 0x00000000;
|
||||
dcs_params->freq[0].rdcapcfg = 0x01000606;
|
||||
dcs_params->freq[1].rdcapcfg = 0x21000606;
|
||||
dcs_params->freq[2].rdcapcfg = 0x41000606;
|
||||
dcs_params->freq[3].rdcapcfg = 0x61000606;
|
||||
dcs_params->b0odtctrl = 0x00000000;
|
||||
dcs_params->b1odtctrl = 0x00000000;
|
||||
dcs_params->dqs0odtctrl = 0x00000000;
|
||||
dcs_params->dqs1odtctrl = 0x00000000;
|
||||
dcs_params->freq[0].autoref2 = 0x01010001;
|
||||
dcs_params->freq[1].autoref2 = 0x01010001;
|
||||
dcs_params->freq[2].autoref2 = 0x01010001;
|
||||
dcs_params->freq[3].autoref2 = 0x01010001;
|
||||
dcs_params->autoref_params2 = 0x002f0013;
|
||||
dcs_params->mr13cmd_step15 = 0x50,
|
||||
dcs_params->odtszqc = 0x00000000;
|
||||
dcs_params->odtszqc2 = 0xc0000000;
|
||||
dcs_params->qbrparam = 0x00000000;
|
||||
// Commenting the pwrmngten fixup b/c DV thinks this is a mistake in the spec
|
||||
// dcs_params->pwrmngten = 0x00000132;
|
||||
dcs_params->odtszqc3 = 0xc0002320;
|
||||
};
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 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 inline
|
||||
void dcs_init_config_fixup_params(dcs_config_params_t *dcs_params, dcs_target_t targtype)
|
||||
{
|
||||
dcs_params->freq[0].freqchngctl[2] = 0xb303000b;
|
||||
dcs_params->freq[1].freqchngctl[2] = 0xf303000b;
|
||||
dcs_params->freq[0].lat = 0x001030c2;
|
||||
dcs_params->freq[1].lat = 0x001020c2;
|
||||
dcs_params->freq[0].phyrdwrtim = 0x00010d01;
|
||||
dcs_params->freq[1].phyrdwrtim = 0x00010c01;
|
||||
dcs_params->freq[0].caspch = 0x40c20402;
|
||||
dcs_params->freq[0].act = 0x01020202;
|
||||
dcs_params->freq[0].autoref = 0x01010078;
|
||||
dcs_params->freq[0].selfref = 0x28002012;
|
||||
dcs_params->modereg = 0x060a9024;
|
||||
dcs_params->freq[1].caspch = 0x40c20402;
|
||||
dcs_params->freq[1].act = 0x01020202;
|
||||
dcs_params->freq[1].autoref = 0x01010050;
|
||||
dcs_params->freq[1].selfref = 0x28002012;
|
||||
dcs_params->freq[2].caspch = 0x40c20402;
|
||||
dcs_params->freq[2].act = 0x01020202;
|
||||
dcs_params->freq[2].autoref = 0x01010014;
|
||||
dcs_params->freq[2].selfref = 0x28002012;
|
||||
dcs_params->freq[3].act = 0x01020404;
|
||||
dcs_params->freq[3].autoref = 0x01010005;
|
||||
dcs_params->freq[3].selfref = 0x28002012;
|
||||
dcs_params->autoref_params = 0x00150013;
|
||||
dcs_params->pdn = 0x21262222;
|
||||
dcs_params->freq[0].derate = 0x08212082;
|
||||
dcs_params->freq[1].derate = 0x08212082;
|
||||
dcs_params->freq[2].derate = 0x08212082;
|
||||
dcs_params->freq[0].lat2 = 0x001110c2;
|
||||
dcs_params->freq[1].lat2 = 0x001110c2;
|
||||
dcs_params->freq[0].tat = 0x01212222;
|
||||
dcs_params->freq[1].tat = 0x01212222;
|
||||
dcs_params->freq[3].mifqmaxctrl = 0x00000003;
|
||||
dcs_params->freq[0].odt_enable = 0x00000000;
|
||||
dcs_params->freq[1].odt_enable = 0x00000000;
|
||||
dcs_params->freq[0].rdcapcfg = 0x01000606;
|
||||
dcs_params->freq[1].rdcapcfg = 0x21000606;
|
||||
dcs_params->freq[2].rdcapcfg = 0x41000606;
|
||||
dcs_params->freq[3].rdcapcfg = 0x61000606;
|
||||
dcs_params->b0odtctrl = 0x00000000;
|
||||
dcs_params->b1odtctrl = 0x00000000;
|
||||
dcs_params->dqs0odtctrl = 0x00000000;
|
||||
dcs_params->dqs1odtctrl = 0x00000000;
|
||||
dcs_params->freq[0].autoref2 = 0x01010001;
|
||||
dcs_params->freq[1].autoref2 = 0x01010001;
|
||||
dcs_params->freq[2].autoref2 = 0x01010001;
|
||||
dcs_params->freq[3].autoref2 = 0x01010001;
|
||||
dcs_params->autoref_params2 = 0x00170013;
|
||||
dcs_params->odtszqc = 0x00000000;
|
||||
dcs_params->odtszqc2 = 0xc0000000;
|
||||
dcs_params->qbrparam = 0x00006100;
|
||||
dcs_params->odtszqc3 = 0xc0002320;
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (C) 2012 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
|
||||
|
||||
/* S8000FPGA specific gpio -> pin mappings */
|
||||
|
||||
#include <platform/gpio.h>
|
||||
|
||||
/* define target-specific gpios in a generic fashion here. */
|
||||
|
||||
#endif /* ! __TARGET_GPIODEF_H */
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2012-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 (0)
|
||||
|
||||
#if SUPPORT_FPGA
|
||||
#define UART_OVERSAMPLE_OVERRIDE (11)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user