Skip to content

Instantly share code, notes, and snippets.

[75000.875114] [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid, remainder is 131
[75000.875186] [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid, remainder is 131
[75000.875205] stereo mode not supported
[75000.875208] stereo mode not supported
[75000.875211] stereo mode not supported
[75069.661454] [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid, remainder is 254
[75069.661485] [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid, remainder is 254
[75069.661490] stereo mode not supported
[75069.661491] stereo mode not supported
[75069.661492] stereo mode not supported
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
long nearest_freq(int freq, int mult, int hold, int *p_int, int *p_frac)
{
uint64_t num = 750000 ;
num *= mult << 13;
num /= freq * (hold + 1);
*p_int = num / (1 << 13);
//
// VBG_ADJ
// DO NOT WRITE THIS VALUE UNLESS IT IS FOR THE LiIon BATTERY CHARGING CODE!!!
// DAS - Changed based on defect 13606. Value may change for a few microseconds.
//
// ADJ_VAG
// Set to one so that we can explicitly adjust the Vag (audio ground
// voltage) by writing to the VAG_VAL field.
//
// VAG_VAL
_4k = 4 * 1024
packet_addr = 0x40000000
src_addr = packet_addr + _4k
dst_addr = src_addr + _4k
buf_size = 4
dcp_virt_addr = 0x20000000
---[[
-- init page table
sources
{
_0 = "firmware.____.0.elf";
_1 = "firmware.____.1.elf";
_2 = "firmware.____.1.elf";
_3 = "firmware.____.1.elf";
uboot = "uboot.elf";
}
section(0)
send_cmd: cmd=0x0 arg=0x0
SSP_TIMING = 0xFFFFF000
SSP_CTRL1 = 0x55516273
to be written by PIO:
SSP_CTRL0 = 0x4010000
SSP_CMD0 = 0x19FF00
SSP_CMD1 = 0x0
send_cmd: cmd=0x1 arg=0x40FF8000
SSP_TIMING = 0xFFFFF000
SSP_CTRL1 = 0x55516273
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2013 by Amaury Pouly
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c
index 76f2c6b..84d68a7 100644
--- a/firmware/target/arm/imx233/debug-imx233.c
+++ b/firmware/target/arm/imx233/debug-imx233.c
@@ -537,13 +537,13 @@ bool dbg_hw_info_pinctrl(void)
}
}
-#if IMX233_SUBTARGET >= 3700
struct
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.c b/firmware/target/arm/imx233/sdmmc-imx233.c
index b74c21c..1111ec8 100644
--- a/firmware/target/arm/imx233/sdmmc-imx233.c
+++ b/firmware/target/arm/imx233/sdmmc-imx233.c
@@ -353,8 +353,22 @@ static int init_sd_card(int drive)
return -6;
/* CMD6 */
+#if 0
if(!send_cmd(drive, SD_SWITCH_FUNC, 0x80fffff1, MCI_RESP, NULL))
@pamaury
pamaury / synopsys_otg.diff
Created July 12, 2013 11:55
Original code from TheSeven
commit 63276ed0a61f6d7a362f70a3760b9fd332950472
Author: Amaury Pouly <amaury.pouly@gmail.com>
Date: Thu Mar 28 19:07:25 2013 +0100
Add synopsysotg driver from TheSeven
Change-Id: Ib2a3f343d7769929ad3301e3e77e564bc8a47770
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 8ba45af..903bec6 100644