view configs/2092 @ 629:3231dd9b38c1

armio.c: make GPIOs 8 & 13 outputs driving 1 on all "classic" targets Calypso GPIOs 8 & 13 are pinmuxed with MCUEN1 & MCUEN2, respectively, and on powerup these pins are MCUEN, i.e., outputs driving 1. TI's code for C-Sample and earlier turns them into GPIOs configured as outputs also driving 1 - so far, so good - but TI's code for BOARD 41 (which covers D-Sample, Leonardo and all real world Calypso devices derived from the latter) switches them from MCUEN to GPIOs, but then leaves them as inputs. Given that the hardware powerup state of these two pins is outputs driving 1, every Calypso board design MUST be compatible with such driving; typically these GPIO signals will be either unused and unconnected or connected as outputs driving some peripheral. Turning these pins into GPIO inputs will result in floating inputs on every reasonably-wired board, thus I am convinced that this configuration is nothing but a bug on the part of whoever wrote this code at TI. This floating input bug had already been fixed earlier for GTA modem and FCDEV3B targets; the present change makes the fix unconditional for all "classic" targets. The newly affected targets are D-Sample, Leonardo, Tango and GTM900.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Jan 2020 05:38:26 +0000
parents 28ed4002131a
children
line wrap: on
line source

# This config reproduces the pdt_2092 configuration of TCS211 with two
# substantive changes:
#
# 1) ATP and MKS RiViera SWEs have been removed - they have always
# been dead code.
#
# 2) The battery management driver has been changed from TI's LCC
# ("low cost" unregulated chargers, not used on any FC-supported
# target devices) to our own FCHG.

GPRS=1
MMI=2
SRVC=1
export GPRS MMI SRVC

ATP_STATE=0
FCHG_STATE=1
LCC_STATE=0
MKS_STATE=0
PWR_STATE=0
R2D_STATE=1
export ATP_STATE FCHG_STATE LCC_STATE MKS_STATE PWR_STATE R2D_STATE

scripts/config-headers-new.sh

CONDAT=condat2
GPF=gpf2
CDGINC=cdg211/cdginc
CDGPRIM=cdg211/prim
ACI=aci2
export CONDAT GPF CDGINC CDGPRIM ACI

blob_lib_std ccddata

# ACI libs
build_lib aci classic
build_lib aciext classic
build_lib aci_dti_mng classic
build_lib atiext classic
build_lib comlib
build_lib config_gprs_fl
build_lib config_gprs_ir
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'

# UI layers
build_lib bmi
build_lib icn
build_lib mfw

# G23M protocol stack libs
blob_lib_std alr
blob_lib_std cc
blob_lib_std cci
blob_lib_std cci_ir
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
blob_lib_std dl
blob_lib_std dti
blob_lib_std fad
blob_lib_std gmm
blob_lib_std grlc
blob_lib_std grlc_ir
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
blob_lib_std grr
build_lib    l1_pei
blob_lib_std l2r
blob_lib_std llc
blob_lib_std mm
blob_lib_std ra
blob_lib_std rlp
blob_lib_std rr
blob_lib_std sim_b_lib
blob_lib_std sm
blob_lib_std sms
blob_lib_std sndcp
blob_lib_std ss
blob_lib_std t30
blob_lib_std uart_b_lib
blob_lib_std ppp
blob_lib_std ppp_ir
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'

# Condat drivers
build_lib gdi

# GPF
blob_lib_gpf ccd_na7_db
build_lib frame_na7_db_fl partial
build_lib frame_na7_db_ir partial
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
build_lib misc_na7_db_fl
build_lib misc_na7_db_ir
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
blob_lib_gpf osx_na7_db
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
build_lib tif_na7_db_fl
build_lib tif_na7_db_ir
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'

# core drivers
build_lib drivers_flash

# Layer 1
build_lib tpudrv
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
build_lib l1_ext
lib_link_magic '(BSS_LIBS (.l1s_global))'
build_lib l1_int
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
build_lib l1_custom_ext
build_lib l1_custom_int
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'

build_lib riviera_core_flash
build_lib riviera_cust_flash

# services
#build_lib atp
build_lib audio
build_lib audio_bgd
build_lib cst
build_lib dar
build_lib dar_gbl_var
lib_link_magic '(BSS_DAR_LIB (.bss))'
build_lib etm
build_lib lls
#build_lib mks

# app drivers
build_lib abb
build_lib buzzer
build_lib fchg
build_lib ffs
build_lib ffs_drv
build_lib ffs_pcm
build_lib kpd
build_lib power
build_lib r2d_drv_custom_flash
build_lib r2d_drv_flash
build_lib r2d_drv_int_ram
lib_link_magic '(CONST_LIBS (.text, .r2dlcd))'
build_lib rtc_drv
build_lib sim_drv
build_lib spi_drv
build_lib uart_drv

# system glue
build_lib main init
build_lib bootloader
lib_link_magic '(CONST_BOOT_LIB (.const, .text, .text:v$3) BSS_BOOT_LIB (.bss))'

# Nucleus and TI's compiler stuff
blob_lib_os nucleus_flash_nodbg
blob_lib_os nucleus_int_ram_nodbg
lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
blob_lib_os rts16le_flash
blob_lib_os rts16le_int_ram
lib_link_magic '(BSS_LIBS (.bss))'

str2ind_blobs_used=1