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
@Embedded-linux
Embedded-linux / board-am335xevm.c
Created November 18, 2013 13:42
Adding 7" LCD support
Files to chnage: arch/arm/mach-omap2/board-am335xevm.c
------------------------------------------------------------------------
+ bbcape7lcd_init();
------------------------------------------------------------------------
Initilization of bbcape7" lcd function declaration
@Embedded-linux
Embedded-linux / board-am335xevm.c
Last active December 28, 2015 16:08
Adding Touchscreen Support [Adding Backlight & 7'' LCD]
Enable Backlight Support:
File Names changed : arch/arm/mach-omap2/board-am335xevm.c
arch/arm/mach-omap2/mux33xx.c
File Name: arch/arm/mach-omap2/board-am335xevm.c
-------------------------------------------------------------------------------------------
+#include <linux/pwm/pwm.h>
@Embedded-linux
Embedded-linux / board-am335xevm.h
Created October 30, 2013 13:52
Adding ethernet support
For adding ethernet support platform supported PHY values are added
File Name : "arch/arm/mach-omap2/include/mach/board-am335xevm.h"
+
+/* Define Ethernet Phy Types */
+#define MII_MODE_ENABLE 0x0
+#define RMII_MODE_ENABLE 0x5
+#define RGMII_MODE_ENABLE 0xA
+#define MAC_MII_SEL 0x650
@Embedded-linux
Embedded-linux / board_am335x_evm.c
Last active December 26, 2015 23:29
Adding MMC support to beagle bone board
For Kerenl porting/u-boot porting there are 3 types of files added/changed
1.cpu spefic files [arm cortex-A8 processor]
2.Machine/architecture spefic files [AM335x ]
3.Board spefic files [Beagle bone]
Machine/Architecture spefic files are presented commonly in cpu and
board realted files for ex.arch/arm/cpu/armv7/am335x/*.c
[for armv7 processor --are cortex A8 and for am335x architecture spefic]
@Embedded-linux
Embedded-linux / board_am335x_evm.c
Last active December 26, 2015 21:19
Template file for am335xevm "arch/arm/mach-omap2/board_am335x_evm.c"
File Name: arch/arm/mach-omap2/board_am335x_evm.c
Complete analysis of template board file, this file gives minium requirements
for the board to up and it gives priority to user to add other I/O devices such
as LCD, MMC, NAND for providing kerenl support.
MACHINE_START(AM335XEVM, "am335xevm")
/* Maintainer: Texas Instruments */
.atag_offset = 0x100,
.map_io = am335x_evm_map_io,
.init_early = am33xx_init_early,
@Embedded-linux
Embedded-linux / I2C and EEPROM
Created September 13, 2013 17:36
I2C EEPROM for LPC2148
I2C with segment display
#include <LPC214x.h>
#include <stdio.h>
#define MAX 6
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Declarations >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
void I2C_ISR(void)__irq;
void Wait (unsigned int);
void I2C_Init (void);
@Embedded-linux
Embedded-linux / Sequential Search in C
Last active December 22, 2015 23:59
Sequential Search in C
This program is for sequential search
#include <stdio.h>
int main()
{
int key[20],i,s;
int key1;
printf("Enter the no. of elements:\n");
scanf("%d",&s);
@Embedded-linux
Embedded-linux / String Match in C
Last active December 22, 2015 23:59
String Match In C
Program is to find the "String matching pattern from source string".
#include <stdio.h>
#include <string.h>
int match(char[],char[]);
int main()
{
@Embedded-linux
Embedded-linux / Bubble sort in C
Created September 12, 2013 10:02
Bubble sort In C
#include <stdio.h>
int main()
{
int s,temp,i,j,a[20];
printf("Enter total no. of elements:");
scanf("%d",&s);
printf("Enter %d elements:",s);
for(i=0;i<s;i++)
@Embedded-linux
Embedded-linux / Queue in C
Last active December 22, 2015 21:39
Queue Program Using Array in C
This Program is for queue implementation using arrays in C.
#include <stdio.h>
#define N 6
int queue[N] = {0};
int rear = 0,front = 0;
void insert(void);
void delete(void);
void display(void);