src: Use tabs for indentation
Change-Id: I6b40aaf5af5d114bbb0cd227dfd50b0ee19eebba Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28934 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
d9169f826a
commit
88607a4b10
|
@ -265,7 +265,7 @@ static unsigned int do_hypertransport_scan_chain(struct bus *bus, unsigned min_d
|
||||||
min_unitid = (offset_unitid) ? CONFIG_HT_CHAIN_UNITID_BASE : 1;
|
min_unitid = (offset_unitid) ? CONFIG_HT_CHAIN_UNITID_BASE : 1;
|
||||||
|
|
||||||
#if CONFIG_HT_CHAIN_END_UNITID_BASE != 0x20
|
#if CONFIG_HT_CHAIN_END_UNITID_BASE != 0x20
|
||||||
/*
|
/*
|
||||||
* Let's record the device of last HT device, so we can set the unitid
|
* Let's record the device of last HT device, so we can set the unitid
|
||||||
* to CONFIG_HT_CHAIN_END_UNITID_BASE.
|
* to CONFIG_HT_CHAIN_END_UNITID_BASE.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,7 +28,7 @@ static void at24rf08c_init(struct device *dev)
|
||||||
if (!dev->enabled)
|
if (!dev->enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Ensure that EEPROM/RFID chip is not accessible through RFID.
|
/* Ensure that EEPROM/RFID chip is not accessible through RFID.
|
||||||
Need to do it only on 5c. */
|
Need to do it only on 5c. */
|
||||||
if (dev->path.type != DEVICE_PATH_I2C || dev->path.i2c.device != 0x5c)
|
if (dev->path.type != DEVICE_PATH_I2C || dev->path.i2c.device != 0x5c)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -39,7 +39,7 @@ static int at24rf08c_read_byte(struct device *dev, u8 addr)
|
||||||
int t = -1;
|
int t = -1;
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
/* After a register write AT24RF08C (which we issued in init function)
|
/* After a register write AT24RF08C (which we issued in init function)
|
||||||
sometimes stops responding. Retry several times in case of failure.
|
sometimes stops responding. Retry several times in case of failure.
|
||||||
*/
|
*/
|
||||||
for (j = 0; j < 100; j++) {
|
for (j = 0; j < 100; j++) {
|
||||||
|
|
|
@ -103,7 +103,7 @@ int intel_vga_int15_handler(void)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n", X86_AX);
|
printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n", X86_AX);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,14 +108,14 @@ struct vbios_data {
|
||||||
#define BDB_SKIP 254 /* VBIOS private block, ignore */
|
#define BDB_SKIP 254 /* VBIOS private block, ignore */
|
||||||
|
|
||||||
struct bdb_general_features {
|
struct bdb_general_features {
|
||||||
/* bits 1 */
|
/* bits 1 */
|
||||||
u8 panel_fitting:2;
|
u8 panel_fitting:2;
|
||||||
u8 flexaim:1;
|
u8 flexaim:1;
|
||||||
u8 msg_enable:1;
|
u8 msg_enable:1;
|
||||||
u8 clear_screen:3;
|
u8 clear_screen:3;
|
||||||
u8 color_flip:1;
|
u8 color_flip:1;
|
||||||
|
|
||||||
/* bits 2 */
|
/* bits 2 */
|
||||||
u8 download_ext_vbt:1;
|
u8 download_ext_vbt:1;
|
||||||
u8 enable_ssc:1;
|
u8 enable_ssc:1;
|
||||||
u8 ssc_freq:1;
|
u8 ssc_freq:1;
|
||||||
|
@ -125,17 +125,17 @@ struct bdb_general_features {
|
||||||
u8 display_clock_mode:1;
|
u8 display_clock_mode:1;
|
||||||
u8 rsvd8:1; /* finish byte */
|
u8 rsvd8:1; /* finish byte */
|
||||||
|
|
||||||
/* bits 3 */
|
/* bits 3 */
|
||||||
u8 disable_smooth_vision:1;
|
u8 disable_smooth_vision:1;
|
||||||
u8 single_dvi:1;
|
u8 single_dvi:1;
|
||||||
u8 rsvd9:1;
|
u8 rsvd9:1;
|
||||||
u8 fdi_rx_polarity_inverted:1;
|
u8 fdi_rx_polarity_inverted:1;
|
||||||
u8 rsvd10:4; /* finish byte */
|
u8 rsvd10:4; /* finish byte */
|
||||||
|
|
||||||
/* bits 4 */
|
/* bits 4 */
|
||||||
u8 legacy_monitor_detect;
|
u8 legacy_monitor_detect;
|
||||||
|
|
||||||
/* bits 5 */
|
/* bits 5 */
|
||||||
u8 int_crt_support:1;
|
u8 int_crt_support:1;
|
||||||
u8 int_tv_support:1;
|
u8 int_tv_support:1;
|
||||||
u8 int_efp_support:1;
|
u8 int_efp_support:1;
|
||||||
|
@ -603,7 +603,7 @@ struct bdb_edp {
|
||||||
#define SWF14_PM_APM_12 (0x2 << 16)
|
#define SWF14_PM_APM_12 (0x2 << 16)
|
||||||
#define SWF14_PM_APM_11 (0x1 << 16)
|
#define SWF14_PM_APM_11 (0x1 << 16)
|
||||||
#define SWF14_HK_REQUEST_MASK 0x0000ffff /* see GR18 6:3 for event type */
|
#define SWF14_HK_REQUEST_MASK 0x0000ffff /* see GR18 6:3 for event type */
|
||||||
/* if GR18 indicates a display switch */
|
/* if GR18 indicates a display switch */
|
||||||
#define SWF14_DS_PIPEB_LFP2_EN (1<<15)
|
#define SWF14_DS_PIPEB_LFP2_EN (1<<15)
|
||||||
#define SWF14_DS_PIPEB_EFP2_EN (1<<14)
|
#define SWF14_DS_PIPEB_EFP2_EN (1<<14)
|
||||||
#define SWF14_DS_PIPEB_TV2_EN (1<<13)
|
#define SWF14_DS_PIPEB_TV2_EN (1<<13)
|
||||||
|
@ -620,9 +620,9 @@ struct bdb_edp {
|
||||||
#define SWF14_DS_PIPEA_EFP_EN (1<<2)
|
#define SWF14_DS_PIPEA_EFP_EN (1<<2)
|
||||||
#define SWF14_DS_PIPEA_TV_EN (1<<1)
|
#define SWF14_DS_PIPEA_TV_EN (1<<1)
|
||||||
#define SWF14_DS_PIPEA_CRT_EN (1<<0)
|
#define SWF14_DS_PIPEA_CRT_EN (1<<0)
|
||||||
/* if GR18 indicates a panel fitting request */
|
/* if GR18 indicates a panel fitting request */
|
||||||
#define SWF14_PFIT_EN (1<<0) /* 0 means disable */
|
#define SWF14_PFIT_EN (1<<0) /* 0 means disable */
|
||||||
/* if GR18 indicates an APM change request */
|
/* if GR18 indicates an APM change request */
|
||||||
#define SWF14_APM_HIBERNATE 0x4
|
#define SWF14_APM_HIBERNATE 0x4
|
||||||
#define SWF14_APM_SUSPEND 0x3
|
#define SWF14_APM_SUSPEND 0x3
|
||||||
#define SWF14_APM_STANDBY 0x1
|
#define SWF14_APM_STANDBY 0x1
|
||||||
|
|
|
@ -265,7 +265,7 @@ static void wifi_pci_dev_init(struct device *dev)
|
||||||
val = pci_read_config16(dev, PMCS_DR);
|
val = pci_read_config16(dev, PMCS_DR);
|
||||||
if (val & PME_STS)
|
if (val & PME_STS)
|
||||||
elog_add_event_wake(ELOG_WAKE_SOURCE_PME_WIFI, 0);
|
elog_add_event_wake(ELOG_WAKE_SOURCE_PME_WIFI, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pci_operations pci_ops = {
|
static struct pci_operations pci_ops = {
|
||||||
|
|
|
@ -34,8 +34,8 @@ enum { /* export_type */
|
||||||
|
|
||||||
/* Callback for decodeVpdString to invoke. */
|
/* Callback for decodeVpdString to invoke. */
|
||||||
typedef int VpdDecodeCallback(const uint8_t *key, int32_t key_len,
|
typedef int VpdDecodeCallback(const uint8_t *key, int32_t key_len,
|
||||||
const uint8_t *value, int32_t value_len,
|
const uint8_t *value, int32_t value_len,
|
||||||
void *arg);
|
void *arg);
|
||||||
|
|
||||||
/* Container data types */
|
/* Container data types */
|
||||||
struct StringPair {
|
struct StringPair {
|
||||||
|
@ -153,53 +153,53 @@ int decodeVpdString(
|
||||||
void initContainer(struct PairContainer *container);
|
void initContainer(struct PairContainer *container);
|
||||||
|
|
||||||
struct StringPair *findString(struct PairContainer *container,
|
struct StringPair *findString(struct PairContainer *container,
|
||||||
const uint8_t *key,
|
const uint8_t *key,
|
||||||
struct StringPair ***prev_next);
|
struct StringPair ***prev_next);
|
||||||
|
|
||||||
/* If key is already existed in container, its value will be replaced.
|
/* If key is already existed in container, its value will be replaced.
|
||||||
* If not existed, creates new entry in container.
|
* If not existed, creates new entry in container.
|
||||||
*/
|
*/
|
||||||
void setString(struct PairContainer *container,
|
void setString(struct PairContainer *container,
|
||||||
const uint8_t *key,
|
const uint8_t *key,
|
||||||
const uint8_t *value,
|
const uint8_t *value,
|
||||||
const int pad_len);
|
const int pad_len);
|
||||||
|
|
||||||
/* merge all entries in src into dst. If key is duplicate, overwrite it.
|
/* merge all entries in src into dst. If key is duplicate, overwrite it.
|
||||||
*/
|
*/
|
||||||
void mergeContainer(struct PairContainer *dst,
|
void mergeContainer(struct PairContainer *dst,
|
||||||
const struct PairContainer *src);
|
const struct PairContainer *src);
|
||||||
|
|
||||||
/* subtract src from dst.
|
/* subtract src from dst.
|
||||||
*/
|
*/
|
||||||
int subtractContainer(struct PairContainer *dst,
|
int subtractContainer(struct PairContainer *dst,
|
||||||
const struct PairContainer *src);
|
const struct PairContainer *src);
|
||||||
|
|
||||||
/* Given a container, encode its all entries into the buffer.
|
/* Given a container, encode its all entries into the buffer.
|
||||||
*/
|
*/
|
||||||
int encodeContainer(const struct PairContainer *container,
|
int encodeContainer(const struct PairContainer *container,
|
||||||
const int max_buf_len,
|
const int max_buf_len,
|
||||||
uint8_t *buf,
|
uint8_t *buf,
|
||||||
int *generated);
|
int *generated);
|
||||||
|
|
||||||
/* Given a VPD blob, decode its entries and push into container.
|
/* Given a VPD blob, decode its entries and push into container.
|
||||||
*/
|
*/
|
||||||
int decodeToContainer(struct PairContainer *container,
|
int decodeToContainer(struct PairContainer *container,
|
||||||
const int32_t max_len,
|
const int32_t max_len,
|
||||||
const uint8_t *input_buf,
|
const uint8_t *input_buf,
|
||||||
int32_t *consumed);
|
int32_t *consumed);
|
||||||
|
|
||||||
/* Set filter for exporting functions.
|
/* Set filter for exporting functions.
|
||||||
* If filter is NULL, resets the filter so that everything can be exported.
|
* If filter is NULL, resets the filter so that everything can be exported.
|
||||||
*/
|
*/
|
||||||
int setContainerFilter(struct PairContainer *container,
|
int setContainerFilter(struct PairContainer *container,
|
||||||
const uint8_t *filter);
|
const uint8_t *filter);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove a key.
|
* Remove a key.
|
||||||
* Returns VPD_OK if deleted successfully. Otherwise, VPD_FAIL.
|
* Returns VPD_OK if deleted successfully. Otherwise, VPD_FAIL.
|
||||||
*/
|
*/
|
||||||
int deleteKey(struct PairContainer *container,
|
int deleteKey(struct PairContainer *container,
|
||||||
const uint8_t *key);
|
const uint8_t *key);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns number of pairs in container.
|
* Returns number of pairs in container.
|
||||||
|
@ -216,10 +216,10 @@ int lenOfContainer(const struct PairContainer *container);
|
||||||
* generated.
|
* generated.
|
||||||
*/
|
*/
|
||||||
int exportContainer(const int export_type,
|
int exportContainer(const int export_type,
|
||||||
const struct PairContainer *container,
|
const struct PairContainer *container,
|
||||||
const int max_buf_len,
|
const int max_buf_len,
|
||||||
uint8_t *buf,
|
uint8_t *buf,
|
||||||
int *generated);
|
int *generated);
|
||||||
|
|
||||||
void destroyContainer(struct PairContainer *container);
|
void destroyContainer(struct PairContainer *container);
|
||||||
|
|
||||||
|
|
|
@ -146,12 +146,12 @@ Device (EC0)
|
||||||
{
|
{
|
||||||
Store ("-----> EC: _Q43", Debug)
|
Store ("-----> EC: _Q43", Debug)
|
||||||
|
|
||||||
Store (BRIG, Local0)
|
Store (BRIG, Local0)
|
||||||
Increment (Local0)
|
Increment (Local0)
|
||||||
If (LGreater (Local0, 0xAA)) {
|
If (LGreater (Local0, 0xAA)) {
|
||||||
Store (0xAA, Local0)
|
Store (0xAA, Local0)
|
||||||
}
|
}
|
||||||
Store (Local0, BRIG)
|
Store (Local0, BRIG)
|
||||||
|
|
||||||
\_SB.PCI0.GFX0.INCB ()
|
\_SB.PCI0.GFX0.INCB ()
|
||||||
|
|
||||||
|
@ -162,13 +162,13 @@ Device (EC0)
|
||||||
{
|
{
|
||||||
Store ("-----> EC: _Q44", Debug)
|
Store ("-----> EC: _Q44", Debug)
|
||||||
|
|
||||||
Store (BRIG, Local0)
|
Store (BRIG, Local0)
|
||||||
Decrement (Local0)
|
Decrement (Local0)
|
||||||
If (LLess (Local0, 0xA0))
|
If (LLess (Local0, 0xA0))
|
||||||
{
|
{
|
||||||
Store (0xA0, Local0)
|
Store (0xA0, Local0)
|
||||||
}
|
}
|
||||||
Store (Local0, BRIG)
|
Store (Local0, BRIG)
|
||||||
|
|
||||||
\_SB.PCI0.GFX0.DECB ()
|
\_SB.PCI0.GFX0.DECB ()
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ Device (EC0)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Zero)
|
Return (Zero)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (FCOS) {
|
If (FCOS) {
|
||||||
Store (One, FSL4)
|
Store (One, FSL4)
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <include/device/pci_def.h>
|
#include <include/device/pci_def.h>
|
||||||
u32 Get_NB32(u32 dev, u32 reg)
|
u32 Get_NB32(u32 dev, u32 reg)
|
||||||
{
|
{
|
||||||
return pci_read_config32(dev_find_slot(0, PCI_DEV2DEVFN(dev)), reg);
|
return pci_read_config32(dev_find_slot(0, PCI_DEV2DEVFN(dev)), reg);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ struct db_limit {
|
||||||
|
|
||||||
static void set_db(const struct sysinfo *s, struct dll_setting *dq_dqs_setting)
|
static void set_db(const struct sysinfo *s, struct dll_setting *dq_dqs_setting)
|
||||||
{
|
{
|
||||||
struct db_limit limit;
|
struct db_limit limit;
|
||||||
|
|
||||||
switch (s->selected_timings.mem_clk) {
|
switch (s->selected_timings.mem_clk) {
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -209,7 +209,7 @@ static void vx900_lpc_read_resources(struct device *dev)
|
||||||
static void vx900_lpc_set_resources(struct device *dev)
|
static void vx900_lpc_set_resources(struct device *dev)
|
||||||
{
|
{
|
||||||
struct resource *mmio, *spi;
|
struct resource *mmio, *spi;
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
|
||||||
mmio = find_resource(dev, VX900_MMCONFIG_MBAR);
|
mmio = find_resource(dev, VX900_MMCONFIG_MBAR);
|
||||||
if (mmio) {
|
if (mmio) {
|
||||||
|
|
|
@ -58,5 +58,5 @@ static void bootblock_mmu_init(void)
|
||||||
C0_ENTRYLO_COHERENCY_WB));
|
C0_ENTRYLO_COHERENCY_WB));
|
||||||
assert(!identity_map(dram_base, dram_size, C0_ENTRYLO_COHERENCY_WB));
|
assert(!identity_map(dram_base, dram_size, C0_ENTRYLO_COHERENCY_WB));
|
||||||
assert(!identity_map((uint32_t)_soc_registers, _soc_registers_size,
|
assert(!identity_map((uint32_t)_soc_registers, _soc_registers_size,
|
||||||
C0_ENTRYLO_COHERENCY_UC));
|
C0_ENTRYLO_COHERENCY_UC));
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ void soc_fill_fadt(acpi_fadt_t *fadt)
|
||||||
printk(BIOS_ERR, "BUG! Could not find SOC devicetree config\n");
|
printk(BIOS_ERR, "BUG! Could not find SOC devicetree config\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cfg = dev->chip_info;
|
cfg = dev->chip_info;
|
||||||
|
|
||||||
if(cfg->lpss_s0ix_enable)
|
if(cfg->lpss_s0ix_enable)
|
||||||
fadt->flags |= ACPI_FADT_LOW_PWR_IDLE_S0;
|
fadt->flags |= ACPI_FADT_LOW_PWR_IDLE_S0;
|
||||||
|
|
|
@ -573,7 +573,7 @@ static void glk_fsp_silicon_init_params_cb(
|
||||||
|
|
||||||
void __weak mainboard_devtree_update(struct device *dev)
|
void __weak mainboard_devtree_update(struct device *dev)
|
||||||
{
|
{
|
||||||
/* Override dev tree settings per board */
|
/* Override dev tree settings per board */
|
||||||
}
|
}
|
||||||
|
|
||||||
void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
|
void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
|
||||||
|
|
|
@ -260,7 +260,7 @@ int nhlt_soc_add_max98357(struct nhlt *nhlt, int hwlink)
|
||||||
|
|
||||||
int nhlt_soc_add_rt5682(struct nhlt *nhlt, int hwlink)
|
int nhlt_soc_add_rt5682(struct nhlt *nhlt, int hwlink)
|
||||||
{
|
{
|
||||||
/* Virtual bus id of SSP links are the hardware port ids proper. */
|
/* Virtual bus id of SSP links are the hardware port ids proper. */
|
||||||
return nhlt_add_ssp_endpoints(nhlt, hwlink, rt5682_descriptors,
|
return nhlt_add_ssp_endpoints(nhlt, hwlink, rt5682_descriptors,
|
||||||
ARRAY_SIZE(rt5682_descriptors));
|
ARRAY_SIZE(rt5682_descriptors));
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,7 +170,7 @@ static void setup_gpios(const struct soc_gpio_map *gpios,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setup_gpio_route(const struct soc_gpio_map *sus,
|
static void setup_gpio_route(const struct soc_gpio_map *sus,
|
||||||
const struct soc_gpio_map *core)
|
const struct soc_gpio_map *core)
|
||||||
{
|
{
|
||||||
uint32_t route_reg = 0;
|
uint32_t route_reg = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -52,7 +52,7 @@ uint16_t get_pmbase(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_num_status_bits(int num_bits, uint32_t status,
|
static void print_num_status_bits(int num_bits, uint32_t status,
|
||||||
const char *bit_names[])
|
const char *bit_names[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -97,8 +97,8 @@ static void spi_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Entry from cache-as-ram.inc. */
|
/* Entry from cache-as-ram.inc. */
|
||||||
void *asmlinkage romstage_main(unsigned long bist,
|
void *asmlinkage romstage_main(unsigned long bist, uint32_t tsc_low,
|
||||||
uint32_t tsc_low, uint32_t tsc_hi)
|
uint32_t tsc_hi)
|
||||||
{
|
{
|
||||||
struct romstage_params rp = {
|
struct romstage_params rp = {
|
||||||
.bist = bist,
|
.bist = bist,
|
||||||
|
|
|
@ -17,6 +17,6 @@
|
||||||
|
|
||||||
void *cbmem_top(void)
|
void *cbmem_top(void)
|
||||||
{
|
{
|
||||||
/* not implemented yet */
|
/* not implemented yet */
|
||||||
return (void *) NULL;
|
return (void *) NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -231,7 +231,7 @@ static const struct nhlt_endp_descriptor max98373_descriptors[] = {
|
||||||
.did = NHLT_DID_SSP,
|
.did = NHLT_DID_SSP,
|
||||||
.formats = max98373_capture_formats,
|
.formats = max98373_capture_formats,
|
||||||
.num_formats = ARRAY_SIZE(max98373_capture_formats),
|
.num_formats = ARRAY_SIZE(max98373_capture_formats),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
int nhlt_soc_add_dmic_array(struct nhlt *nhlt, int num_channels)
|
int nhlt_soc_add_dmic_array(struct nhlt *nhlt, int num_channels)
|
||||||
|
|
|
@ -155,8 +155,8 @@ static void sa_add_dram_resources(struct device *dev, int *resource_count)
|
||||||
if (IS_ENABLED(CONFIG_SA_ENABLE_DPR))
|
if (IS_ENABLED(CONFIG_SA_ENABLE_DPR))
|
||||||
dpr_size = sa_get_dpr_size();
|
dpr_size = sa_get_dpr_size();
|
||||||
|
|
||||||
/* Get SoC reserve memory size as per user selection */
|
/* Get SoC reserve memory size as per user selection */
|
||||||
reserved_mmio_size = soc_reserved_mmio_size();
|
reserved_mmio_size = soc_reserved_mmio_size();
|
||||||
|
|
||||||
top_of_ram = (uintptr_t)cbmem_top();
|
top_of_ram = (uintptr_t)cbmem_top();
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ static void setup_gpios(const struct soc_gpio_map *gpios,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setup_gpio_route(const struct soc_gpio_map *sus,
|
static void setup_gpio_route(const struct soc_gpio_map *sus,
|
||||||
const struct soc_gpio_map *core)
|
const struct soc_gpio_map *core)
|
||||||
{
|
{
|
||||||
uint32_t route_reg = 0;
|
uint32_t route_reg = 0;
|
||||||
int i;
|
int i;
|
||||||
|
@ -319,7 +319,7 @@ void write_ssus_gpio(uint8_t gpio_num, uint8_t val)
|
||||||
* pad value: PAD_VAL_HIGH / PAD_VAL_LOW
|
* pad value: PAD_VAL_HIGH / PAD_VAL_LOW
|
||||||
*/
|
*/
|
||||||
static void configure_ssus_score_gpio(uint8_t ssus_gpio, uint8_t gpio_num,
|
static void configure_ssus_score_gpio(uint8_t ssus_gpio, uint8_t gpio_num,
|
||||||
uint32_t pconf0, uint32_t pad_val)
|
uint32_t pconf0, uint32_t pad_val)
|
||||||
{
|
{
|
||||||
uint32_t reg;
|
uint32_t reg;
|
||||||
uint32_t *pad_addr;
|
uint32_t *pad_addr;
|
||||||
|
|
|
@ -266,34 +266,34 @@ Device (TSR1)
|
||||||
|
|
||||||
#ifdef DPTF_ENABLE_FAN_CONTROL
|
#ifdef DPTF_ENABLE_FAN_CONTROL
|
||||||
#ifdef DPTF_TSR1_ACTIVE_AC0
|
#ifdef DPTF_TSR1_ACTIVE_AC0
|
||||||
Method (_AC0)
|
Method (_AC0)
|
||||||
{
|
{
|
||||||
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC0))
|
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC0))
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef DPTF_TSR1_ACTIVE_AC1
|
#ifdef DPTF_TSR1_ACTIVE_AC1
|
||||||
Method (_AC1)
|
Method (_AC1)
|
||||||
{
|
{
|
||||||
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC1))
|
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC1))
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef DPTF_TSR1_ACTIVE_AC2
|
#ifdef DPTF_TSR1_ACTIVE_AC2
|
||||||
Method (_AC2)
|
Method (_AC2)
|
||||||
{
|
{
|
||||||
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC2))
|
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC2))
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef DPTF_TSR1_ACTIVE_AC3
|
#ifdef DPTF_TSR1_ACTIVE_AC3
|
||||||
Method (_AC3)
|
Method (_AC3)
|
||||||
{
|
{
|
||||||
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC3))
|
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC3))
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef DPTF_TSR1_ACTIVE_AC4
|
#ifdef DPTF_TSR1_ACTIVE_AC4
|
||||||
Method (_AC4)
|
Method (_AC4)
|
||||||
{
|
{
|
||||||
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC4))
|
Return (\_SB.DPTF.CTOK (DPTF_TSR1_ACTIVE_AC4))
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -195,8 +195,8 @@ Device (XHCI)
|
||||||
Store (3, ^UPSW)
|
Store (3, ^UPSW)
|
||||||
|
|
||||||
/* Enable d3hot and SS link trunk clock gating */
|
/* Enable d3hot and SS link trunk clock gating */
|
||||||
Store(One, ^D3HE)
|
Store(One, ^D3HE)
|
||||||
Store(One, ^STGE)
|
Store(One, ^STGE)
|
||||||
|
|
||||||
/* Now put device in D3 */
|
/* Now put device in D3 */
|
||||||
Store (3, Local0)
|
Store (3, Local0)
|
||||||
|
|
|
@ -75,7 +75,7 @@ static const struct nhlt_endp_descriptor max98373_descriptors[] = {
|
||||||
.did = NHLT_DID_SSP,
|
.did = NHLT_DID_SSP,
|
||||||
.formats = max98373_capture_formats,
|
.formats = max98373_capture_formats,
|
||||||
.num_formats = ARRAY_SIZE(max98373_capture_formats),
|
.num_formats = ARRAY_SIZE(max98373_capture_formats),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
int nhlt_soc_add_max98373(struct nhlt *nhlt, int hwlink)
|
int nhlt_soc_add_max98373(struct nhlt *nhlt, int hwlink)
|
||||||
|
|
|
@ -39,7 +39,7 @@ inline u8 is_dual_rank(u32 channel,
|
||||||
const struct mt8173_sdram_params *sdram_params)
|
const struct mt8173_sdram_params *sdram_params)
|
||||||
{
|
{
|
||||||
/* judge ranks from EMI_CONA[17] (cha) and EMI_CONA[16] (chb) */
|
/* judge ranks from EMI_CONA[17] (cha) and EMI_CONA[16] (chb) */
|
||||||
return (sdram_params->emi_set.cona & (1 << (17 - channel))) ? 1 : 0;
|
return (sdram_params->emi_set.cona & (1 << (17 - channel))) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mem_pll_pre_init(u32 channel)
|
static void mem_pll_pre_init(u32 channel)
|
||||||
|
|
|
@ -343,7 +343,7 @@ static u8 dqs_gw_coarse_tune_calib(u32 channel, u8 coarse_val)
|
||||||
gw_ret[i] = dqs_gw_test(channel);
|
gw_ret[i] = dqs_gw_test(channel);
|
||||||
/* judge test result */
|
/* judge test result */
|
||||||
if (gw_ret[i] != 0)
|
if (gw_ret[i] != 0)
|
||||||
return opt_coarse_val[i];
|
return opt_coarse_val[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* abnormal test result, set to default coarse tune value */
|
/* abnormal test result, set to default coarse tune value */
|
||||||
|
@ -747,7 +747,7 @@ u8 rx_datlat_cal(u32 channel, u8 rank,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Default dle value is set when test error (error recovery).
|
/* Default dle value is set when test error (error recovery).
|
||||||
* Others, adjusted dle calibration value is set normally.
|
* Others, adjusted dle calibration value is set normally.
|
||||||
*/
|
*/
|
||||||
set_dle_factor(channel, best_step);
|
set_dle_factor(channel, best_step);
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ static void mt6391_configure_vcama(enum ldo_voltage vsel)
|
||||||
mt6391_write(PMIC_RG_ANALDO_CON6, vsel - 2, PMIC_RG_VCAMA_VOSEL_MASK,
|
mt6391_write(PMIC_RG_ANALDO_CON6, vsel - 2, PMIC_RG_VCAMA_VOSEL_MASK,
|
||||||
PMIC_RG_VCAMA_VOSEL_SHIFT);
|
PMIC_RG_VCAMA_VOSEL_SHIFT);
|
||||||
mt6391_write(PMIC_RG_ANALDO_CON2, 1, PMIC_RG_VCAMA_EN_MASK,
|
mt6391_write(PMIC_RG_ANALDO_CON2, 1, PMIC_RG_VCAMA_EN_MASK,
|
||||||
PMIC_RG_VCAMA_EN_SHIFT);
|
PMIC_RG_VCAMA_EN_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mt6391_configure_ldo(enum ldo_power ldo, enum ldo_voltage vsel)
|
void mt6391_configure_ldo(enum ldo_power ldo, enum ldo_voltage vsel)
|
||||||
|
|
|
@ -212,7 +212,7 @@ void i2c_init(unsigned bus)
|
||||||
struct tegra_i2c_regs *regs;
|
struct tegra_i2c_regs *regs;
|
||||||
|
|
||||||
if (bus >= g_num_i2c_buses) {
|
if (bus >= g_num_i2c_buses) {
|
||||||
printk(BIOS_ERR, "%s: ERROR: invalid I2C bus (%u)\n", __func__,
|
printk(BIOS_ERR, "%s: ERROR: invalid I2C bus (%u)\n", __func__,
|
||||||
bus);
|
bus);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ struct soc_nvidia_tegra124_config {
|
||||||
|
|
||||||
int hpd_unplug_min_us;
|
int hpd_unplug_min_us;
|
||||||
int hpd_plug_min_us;
|
int hpd_plug_min_us;
|
||||||
int hpd_irq_min_us;
|
int hpd_irq_min_us;
|
||||||
|
|
||||||
int href_to_sync;
|
int href_to_sync;
|
||||||
int hsync_width;
|
int hsync_width;
|
||||||
|
|
|
@ -40,26 +40,26 @@ struct tegra_dc dc_data;
|
||||||
int dump = 0;
|
int dump = 0;
|
||||||
unsigned long READL(void *p)
|
unsigned long READL(void *p)
|
||||||
{
|
{
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In case of hard hung on readl(p), we can set dump > 1 to print out
|
* In case of hard hung on readl(p), we can set dump > 1 to print out
|
||||||
* the address accessed.
|
* the address accessed.
|
||||||
*/
|
*/
|
||||||
if (dump > 1)
|
if (dump > 1)
|
||||||
printk(BIOS_SPEW, "readl %p\n", p);
|
printk(BIOS_SPEW, "readl %p\n", p);
|
||||||
|
|
||||||
value = read32(p);
|
value = read32(p);
|
||||||
if (dump)
|
if (dump)
|
||||||
printk(BIOS_SPEW, "readl %p %08lx\n", p, value);
|
printk(BIOS_SPEW, "readl %p %08lx\n", p, value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WRITEL(unsigned long value, void *p)
|
void WRITEL(unsigned long value, void *p)
|
||||||
{
|
{
|
||||||
if (dump)
|
if (dump)
|
||||||
printk(BIOS_SPEW, "writel %p %08lx\n", p, value);
|
printk(BIOS_SPEW, "writel %p %08lx\n", p, value);
|
||||||
write32(p, value);
|
write32(p, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return in 1000ths of a Hertz */
|
/* return in 1000ths of a Hertz */
|
||||||
|
|
|
@ -1362,10 +1362,10 @@ void dp_init(void *_config)
|
||||||
struct tegra_dc *dc = config->dc_data;
|
struct tegra_dc *dc = config->dc_data;
|
||||||
struct tegra_dc_dp_data *dp = &dp_data;
|
struct tegra_dc_dp_data *dp = &dp_data;
|
||||||
|
|
||||||
// set up links among config, dc, dp and sor
|
// set up links among config, dc, dp and sor
|
||||||
dp->dc = dc;
|
dp->dc = dc;
|
||||||
dc->out = dp;
|
dc->out = dp;
|
||||||
dp->sor.dc = dc;
|
dp->sor.dc = dc;
|
||||||
|
|
||||||
dp->sor.power_is_up = 0;
|
dp->sor.power_is_up = 0;
|
||||||
dp->sor.base = (void *)TEGRA_ARM_SOR;
|
dp->sor.base = (void *)TEGRA_ARM_SOR;
|
||||||
|
@ -1427,7 +1427,7 @@ void dp_enable(void *_dp)
|
||||||
if (tegra_dc_dp_init_max_link_cfg(config, dp, &dp->link_cfg)) {
|
if (tegra_dc_dp_init_max_link_cfg(config, dp, &dp->link_cfg)) {
|
||||||
printk(BIOS_ERR, "dp: failed to init link configuration\n");
|
printk(BIOS_ERR, "dp: failed to init link configuration\n");
|
||||||
goto error_enable;
|
goto error_enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
tegra_dc_sor_enable_dp(&dp->sor);
|
tegra_dc_sor_enable_dp(&dp->sor);
|
||||||
|
|
||||||
|
|
|
@ -25,26 +25,26 @@
|
||||||
int dump = 0;
|
int dump = 0;
|
||||||
unsigned long READL(void *p)
|
unsigned long READL(void *p)
|
||||||
{
|
{
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In case of hard hung on readl(p), we can set dump > 1 to print out
|
* In case of hard hung on readl(p), we can set dump > 1 to print out
|
||||||
* the address accessed.
|
* the address accessed.
|
||||||
*/
|
*/
|
||||||
if (dump > 1)
|
if (dump > 1)
|
||||||
printk(BIOS_SPEW, "readl %p\n", p);
|
printk(BIOS_SPEW, "readl %p\n", p);
|
||||||
|
|
||||||
value = read32(p);
|
value = read32(p);
|
||||||
if (dump)
|
if (dump)
|
||||||
printk(BIOS_SPEW, "readl %p %08lx\n", p, value);
|
printk(BIOS_SPEW, "readl %p %08lx\n", p, value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WRITEL(unsigned long value, void *p)
|
void WRITEL(unsigned long value, void *p)
|
||||||
{
|
{
|
||||||
if (dump)
|
if (dump)
|
||||||
printk(BIOS_SPEW, "writel %p %08lx\n", p, value);
|
printk(BIOS_SPEW, "writel %p %08lx\n", p, value);
|
||||||
write32(p, value);
|
write32(p, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return in 1000ths of a Hertz */
|
/* return in 1000ths of a Hertz */
|
||||||
|
@ -76,7 +76,7 @@ static void print_mode(const struct soc_nvidia_tegra210_config *config)
|
||||||
}
|
}
|
||||||
|
|
||||||
int update_display_mode(struct display_controller *disp_ctrl,
|
int update_display_mode(struct display_controller *disp_ctrl,
|
||||||
struct soc_nvidia_tegra210_config *config)
|
struct soc_nvidia_tegra210_config *config)
|
||||||
{
|
{
|
||||||
print_mode(config);
|
print_mode(config);
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ int update_display_mode(struct display_controller *disp_ctrl,
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_display_shift_clock_divider(struct display_controller *disp_ctrl,
|
void update_display_shift_clock_divider(struct display_controller *disp_ctrl,
|
||||||
u32 shift_clock_div)
|
u32 shift_clock_div)
|
||||||
{
|
{
|
||||||
WRITEL((PIXEL_CLK_DIVIDER_PCD1 << PIXEL_CLK_DIVIDER_SHIFT) |
|
WRITEL((PIXEL_CLK_DIVIDER_PCD1 << PIXEL_CLK_DIVIDER_SHIFT) |
|
||||||
(shift_clock_div & 0xff) << SHIFT_CLK_DIVIDER_SHIFT,
|
(shift_clock_div & 0xff) << SHIFT_CLK_DIVIDER_SHIFT,
|
||||||
|
|
|
@ -886,12 +886,12 @@ static int dsi_probe_if(int dsi_index,
|
||||||
/*
|
/*
|
||||||
* Set default value. Will be taken from attached device once detected
|
* Set default value. Will be taken from attached device once detected
|
||||||
*/
|
*/
|
||||||
dsi->flags = 0;
|
dsi->flags = 0;
|
||||||
dsi->format = MIPI_DSI_FMT_RGB888;
|
dsi->format = MIPI_DSI_FMT_RGB888;
|
||||||
dsi->lanes = 4;
|
dsi->lanes = 4;
|
||||||
|
|
||||||
/* get tegra_mipi_device */
|
/* get tegra_mipi_device */
|
||||||
dsi->mipi = tegra_mipi_request(&mipi_device_data[dsi_index], dsi_index);
|
dsi->mipi = tegra_mipi_request(&mipi_device_data[dsi_index], dsi_index);
|
||||||
|
|
||||||
/* calibrate */
|
/* calibrate */
|
||||||
err = tegra_dsi_pad_calibrate(dsi);
|
err = tegra_dsi_pad_calibrate(dsi);
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include <arch/asm.h>
|
#include <arch/asm.h>
|
||||||
#include "stack.S"
|
#include "stack.S"
|
||||||
|
|
||||||
.section ".text", "ax", %progbits
|
.section ".text", "ax", %progbits
|
||||||
|
|
||||||
ENTRY(main)
|
ENTRY(main)
|
||||||
stack_init stack_top=_estack stack_bottom=_stack seed=0 func=romstage
|
stack_init stack_top=_estack stack_bottom=_stack seed=0 func=romstage
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* @func : Function to call after initializing stack
|
* @func : Function to call after initializing stack
|
||||||
*/
|
*/
|
||||||
.macro stack_init stack_top, stack_bottom, seed, func
|
.macro stack_init stack_top, stack_bottom, seed, func
|
||||||
/* Check if stack seeding is required */
|
/* Check if stack seeding is required */
|
||||||
mov r0, #\seed
|
mov r0, #\seed
|
||||||
cmp r0, #1
|
cmp r0, #1
|
||||||
bne call_func
|
bne call_func
|
||||||
|
|
|
@ -657,7 +657,7 @@ static int spi_ctrlr_setup(const struct spi_slave *slave)
|
||||||
|| ((bus == BLSP1_SPI) && (cs > 0))) {
|
|| ((bus == BLSP1_SPI) && (cs > 0))) {
|
||||||
printk(BIOS_ERR,
|
printk(BIOS_ERR,
|
||||||
"SPI error: unsupported bus %d (Supported busses 0, 1 and 2) "
|
"SPI error: unsupported bus %d (Supported busses 0, 1 and 2) "
|
||||||
"or chipselect\n", bus);
|
"or chipselect\n", bus);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,17 +63,17 @@ void gpio_tlmm_config_set(gpio_t gpio, unsigned func,
|
||||||
unsigned pull, unsigned drvstr,
|
unsigned pull, unsigned drvstr,
|
||||||
unsigned enable)
|
unsigned enable)
|
||||||
{
|
{
|
||||||
unsigned val = 0;
|
unsigned val = 0;
|
||||||
|
|
||||||
if (gpio_not_valid(gpio))
|
if (gpio_not_valid(gpio))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
val |= (pull & GPIO_CFG_PULL_MASK) << GPIO_CFG_PULL_SHIFT;
|
val |= (pull & GPIO_CFG_PULL_MASK) << GPIO_CFG_PULL_SHIFT;
|
||||||
val |= (func & GPIO_CFG_FUNC_MASK) << GPIO_CFG_FUNC_SHIFT;
|
val |= (func & GPIO_CFG_FUNC_MASK) << GPIO_CFG_FUNC_SHIFT;
|
||||||
val |= (drvstr & GPIO_CFG_DRV_MASK) << GPIO_CFG_DRV_SHIFT;
|
val |= (drvstr & GPIO_CFG_DRV_MASK) << GPIO_CFG_DRV_SHIFT;
|
||||||
val |= (enable & GPIO_CFG_OE_MASK) << GPIO_CFG_OE_SHIFT;
|
val |= (enable & GPIO_CFG_OE_MASK) << GPIO_CFG_OE_SHIFT;
|
||||||
|
|
||||||
write32(GPIO_CONFIG_ADDR(gpio), val);
|
write32(GPIO_CONFIG_ADDR(gpio), val);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
|
@ -93,8 +93,8 @@ void gpio_tlmm_config_get(gpio_t gpio, unsigned *func,
|
||||||
unsigned *pull, unsigned *drvstr,
|
unsigned *pull, unsigned *drvstr,
|
||||||
unsigned *enable)
|
unsigned *enable)
|
||||||
{
|
{
|
||||||
unsigned val;
|
unsigned val;
|
||||||
void *addr = GPIO_CONFIG_ADDR(gpio);
|
void *addr = GPIO_CONFIG_ADDR(gpio);
|
||||||
|
|
||||||
if (gpio_not_valid(gpio))
|
if (gpio_not_valid(gpio))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -41,7 +41,7 @@ void system_clock_init(void)
|
||||||
write32(&exynos_clock->ipll_lock, IPLL_LOCK_VAL);
|
write32(&exynos_clock->ipll_lock, IPLL_LOCK_VAL);
|
||||||
write32(&exynos_clock->spll_lock, SPLL_LOCK_VAL);
|
write32(&exynos_clock->spll_lock, SPLL_LOCK_VAL);
|
||||||
write32(&exynos_clock->kpll_lock, KPLL_LOCK_VAL);
|
write32(&exynos_clock->kpll_lock, KPLL_LOCK_VAL);
|
||||||
write32(&exynos_clock->rpll_lock, RPLL_LOCK_VAL);
|
write32(&exynos_clock->rpll_lock, RPLL_LOCK_VAL);
|
||||||
|
|
||||||
setbits_le32(&exynos_clock->clk_src_cpu, MUX_HPM_SEL_MASK);
|
setbits_le32(&exynos_clock->clk_src_cpu, MUX_HPM_SEL_MASK);
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ void system_clock_init(void)
|
||||||
while ((read32(&exynos_clock->spll_con0) & PLL_LOCKED) == 0)
|
while ((read32(&exynos_clock->spll_con0) & PLL_LOCKED) == 0)
|
||||||
;
|
;
|
||||||
|
|
||||||
/* We use RPLL as the source for FIMD video stream clock */
|
/* We use RPLL as the source for FIMD video stream clock */
|
||||||
write32(&exynos_clock->rpll_con1, RPLL_CON1_VAL);
|
write32(&exynos_clock->rpll_con1, RPLL_CON1_VAL);
|
||||||
write32(&exynos_clock->rpll_con2, RPLL_CON2_VAL);
|
write32(&exynos_clock->rpll_con2, RPLL_CON2_VAL);
|
||||||
/* computed by gabe from first principles; u-boot is probably
|
/* computed by gabe from first principles; u-boot is probably
|
||||||
|
|
|
@ -304,16 +304,16 @@ void exynos_fimd_window_off(unsigned int win_id)
|
||||||
|
|
||||||
static void exynos5_set_system_display(void)
|
static void exynos5_set_system_display(void)
|
||||||
{
|
{
|
||||||
unsigned int cfg = 0;
|
unsigned int cfg = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* system register path set
|
* system register path set
|
||||||
* 0: MIE/MDNIE
|
* 0: MIE/MDNIE
|
||||||
* 1: FIMD Bypass
|
* 1: FIMD Bypass
|
||||||
*/
|
*/
|
||||||
cfg = lreadl(&exynos_sysreg->disp1blk_cfg);
|
cfg = lreadl(&exynos_sysreg->disp1blk_cfg);
|
||||||
cfg |= (1 << 15);
|
cfg |= (1 << 15);
|
||||||
lwritel(cfg, &exynos_sysreg->disp1blk_cfg);
|
lwritel(cfg, &exynos_sysreg->disp1blk_cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void exynos_fimd_lcd_init(vidinfo_t *vid)
|
void exynos_fimd_lcd_init(vidinfo_t *vid)
|
||||||
|
|
|
@ -48,6 +48,6 @@ Method(TRAP, 1, Serialized)
|
||||||
|
|
||||||
Method(_PIC, 1)
|
Method(_PIC, 1)
|
||||||
{
|
{
|
||||||
// Remember the OS' IRQ routing choice.
|
// Remember the OS' IRQ routing choice.
|
||||||
Store(Arg0, PICM)
|
Store(Arg0, PICM)
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ Device (EHC1)
|
||||||
Store (Arg0, VISI)
|
Store (Arg0, VISI)
|
||||||
|
|
||||||
Return (PCKG)
|
Return (PCKG)
|
||||||
}
|
}
|
||||||
|
|
||||||
// How many are there?
|
// How many are there?
|
||||||
Device (PRT1) { Name (_ADR, 1) } // USB Port 0
|
Device (PRT1) { Name (_ADR, 1) } // USB Port 0
|
||||||
|
@ -112,7 +112,7 @@ Device (EHC2)
|
||||||
Store (Arg0, VISI)
|
Store (Arg0, VISI)
|
||||||
|
|
||||||
Return (PCKG)
|
Return (PCKG)
|
||||||
}
|
}
|
||||||
|
|
||||||
// How many are there?
|
// How many are there?
|
||||||
Device (PRT1) { Name (_ADR, 1) } // USB Port 0
|
Device (PRT1) { Name (_ADR, 1) } // USB Port 0
|
||||||
|
|
|
@ -125,7 +125,7 @@ void pch_enable_lpc(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
int early_pch_init(const void *gpio_map,
|
int early_pch_init(const void *gpio_map,
|
||||||
const struct rcba_config_instruction *rcba_config)
|
const struct rcba_config_instruction *rcba_config)
|
||||||
{
|
{
|
||||||
int wake_from_s3;
|
int wake_from_s3;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue