Skip to content

Instantly share code, notes, and snippets.

View Embedded-linux's full-sized avatar
💭
I may be slow to respond.

G Satish Kumar Embedded-linux

💭
I may be slow to respond.
  • Cavium Networks
  • Bangalore
View GitHub Profile
File Name: board/ti/am335x/u-boot.lds
-> This file talks about text, data sections of image file like
.text,
.data,
.rodata,
.bss,
.dynsym [Dynamic symbols] etc..
. = 0x00000000;
File Name: board/ti/am335x/mux.c
-> This file do pin muxing of uart0 to uart5, I2C0 & I2C1, MMC0 & MMC1, NAND muxing.
static struct module_pin_mux uart1_pin_mux[] = {
{OFFSET(uart1_rxd), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* UART1_RXD */
{OFFSET(uart1_txd), (MODE(0) | PULLUDEN)}, /* UART1_TXD */
{-1},
};
File Name: board/ti/am335x/board.c
TPS65217 is chip which supplies power to Am335x.
Adding fatures of TPS65217 IC
The TPS65217 is an optimized and highly integrated power management solution for the AM335x
processor. Features of the TPS65217 include:
• Power path management for Lithium-ion battery, USB, and AC inputs
• Linear Battery Charger
@Embedded-linux
Embedded-linux / Template:3
Created June 9, 2014 13:43
u-boot Porting
file name: arch/arm/cpu/armv7/am33xx/mem.c
void gpmc_init(void)
{
/* putting a blanket check on GPMC based on ZeBu for now */
gpmc_cfg = (struct gpmc *)GPMC_BASE;
#if defined(CONFIG_CMD_NAND)
const u32 *gpmc_config = NULL;
@Embedded-linux
Embedded-linux / Template2
Created June 9, 2014 13:06
u-boot porting [Beagle Bone]
File Name: arch/arm/cpu/armv7/am33xx/emif4.c
int dram_init(void)
{
/* dram_init must store complete ramsize in gd->ram_size */
gd->ram_size = get_ram_size(
(void *)CONFIG_SYS_SDRAM_BASE,
CONFIG_MAX_RAM_BANK_SIZE);
return 0;
@Embedded-linux
Embedded-linux / Template FIle
Created June 9, 2014 09:21
u-boot porting--Beagle bone
Template files presented before porting MMC/SD, Ethernet, NAND & NOR.
1.arch/arm/cpu/armv7/am33xx/board.c
2.arch/arm/cpu/armv7/am33xx/emif4.c
3.arch/arm/cpu/armv7/am33xx/mem.c
4.board/ti/am33xx/board.c
5.board/ti/am33xx/mux.c
6.board/ti/am33xx/uboot.lds
7.boards.cfg
8.include /configs/am335x_evm.h
@Embedded-linux
Embedded-linux / all-functions
Created January 3, 2014 07:00
kernel supported driver functions
The OS functions supported at kernel level are, of course, only those functions programmed inside it:
kmalloc(), kfree(): memory management
cli(), sti(): enable/disable interrupts
add_timer(), init_timer(), del_timer(): timing management
request_irq(), free_irq(): irq management
@Embedded-linux
Embedded-linux / rtc-ds1307.c
Last active January 1, 2016 07:39
I2C Platform Driver ,Bus Driver and Client Driver
Writing I2C Platform Driver and Code Flow:
File Name: arch/arm/mach-versatile/versatile-pb.c
Function Name: versatile_init(); -----------> arch/arm/mach-versatile/core.c -------------->
platform_device_register(&versatile_i2c_device);
Machine File is registering i2c device with function name platform_device_register()
@Embedded-linux
Embedded-linux / board.c
Created November 18, 2013 15:05
Uboot porting--template
Template Files : arch/arm/cpu/armv7/am33xx/board.c
arch/arm/cpu/armv7/am33xx/emif4.c
arch/arm/cpu/armv7/am33xx/mem.c
board/ti/am335x/board.c
board/ti/am335x/mux.c
board/ti/am335x/uboot.lds
boards.cfg
include/configs/am335x_evm.h
@Embedded-linux
Embedded-linux / board-am335xevm.c
Created November 18, 2013 14:20
Touch Screen Support
Files to change: arch/arm/board-am335xevm.c
-------------------------------------------------------------------------
+#include <linux/input/ti_tsc.h>
+#include <linux/mfd/ti_tscadc.h>
-------------------------------------------------------------------------
Header files incluing for structure ti_tsc variables and
register offset values of the device "TFC_S9700RTWV35TR_01B"
-------------------------------------------------------------------------