├── api └── .depend ├── post └── .depend ├── test └── .depend ├── fs ├── cbfs │ └── .depend ├── cramfs │ └── .depend ├── ext4 │ ├── .depend │ └── crc16.h ├── fdos │ └── .depend ├── jffs2 │ └── .depend ├── ubifs │ ├── .depend │ └── crc16.h ├── yaffs2 │ ├── .depend │ └── yaffs_yaffs1.h ├── zfs │ └── .depend └── reiserfs │ └── .depend ├── lib ├── libfdt │ └── .depend ├── lzma │ ├── .depend │ ├── license.txt │ └── import_lzmasdk.sh ├── lzo │ └── .depend ├── errno.c ├── .depend.errno ├── .depend.ldiv ├── .depend.ctype ├── zlib │ ├── zlib.h │ └── inffast.h ├── .depend.div64 ├── .depend.crc16 ├── .depend.crc7 └── physmem.c ├── drivers ├── block │ └── .depend ├── dfu │ └── .depend ├── fpga │ └── .depend ├── gpio │ └── .depend ├── hwmon │ └── .depend ├── misc │ ├── .depend │ └── gpio_led.c ├── mmc │ └── .depend ├── mtd │ ├── ubi │ │ └── .depend │ ├── nand │ │ └── .depend │ └── onenand │ │ └── .depend ├── net │ ├── phy │ │ └── .depend │ ├── ftmac110.c │ ├── ftmac110.h │ ├── ftgmac100.c │ ├── ftgmac100.h │ └── npe │ │ └── include │ │ ├── IxOsalOsUtilitySymbols.h │ │ ├── IxOsalOsAssert.h │ │ └── IxOsalOs.h ├── pci │ └── .depend ├── power │ ├── .depend │ ├── pmic │ │ └── .depend │ ├── battery │ │ └── .depend │ └── fuel_gauge │ │ └── .depend ├── sound │ └── .depend ├── spi │ └── .depend ├── usb │ ├── eth │ │ └── .depend │ ├── phy │ │ └── .depend │ ├── gadget │ │ └── .depend │ ├── musb-new │ │ └── .depend │ ├── musb │ │ └── .depend │ └── ulpi │ │ └── .depend ├── video │ └── .depend ├── twserial │ └── .depend ├── watchdog │ └── .depend ├── bios_emulator │ └── .depend └── i2c │ └── 8210_uboot_nvp1918_clk_up.txt ├── examples ├── api │ ├── .depend │ └── .gitignore └── standalone │ └── .gitignore ├── arch ├── microblaze │ ├── lib │ │ └── time.c │ └── include │ │ └── asm │ │ ├── errno.h │ │ ├── unaligned.h │ │ └── gpio.h ├── blackfin │ ├── lib │ │ └── .gitignore │ ├── include │ │ └── asm │ │ │ ├── errno.h │ │ │ ├── signal.h │ │ │ ├── mach-bf527 │ │ │ ├── BF523_cdef.h │ │ │ ├── BF523_def.h │ │ │ ├── BF525_cdef.h │ │ │ ├── BF525_def.h │ │ │ ├── BF527_cdef.h │ │ │ ├── BF527_def.h │ │ │ ├── def_local.h │ │ │ └── mem_map.h │ │ │ ├── mach-bf533 │ │ │ ├── BF532_cdef.h │ │ │ ├── BF533_cdef.h │ │ │ ├── def_local.h │ │ │ ├── ports.h │ │ │ ├── BF532_def.h │ │ │ └── gpio.h │ │ │ ├── mach-bf537 │ │ │ ├── BF537_cdef.h │ │ │ ├── BF537_def.h │ │ │ ├── def_local.h │ │ │ └── ports.h │ │ │ ├── mach-bf538 │ │ │ ├── BF539_cdef.h │ │ │ ├── BF539_def.h │ │ │ ├── def_local.h │ │ │ └── ports.h │ │ │ ├── unaligned.h │ │ │ ├── mach-bf506 │ │ │ ├── def_local.h │ │ │ ├── BF506_def.h │ │ │ └── BF506_cdef.h │ │ │ ├── mach-bf518 │ │ │ └── def_local.h │ │ │ ├── mach-bf548 │ │ │ ├── def_local.h │ │ │ ├── BF542_def.h │ │ │ ├── BF544_def.h │ │ │ ├── BF547_def.h │ │ │ ├── BF548_def.h │ │ │ ├── BF549_def.h │ │ │ ├── mem_map.h │ │ │ ├── BF542_cdef.h │ │ │ ├── BF544_cdef.h │ │ │ ├── BF547_cdef.h │ │ │ ├── BF548_cdef.h │ │ │ └── BF549_cdef.h │ │ │ ├── sdh.h │ │ │ ├── blackfin.h │ │ │ ├── deferred.h │ │ │ ├── mach-common │ │ │ └── bits │ │ │ │ ├── trace.h │ │ │ │ ├── ports-a.h │ │ │ │ ├── ports-b.h │ │ │ │ ├── ports-c.h │ │ │ │ ├── ports-d.h │ │ │ │ ├── ports-e.h │ │ │ │ ├── ports-f.h │ │ │ │ ├── ports-g.h │ │ │ │ ├── ports-h.h │ │ │ │ ├── ports-i.h │ │ │ │ ├── ports-j.h │ │ │ │ └── watchdog.h │ │ │ ├── mach-bf561 │ │ │ └── def_local.h │ │ │ ├── mem_map.h │ │ │ └── net.h │ └── cpu │ │ ├── .gitignore │ │ ├── init.S │ │ ├── bootrom-asm-offsets.c.in │ │ ├── init.lds.S │ │ ├── watchdog.c │ │ └── os_log.c ├── arm │ ├── lib │ │ ├── .depend.div0 │ │ ├── .depend._divsi3 │ │ ├── .depend._modsi3 │ │ ├── .depend._ashldi3 │ │ ├── .depend._ashrdi3 │ │ ├── .depend._lshrdi3 │ │ ├── .depend._udivsi3 │ │ ├── .depend._umodsi3 │ │ └── eabi_compat.c │ ├── include │ │ └── asm │ │ │ ├── errno.h │ │ │ ├── arch-tnetv107x │ │ │ └── emif_defs.h │ │ │ ├── gpio.h │ │ │ ├── linkage.h │ │ │ ├── arch-rmobile │ │ │ ├── gpio.h │ │ │ ├── rmobile.h │ │ │ └── irqs.h │ │ │ ├── hardware.h │ │ │ ├── unaligned.h │ │ │ ├── imx-common │ │ │ └── mx5_video.h │ │ │ ├── ptrace.h │ │ │ └── arch-am33xx │ │ │ └── clock.h │ ├── cpu │ │ ├── arm926ejs │ │ │ ├── at91 │ │ │ │ └── config.mk │ │ │ ├── nomadik │ │ │ │ └── reset.S │ │ │ ├── mxs │ │ │ │ └── u-boot-imx28.bd │ │ │ └── davinci │ │ │ │ └── config.mk │ │ ├── arm1176 │ │ │ ├── bcm2835 │ │ │ │ ├── lowlevel_init.S │ │ │ │ └── init.c │ │ │ └── s3c64xx │ │ │ │ └── init.c │ │ └── armv7 │ │ │ ├── socfpga │ │ │ └── config.mk │ │ │ └── am33xx │ │ │ └── config.mk │ └── dts │ │ └── skeleton.dtsi ├── powerpc │ ├── cpu │ │ ├── mpc824x │ │ │ ├── .gitignore │ │ │ └── drivers │ │ │ │ └── epic.h │ │ ├── mpc85xx │ │ │ ├── resetvec.S │ │ │ └── mp.h │ │ ├── ppc4xx │ │ │ └── resetvec.S │ │ └── mpc512x │ │ │ └── asm-offsets.h │ └── include │ │ └── asm │ │ ├── errno.h │ │ ├── gpio.h │ │ ├── sigcontext.h │ │ ├── unaligned.h │ │ └── mc146818rtc.h ├── .gitignore ├── sh │ ├── include │ │ └── asm │ │ │ ├── errno.h │ │ │ ├── processor.h │ │ │ ├── mmc.h │ │ │ ├── cpu_sh7269.h │ │ │ └── unaligned.h │ └── lib │ │ ├── libgcc.h │ │ ├── ashldi3.c │ │ └── lshrdi3.c ├── x86 │ ├── include │ │ └── asm │ │ │ ├── errno.h │ │ │ ├── ioctl.h │ │ │ ├── unaligned.h │ │ │ └── video │ │ │ └── edid.h │ ├── dts │ │ ├── coreboot.dtsi │ │ └── skeleton.dtsi │ └── cpu │ │ └── timer.c ├── avr32 │ └── include │ │ └── asm │ │ ├── errno.h │ │ └── unaligned.h ├── m68k │ └── include │ │ └── asm │ │ ├── errno.h │ │ ├── unaligned.h │ │ └── processor.h ├── nios2 │ └── include │ │ └── asm │ │ ├── errno.h │ │ ├── unaligned.h │ │ ├── bitops │ │ └── ffs.h │ │ └── dma-mapping.h ├── openrisc │ └── include │ │ └── asm │ │ ├── errno.h │ │ ├── unaligned.h │ │ ├── byteorder.h │ │ ├── string.h │ │ ├── processor.h │ │ └── bitops │ │ ├── ffs.h │ │ └── fls.h ├── sandbox │ └── include │ │ └── asm │ │ ├── errno.h │ │ └── sections.h ├── sparc │ └── include │ │ └── asm │ │ ├── errno.h │ │ └── unaligned.h ├── nds32 │ └── include │ │ └── asm │ │ └── unaligned.h └── mips │ ├── include │ └── asm │ │ ├── inca-ip.h │ │ ├── u-boot-mips.h │ │ ├── reboot.h │ │ ├── isadep.h │ │ ├── cachectl.h │ │ └── unaligned.h │ └── lib │ ├── libgcc.h │ ├── ashldi3.c │ ├── lshrdi3.c │ └── ashrdi3.c ├── tools ├── kernel-doc │ └── .depend ├── patman │ └── .gitignore ├── updater │ ├── dummy.c │ └── junk ├── getline.h ├── logos │ ├── denx.bmp │ ├── esd.bmp │ ├── atmel.bmp │ ├── syteco.bmp │ ├── freescale.bmp │ ├── ronetix.bmp │ ├── intercontrol.bmp │ ├── linux_logo_ttcontrol.bmp │ └── linux_logo_ttcontrol_palfin.bmp ├── easylogo │ ├── linux_logo.tga │ ├── linux_blackfin.tga │ ├── runme.sh │ └── Makefile ├── .gitignore ├── scripts │ ├── send_cmd │ ├── send_image │ ├── dot.kermrc │ └── make-asm-offsets ├── bddb │ ├── config.php │ ├── execute.php │ └── badsubmit.php ├── binutils-version.sh ├── xway-swap-bytes.c └── env │ └── fw_env.config ├── board ├── avnet │ ├── fx12mm │ │ └── .gitignore │ └── v5fx30teval │ │ └── .gitignore ├── xilinx │ ├── ml507 │ │ └── .gitignore │ ├── ppc405-generic │ │ └── .gitignore │ ├── dts │ │ └── microblaze.dts │ ├── ppc440-generic │ │ └── .gitignore │ └── microblaze-generic │ │ └── dts │ │ └── microblaze.dts ├── afeb9260 │ └── config.mk ├── cm4008 │ └── config.mk ├── cm41xx │ └── config.mk ├── cobra5272 │ └── bdm │ │ ├── gdbinit.reset │ │ ├── reset │ │ └── load-cobra_uboot ├── atmel │ ├── at91sam9x5ek │ │ └── config.mk │ └── at91sam9m10g45ek │ │ └── config.mk ├── calao │ ├── sbc35_a9g20 │ │ └── config.mk │ └── tny_a9260 │ │ └── config.mk ├── sandpoint │ └── dinkdl ├── samsung │ ├── smdk6400 │ │ └── .gitignore │ └── smdkc100 │ │ └── config.mk ├── cogent │ ├── pci.c │ ├── pci.h │ ├── rtc.c │ ├── rtc.h │ ├── kbm.c │ ├── par.c │ ├── par.h │ ├── dipsw.h │ └── serial.h ├── woodburn │ └── imximage.cfg ├── cm-bf537u │ └── gpio_cfi_flash.c ├── sheldon │ └── simpc8313 │ │ └── config.mk ├── cm-bf527 │ └── gpio_cfi_flash.c ├── tcm-bf537 │ └── gpio_cfi_flash.c ├── davinci │ ├── dm6467evm │ │ └── config.mk │ ├── dm355leopard │ │ └── config.mk │ ├── da8xxevm │ │ └── hawkboard-ais-nand.cfg │ ├── dm355evm │ │ └── config.mk │ ├── dm365evm │ │ └── config.mk │ └── sffsdr │ │ └── config.mk ├── karo │ └── tx25 │ │ └── config.mk ├── freescale │ ├── mx31pdk │ │ └── config.mk │ ├── mpc837xemds │ │ └── pci.h │ ├── corenet_ds │ │ ├── rcw_p3041ds.cfg │ │ ├── rcw_p4080ds.cfg │ │ ├── rcw_p5020ds.cfg │ │ ├── p3041ds_ddr.c │ │ ├── p5020ds_ddr.c │ │ └── p5040ds_ddr.c │ ├── common │ │ ├── pq-mds-pib.h │ │ └── sgmii_riser.h │ ├── mpc5121ads │ │ └── README │ ├── mx25pdk │ │ └── lowlevel_init.S │ └── p1022ds │ │ └── law.c ├── keymile │ └── scripts │ │ ├── ramfs-arm.txt │ │ ├── develop-arm.txt │ │ ├── ramfs-ppc_82xx.txt │ │ ├── ramfs-ppc_8xx.txt │ │ ├── develop-ppc_82xx.txt │ │ ├── develop-ppc_8xx.txt │ │ ├── develop-common.txt │ │ └── ramfs-common.txt ├── bct-brettl2 │ ├── gpio_cfi_flash.c │ ├── smsc9303.h │ └── cled.c ├── evb64260 │ ├── i2c.h │ └── README.EVB-64260-750CX ├── cray │ └── L1 │ │ └── x2c.awk ├── pxa255_idp │ └── README ├── nvidia │ └── common │ │ └── common.mk ├── cm-bf537e │ └── gpio_cfi_flash.h ├── gdsys │ ├── 405ep │ │ └── 405ep.h │ └── 405ex │ │ └── 405ex.h ├── spc1920 │ └── pld.h ├── bf525-ucr2 │ └── bf525-ucr2.c ├── ns9750dev │ └── config.mk ├── timll │ └── devkit8000 │ │ └── README ├── chromebook-x86 │ └── dts │ │ ├── alex.dts │ │ └── link.dts ├── ibf-dsp561 │ └── ibf-dsp561.c ├── mcc200 │ └── mt48lc8m32b2-6-7.h ├── cm-bf533 │ └── cm-bf533.c ├── cm-bf561 │ └── cm-bf561.c ├── matrix_vision │ └── mvblm7 │ │ └── mvblm7.h ├── bf527-ad7160-eval │ └── bf527-ad7160-eval.c ├── bf506f-ezkit │ └── bf506f-ezkit.c ├── RPXClassic │ └── README ├── bf538f-ezkit │ └── bf538f-ezkit.c ├── altera │ └── nios2-generic │ │ └── text_base.S ├── toradex │ ├── colibri_t20-common │ │ └── colibri_t20-common.h │ └── dts │ │ └── tegra20-colibri_t20_iris.dts ├── a3000 │ └── README ├── br4 │ └── br4.c ├── pr1 │ └── pr1.c ├── ti │ ├── omap1510inn │ │ └── config.mk │ ├── omap730p2 │ │ └── config.mk │ ├── omap5912osk │ │ └── config.mk │ └── tnetv107xevm │ │ └── config.mk ├── ep8260 │ └── ep8260.h ├── intercontrol │ └── digsy_mtc │ │ └── Makefile ├── bf527-sdp │ └── bf527-sdp.c ├── genietv │ └── genietv.h ├── ait │ └── cam_enc_4xx │ │ └── config.mk ├── renesas │ ├── rsk7264 │ │ └── Makefile │ └── rsk7269 │ │ └── Makefile ├── LaCie │ └── common │ │ └── common.h ├── qemu-mips │ └── lowlevel_init.S ├── rpxsuper │ └── rpxsuper.h ├── gm │ ├── gm8126 │ │ └── flash_new.h │ └── gm8210 │ │ └── flash_new.h ├── blackvme │ └── blackvme.c ├── sbc8641d │ └── README └── fads │ └── lamp.c ├── nand_spl └── board │ └── karo │ └── tx25 │ └── config.mk ├── README.md ├── make_8126 ├── make_8129 ├── make_8136 ├── make_8139 ├── make_8210 ├── make_8287 ├── u-boot ├── u-boot.bin ├── snapshot.commit ├── spl └── .gitignore ├── include ├── .gitignore ├── video_font_data.h ├── spd_sdram.h ├── linux │ ├── config.h │ ├── ioctl.h │ ├── linux_string.h │ ├── poison.h │ ├── crc7.h │ ├── stddef.h │ ├── stringify.h │ ├── kbuild.h │ ├── mtd │ │ ├── concat.h │ │ └── nand_ecc.h │ └── compiler-gcc3.h ├── asm-offsets.h ├── errno.h ├── jffs2 │ ├── jffs2_1pass.h │ └── compr_rubin.h ├── mii_phy.h ├── mtd_node.h ├── arm925t.h ├── sata.h ├── generated │ ├── cc_options.mk │ └── generic-asm-offsets.h ├── vsc7385.h ├── cramfs │ └── cramfs_fs_sb.h ├── config_cmd_defaults.h ├── config_defaults.h ├── video_easylogo.h ├── asm-generic │ └── unaligned.h ├── keyboard.h ├── micrel.h ├── bcd.h ├── sha256.h ├── u-boot │ └── u-boot.lds.h ├── bedbug │ └── type.h ├── e500.h ├── dm9000.h ├── physmem.h ├── config_fallbacks.h ├── tegra-kbc.h └── lcd.h ├── common ├── sli10121 │ ├── HDMI_TxRegs.h │ └── HDMI_function.c ├── system_map.c └── cmd_df.c ├── doc ├── DocBook │ ├── .gitignore │ ├── docbook.css │ └── stylesheet.xsl ├── README.idma2intr ├── README.m28 ├── uImage.FIT │ ├── update_uboot.its │ └── kernel.its ├── README.VLAN ├── device-tree-bindings │ ├── pwm │ │ └── tegra20-pwm.txt │ ├── README │ ├── exynos │ │ └── isp-spi.txt │ └── i2c │ │ └── tegra20-i2c.txt ├── README.ns9750dev ├── README.commands.itest ├── README.mini2440 ├── README.SNTP └── README.ARM-memory-map └── net ├── cdp.h ├── link_local.h ├── ping.h ├── tftp.h └── arp.h /api/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /post/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/cbfs/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/cramfs/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/ext4/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/fdos/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/jffs2/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/ubifs/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/yaffs2/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/zfs/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/libfdt/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/lzma/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/lzo/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/block/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/dfu/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/fpga/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/gpio/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/hwmon/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/misc/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/mmc/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/mtd/ubi/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/net/phy/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/pci/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/power/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/sound/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/spi/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/usb/eth/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/usb/phy/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/video/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/api/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fs/reiserfs/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /arch/microblaze/lib/time.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/mtd/nand/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/mtd/onenand/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/power/pmic/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/twserial/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/usb/gadget/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/usb/musb-new/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/usb/musb/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/usb/ulpi/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/watchdog/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/kernel-doc/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/bios_emulator/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/power/battery/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drivers/power/fuel_gauge/.depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/errno.c: -------------------------------------------------------------------------------- 1 | int errno = 0; 2 | -------------------------------------------------------------------------------- /tools/patman/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /lib/.depend.errno: -------------------------------------------------------------------------------- 1 | errno.o: errno.c 2 | -------------------------------------------------------------------------------- /lib/.depend.ldiv: -------------------------------------------------------------------------------- 1 | ldiv.o: ldiv.c 2 | -------------------------------------------------------------------------------- /arch/blackfin/lib/.gitignore: -------------------------------------------------------------------------------- 1 | u-boot.lds 2 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend.div0: -------------------------------------------------------------------------------- 1 | div0.o: div0.c 2 | -------------------------------------------------------------------------------- /board/avnet/fx12mm/.gitignore: -------------------------------------------------------------------------------- 1 | config.tmp 2 | -------------------------------------------------------------------------------- /board/xilinx/ml507/.gitignore: -------------------------------------------------------------------------------- 1 | /config.tmp 2 | -------------------------------------------------------------------------------- /examples/api/.gitignore: -------------------------------------------------------------------------------- 1 | demo 2 | demo.bin 3 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend._divsi3: -------------------------------------------------------------------------------- 1 | _divsi3.o: _divsi3.S 2 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend._modsi3: -------------------------------------------------------------------------------- 1 | _modsi3.o: _modsi3.S 2 | -------------------------------------------------------------------------------- /board/avnet/v5fx30teval/.gitignore: -------------------------------------------------------------------------------- 1 | /config.tmp 2 | -------------------------------------------------------------------------------- /board/xilinx/ppc405-generic/.gitignore: -------------------------------------------------------------------------------- 1 | config.tmp 2 | -------------------------------------------------------------------------------- /nand_spl/board/karo/tx25/config.mk: -------------------------------------------------------------------------------- 1 | PAD_TO := 2048 2 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend._ashldi3: -------------------------------------------------------------------------------- 1 | _ashldi3.o: _ashldi3.S 2 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend._ashrdi3: -------------------------------------------------------------------------------- 1 | _ashrdi3.o: _ashrdi3.S 2 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend._lshrdi3: -------------------------------------------------------------------------------- 1 | _lshrdi3.o: _lshrdi3.S 2 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend._udivsi3: -------------------------------------------------------------------------------- 1 | _udivsi3.o: _udivsi3.S 2 | -------------------------------------------------------------------------------- /arch/arm/lib/.depend._umodsi3: -------------------------------------------------------------------------------- 1 | _umodsi3.o: _umodsi3.S 2 | -------------------------------------------------------------------------------- /arch/powerpc/cpu/mpc824x/.gitignore: -------------------------------------------------------------------------------- 1 | /bedbug_603e.c 2 | -------------------------------------------------------------------------------- /board/xilinx/dts/microblaze.dts: -------------------------------------------------------------------------------- 1 | /include/ BOARD_DTS 2 | -------------------------------------------------------------------------------- /board/xilinx/ppc440-generic/.gitignore: -------------------------------------------------------------------------------- 1 | /config.tmp 2 | -------------------------------------------------------------------------------- /arch/.gitignore: -------------------------------------------------------------------------------- 1 | /*/include/asm/arch 2 | /*/include/asm/proc 3 | -------------------------------------------------------------------------------- /arch/arm/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/sh/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/x86/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/x86/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /board/afeb9260/config.mk: -------------------------------------------------------------------------------- 1 | CONFIG_SYS_TEXT_BASE = 0x21f00000 2 | -------------------------------------------------------------------------------- /board/cm4008/config.mk: -------------------------------------------------------------------------------- 1 | CONFIG_SYS_TEXT_BASE = 0x00f00000 2 | -------------------------------------------------------------------------------- /board/cm41xx/config.mk: -------------------------------------------------------------------------------- 1 | CONFIG_SYS_TEXT_BASE = 0x00f00000 2 | -------------------------------------------------------------------------------- /tools/updater/dummy.c: -------------------------------------------------------------------------------- 1 | volatile int __dummy = 0xDEADBEEF; 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # u-boot-grainmedia 2 | U-Boot for GrainMedia SoC's 3 | -------------------------------------------------------------------------------- /arch/avr32/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/m68k/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/nios2/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/openrisc/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/powerpc/cpu/mpc824x/drivers/epic.h: -------------------------------------------------------------------------------- 1 | #include "epic/epic.h" 2 | -------------------------------------------------------------------------------- /arch/powerpc/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/sparc/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /board/cobra5272/bdm/gdbinit.reset: -------------------------------------------------------------------------------- 1 | target bdm /dev/bdmcf0 2 | q 3 | -------------------------------------------------------------------------------- /arch/avr32/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/signal.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/microblaze/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/nds32/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/x86/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /board/atmel/at91sam9x5ek/config.mk: -------------------------------------------------------------------------------- 1 | CONFIG_SYS_TEXT_BASE = 0x26f00000 2 | -------------------------------------------------------------------------------- /board/calao/sbc35_a9g20/config.mk: -------------------------------------------------------------------------------- 1 | CONFIG_SYS_TEXT_BASE = 0x23f00000 2 | -------------------------------------------------------------------------------- /board/calao/tny_a9260/config.mk: -------------------------------------------------------------------------------- 1 | CONFIG_SYS_TEXT_BASE = 0x23f00000 2 | -------------------------------------------------------------------------------- /board/sandpoint/dinkdl: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | tr -d "\r" <$1 >/dev/tts/1 3 | -------------------------------------------------------------------------------- /tools/getline.h: -------------------------------------------------------------------------------- 1 | int getline(char **lineptr, size_t *n, FILE *stream); 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/BF523_cdef.h: -------------------------------------------------------------------------------- 1 | #include "BF522_cdef.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/BF523_def.h: -------------------------------------------------------------------------------- 1 | #include "BF522_def.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/BF525_cdef.h: -------------------------------------------------------------------------------- 1 | #include "BF524_cdef.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/BF525_def.h: -------------------------------------------------------------------------------- 1 | #include "BF524_def.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/BF527_cdef.h: -------------------------------------------------------------------------------- 1 | #include "BF526_cdef.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/BF527_def.h: -------------------------------------------------------------------------------- 1 | #include "BF526_def.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf533/BF532_cdef.h: -------------------------------------------------------------------------------- 1 | #include "BF531_cdef.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf533/BF533_cdef.h: -------------------------------------------------------------------------------- 1 | #include "BF532_cdef.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf537/BF537_cdef.h: -------------------------------------------------------------------------------- 1 | #include "BF536_cdef.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf537/BF537_def.h: -------------------------------------------------------------------------------- 1 | #include "BF536_def.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf538/BF539_cdef.h: -------------------------------------------------------------------------------- 1 | #include "BF538_cdef.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf538/BF539_def.h: -------------------------------------------------------------------------------- 1 | #include "BF538_def.h" 2 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/microblaze/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/openrisc/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /board/atmel/at91sam9m10g45ek/config.mk: -------------------------------------------------------------------------------- 1 | CONFIG_SYS_TEXT_BASE = 0x73f00000 2 | -------------------------------------------------------------------------------- /board/cobra5272/bdm/reset: -------------------------------------------------------------------------------- 1 | m68k-bdm-elf-gdb -n -x bdm/gdbinit.reset 2 | 3 | -------------------------------------------------------------------------------- /make_8126: -------------------------------------------------------------------------------- 1 | make distclean 2 | make gm8126_config 3 | make dep 4 | make all 5 | -------------------------------------------------------------------------------- /make_8129: -------------------------------------------------------------------------------- 1 | make distclean 2 | make gm8129_config 3 | make dep 4 | make all 5 | -------------------------------------------------------------------------------- /make_8136: -------------------------------------------------------------------------------- 1 | make distclean 2 | make gm8136_config 3 | make dep 4 | make all 5 | -------------------------------------------------------------------------------- /make_8139: -------------------------------------------------------------------------------- 1 | make distclean 2 | make gm8139_config 3 | make dep 4 | make all 5 | -------------------------------------------------------------------------------- /make_8210: -------------------------------------------------------------------------------- 1 | make distclean 2 | make gm8210_config 3 | make dep 4 | make all 5 | -------------------------------------------------------------------------------- /make_8287: -------------------------------------------------------------------------------- 1 | make distclean 2 | make gm8287_config 3 | make dep 4 | make all 5 | -------------------------------------------------------------------------------- /u-boot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/u-boot -------------------------------------------------------------------------------- /arch/openrisc/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/powerpc/cpu/mpc85xx/resetvec.S: -------------------------------------------------------------------------------- 1 | .section .resetvec,"ax" 2 | b _start_e500 3 | -------------------------------------------------------------------------------- /u-boot.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/u-boot.bin -------------------------------------------------------------------------------- /board/samsung/smdk6400/.gitignore: -------------------------------------------------------------------------------- 1 | # 2 | # Generated files 3 | # 4 | 5 | /config.tmp 6 | -------------------------------------------------------------------------------- /arch/arm/include/asm/arch-tnetv107x/emif_defs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/arm/include/asm/gpio.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | -------------------------------------------------------------------------------- /arch/blackfin/cpu/.gitignore: -------------------------------------------------------------------------------- 1 | bootrom-asm-offsets.[chs] 2 | 3 | init.lds 4 | init.elf 5 | -------------------------------------------------------------------------------- /snapshot.commit: -------------------------------------------------------------------------------- 1 | 3a9d879f6f64585b819af728b53be0a05037fe0d Tue, 15 Jan 2013 14:47:42 -0700 2 | -------------------------------------------------------------------------------- /arch/powerpc/include/asm/gpio.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | -------------------------------------------------------------------------------- /board/cogent/pci.c: -------------------------------------------------------------------------------- 1 | /* pci not implemented yet */ 2 | 3 | int cma_pci_not_implemented = 1; 4 | -------------------------------------------------------------------------------- /board/cogent/pci.h: -------------------------------------------------------------------------------- 1 | /* pci not implemented yet */ 2 | 3 | extern int cma_pci_not_implemented; 4 | -------------------------------------------------------------------------------- /board/cogent/rtc.c: -------------------------------------------------------------------------------- 1 | /* rtc not implemented yet */ 2 | 3 | int cma_rtc_not_implemented = 1; 4 | -------------------------------------------------------------------------------- /board/cogent/rtc.h: -------------------------------------------------------------------------------- 1 | /* rtc not implemented yet */ 2 | 3 | extern int cma_rtc_not_implemented; 4 | -------------------------------------------------------------------------------- /lib/lzma/license.txt: -------------------------------------------------------------------------------- 1 | License 2 | 3 | LZMA SDK is placed in the public domain. 4 | -------------------------------------------------------------------------------- /board/woodburn/imximage.cfg: -------------------------------------------------------------------------------- 1 | BOOT_FROM sd 2 | 3 | # DDR2 init 4 | DATA 4 0xB8001010 0x00000304 5 | -------------------------------------------------------------------------------- /spl/.gitignore: -------------------------------------------------------------------------------- 1 | u-boot-spl 2 | u-boot-spl.bin 3 | u-boot-spl.lds 4 | u-boot-spl.map 5 | u-boot.lst 6 | -------------------------------------------------------------------------------- /tools/logos/denx.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/denx.bmp -------------------------------------------------------------------------------- /tools/logos/esd.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/esd.bmp -------------------------------------------------------------------------------- /board/cogent/kbm.c: -------------------------------------------------------------------------------- 1 | /* keyboard/mouse not implemented yet */ 2 | 3 | int cma_kbm_not_implemented = 1; 4 | -------------------------------------------------------------------------------- /board/cogent/par.c: -------------------------------------------------------------------------------- 1 | /* parallel not implemented yet */ 2 | 3 | int cma_parallel_not_implemented = 1; 4 | -------------------------------------------------------------------------------- /board/cogent/par.h: -------------------------------------------------------------------------------- 1 | /* parallel not implemented yet */ 2 | 3 | extern int cma_parallel_not_implemented; 4 | -------------------------------------------------------------------------------- /drivers/net/ftmac110.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/drivers/net/ftmac110.c -------------------------------------------------------------------------------- /drivers/net/ftmac110.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/drivers/net/ftmac110.h -------------------------------------------------------------------------------- /tools/logos/atmel.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/atmel.bmp -------------------------------------------------------------------------------- /tools/logos/syteco.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/syteco.bmp -------------------------------------------------------------------------------- /board/cm-bf537u/gpio_cfi_flash.c: -------------------------------------------------------------------------------- 1 | #define GPIO_PIN_1 GPIO_PH0 2 | #include "../cm-bf537e/gpio_cfi_flash.c" 3 | -------------------------------------------------------------------------------- /drivers/net/ftgmac100.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/drivers/net/ftgmac100.c -------------------------------------------------------------------------------- /drivers/net/ftgmac100.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/drivers/net/ftgmac100.h -------------------------------------------------------------------------------- /include/.gitignore: -------------------------------------------------------------------------------- 1 | /autoconf.mk* 2 | /asm 3 | /bmp_logo.h 4 | /bmp_logo_data.h 5 | /config.h 6 | /config.mk 7 | -------------------------------------------------------------------------------- /include/video_font_data.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/include/video_font_data.h -------------------------------------------------------------------------------- /tools/logos/freescale.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/freescale.bmp -------------------------------------------------------------------------------- /tools/logos/ronetix.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/ronetix.bmp -------------------------------------------------------------------------------- /board/cobra5272/bdm/load-cobra_uboot: -------------------------------------------------------------------------------- 1 | m68k-bdm-elf-gdb -n -x board/cobra5272/bdm/cobra5272_uboot.gdb u-boot 2 | 3 | -------------------------------------------------------------------------------- /arch/openrisc/include/asm/string.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_OPENRISC_STRING_H 2 | #define __ASM_OPENRISC_STRING_H 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /common/sli10121/HDMI_TxRegs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/common/sli10121/HDMI_TxRegs.h -------------------------------------------------------------------------------- /include/spd_sdram.h: -------------------------------------------------------------------------------- 1 | #ifndef _SPD_SDRAM_H_ 2 | #define _SPD_SDRAM_H_ 3 | 4 | long int spd_sdram(void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /lib/.depend.ctype: -------------------------------------------------------------------------------- 1 | ctype.o: ctype.c \ 2 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/ctype.h 3 | -------------------------------------------------------------------------------- /tools/easylogo/linux_logo.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/easylogo/linux_logo.tga -------------------------------------------------------------------------------- /tools/logos/intercontrol.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/intercontrol.bmp -------------------------------------------------------------------------------- /arch/mips/include/asm/inca-ip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/arch/mips/include/asm/inca-ip.h -------------------------------------------------------------------------------- /board/sheldon/simpc8313/config.mk: -------------------------------------------------------------------------------- 1 | ifdef CONFIG_NAND_LP 2 | PAD_TO = 0xFFF20000 3 | else 4 | PAD_TO = 0xFFF04000 5 | endif 6 | -------------------------------------------------------------------------------- /common/sli10121/HDMI_function.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/common/sli10121/HDMI_function.c -------------------------------------------------------------------------------- /arch/openrisc/include/asm/processor.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_OPENRISC_PROCESSOR_H 2 | #define __ASM_OPENRISC_PROCESSOR_H 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /tools/easylogo/linux_blackfin.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/easylogo/linux_blackfin.tga -------------------------------------------------------------------------------- /include/linux/config.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_CONFIG_H 2 | #define _LINUX_CONFIG_H 3 | 4 | /* #include */ 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /tools/easylogo/runme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | make 3 | ./easylogo linux_logo.tga u_boot_logo video_logo.h 4 | mv video_logo.h ../../include 5 | -------------------------------------------------------------------------------- /tools/logos/linux_logo_ttcontrol.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/linux_logo_ttcontrol.bmp -------------------------------------------------------------------------------- /arch/arm/cpu/arm926ejs/at91/config.mk: -------------------------------------------------------------------------------- 1 | PF_CPPFLAGS_TUNE := $(call cc-option,-mtune=arm926ejs,) 2 | PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_TUNE) 3 | -------------------------------------------------------------------------------- /board/cm-bf527/gpio_cfi_flash.c: -------------------------------------------------------------------------------- 1 | #define GPIO_PIN_1 GPIO_PH9 2 | #define GPIO_PIN_2 GPIO_PG11 3 | #include "../cm-bf537e/gpio_cfi_flash.c" 4 | -------------------------------------------------------------------------------- /board/cogent/dipsw.h: -------------------------------------------------------------------------------- 1 | extern unsigned char dipsw_raw(void); 2 | extern unsigned char dipsw_cooked(void); 3 | extern void dipsw_init(void); 4 | -------------------------------------------------------------------------------- /board/tcm-bf537/gpio_cfi_flash.c: -------------------------------------------------------------------------------- 1 | #define GPIO_PIN_1 GPIO_PF4 2 | #define GPIO_PIN_2 GPIO_PF5 3 | #include "../cm-bf537e/gpio_cfi_flash.c" 4 | -------------------------------------------------------------------------------- /board/davinci/dm6467evm/config.mk: -------------------------------------------------------------------------------- 1 | #Provide at least 16MB spacing between us and the Linux Kernel image 2 | CONFIG_SYS_TEXT_BASE = 0x81080000 3 | -------------------------------------------------------------------------------- /board/karo/tx25/config.mk: -------------------------------------------------------------------------------- 1 | ifdef CONFIG_NAND_SPL 2 | CONFIG_SYS_TEXT_BASE = 0x810c0000 3 | else 4 | CONFIG_SYS_TEXT_BASE = 0x81200000 5 | endif 6 | -------------------------------------------------------------------------------- /include/linux/ioctl.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_IOCTL_H 2 | #define _LINUX_IOCTL_H 3 | 4 | #include 5 | 6 | #endif /* _LINUX_IOCTL_H */ 7 | -------------------------------------------------------------------------------- /tools/logos/linux_logo_ttcontrol_palfin.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIPC/u-boot-grainmedia/master/tools/logos/linux_logo_ttcontrol_palfin.bmp -------------------------------------------------------------------------------- /board/freescale/mx31pdk/config.mk: -------------------------------------------------------------------------------- 1 | ifdef CONFIG_NAND_SPL 2 | CONFIG_SYS_TEXT_BASE = 0x87ec0000 3 | else 4 | CONFIG_SYS_TEXT_BASE = 0x87f00000 5 | endif 6 | -------------------------------------------------------------------------------- /board/xilinx/microblaze-generic/dts/microblaze.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | / { 3 | #address-cells = <1>; 4 | #size-cells = <1>; 5 | aliases { 6 | } ; 7 | } ; 8 | -------------------------------------------------------------------------------- /include/asm-offsets.h: -------------------------------------------------------------------------------- 1 | #ifndef DO_DEPS_ONLY 2 | 3 | #include 4 | /* #include */ 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf506/def_local.h: -------------------------------------------------------------------------------- 1 | #include "gpio.h" 2 | #include "portmux.h" 3 | #include "ports.h" 4 | 5 | #define CONFIG_BF50x 1 /* Linux glue */ 6 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf518/def_local.h: -------------------------------------------------------------------------------- 1 | #include "gpio.h" 2 | #include "portmux.h" 3 | #include "ports.h" 4 | 5 | #define CONFIG_BF51x 1 /* Linux glue */ 6 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf533/def_local.h: -------------------------------------------------------------------------------- 1 | #include "gpio.h" 2 | #include "portmux.h" 3 | #include "ports.h" 4 | 5 | #define BF533_FAMILY 1 /* Linux glue */ 6 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf537/def_local.h: -------------------------------------------------------------------------------- 1 | #include "gpio.h" 2 | #include "portmux.h" 3 | #include "ports.h" 4 | 5 | #define BF537_FAMILY 1 /* Linux glue */ 6 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf538/def_local.h: -------------------------------------------------------------------------------- 1 | #include "gpio.h" 2 | #include "portmux.h" 3 | #include "ports.h" 4 | 5 | #define BF538_FAMILY 1 /* Linux glue */ 6 | -------------------------------------------------------------------------------- /arch/arm/include/asm/linkage.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_LINKAGE_H 2 | #define __ASM_LINKAGE_H 3 | 4 | #define __ALIGN .align 0 5 | #define __ALIGN_STR ".align 0" 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /board/keymile/scripts/ramfs-arm.txt: -------------------------------------------------------------------------------- 1 | setup_debug_env=tftpboot 0x200000 scripts/ramfs-common.txt && env import -t 0x200000 ${filesize} && run configure 2 | tftpfdt=true 3 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsalOsUtilitySymbols.h: -------------------------------------------------------------------------------- 1 | #ifndef IxOsalOsUtilitySymbols_H 2 | #define IxOsalOsUtilitySymbols_H 3 | 4 | #endif /* IxOsalOsUtilitySymbols_H */ 5 | -------------------------------------------------------------------------------- /board/bct-brettl2/gpio_cfi_flash.c: -------------------------------------------------------------------------------- 1 | #define GPIO_PIN_1 GPIO_PG5 2 | #define GPIO_PIN_2 GPIO_PG6 3 | #define GPIO_PIN_3 GPIO_PG7 4 | #include "../cm-bf537e/gpio_cfi_flash.c" 5 | -------------------------------------------------------------------------------- /board/evb64260/i2c.h: -------------------------------------------------------------------------------- 1 | #ifndef __I2C_H__ 2 | #define __I2C_H__ 3 | 4 | /* function declarations */ 5 | uchar i2c_read(uchar, unsigned int, int, uchar*, int); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /board/keymile/scripts/develop-arm.txt: -------------------------------------------------------------------------------- 1 | setup_debug_env=tftpboot 0x200000 scripts/develop-common.txt && env import -t 0x200000 ${filesize} && run configure 2 | tftpfdt=true 3 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/def_local.h: -------------------------------------------------------------------------------- 1 | #include "gpio.h" 2 | #include "mem_map.h" 3 | #include "portmux.h" 4 | #include "ports.h" 5 | 6 | #define CONFIG_BF52x 1 /* Linux glue */ 7 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/def_local.h: -------------------------------------------------------------------------------- 1 | #include "gpio.h" 2 | #include "mem_map.h" 3 | #include "portmux.h" 4 | #include "ports.h" 5 | 6 | #define CONFIG_BF54x 1 /* Linux glue */ 7 | -------------------------------------------------------------------------------- /arch/nios2/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_NIOS2_UNALIGNED_H 2 | #define _ASM_NIOS2_UNALIGNED_H 3 | 4 | #include 5 | 6 | #endif /* _ASM_NIOS2_UNALIGNED_H */ 7 | -------------------------------------------------------------------------------- /board/cray/L1/x2c.awk: -------------------------------------------------------------------------------- 1 | #!/bin/awk 2 | BEGIN { print "unsigned char bootscript[] = { \n"} 3 | { for (i = 2; i <= NF ; i++ ) printf "0x"$i"," 4 | print "" 5 | } 6 | END { print "\n};\n" } 7 | -------------------------------------------------------------------------------- /include/linux/linux_string.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_LINUX_STRING_H_ 2 | #define _LINUX_LINUX_STRING_H_ 3 | 4 | extern char * skip_spaces(const char *); 5 | 6 | extern char *strim(char *); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /board/pxa255_idp/README: -------------------------------------------------------------------------------- 1 | Tested: 2 | 3 | - MMC 4 | - Ethernet 5 | - BL console (on serial port connector J5) 6 | - flash support 7 | 8 | Todo: 9 | 10 | - display support 11 | - PCMCIA support 12 | -------------------------------------------------------------------------------- /include/errno.h: -------------------------------------------------------------------------------- 1 | #ifndef _ERRNO_H 2 | 3 | #include 4 | 5 | extern int errno; 6 | 7 | #define __set_errno(val) do { errno = val; } while (0) 8 | 9 | #endif /* _ERRNO_H */ 10 | -------------------------------------------------------------------------------- /doc/DocBook/.gitignore: -------------------------------------------------------------------------------- 1 | */ 2 | *.xml 3 | *.ps 4 | *.pdf 5 | *.html 6 | *.9.gz 7 | *.9 8 | *.aux 9 | *.dvi 10 | *.log 11 | *.out 12 | *.png 13 | *.gif 14 | media-indices.tmpl 15 | media-entities.tmpl 16 | -------------------------------------------------------------------------------- /board/freescale/mpc837xemds/pci.h: -------------------------------------------------------------------------------- 1 | #ifndef __BOARD_MPC837XEMDS_PCI_H 2 | #define __BOARD_MPC837XEMDS_PCI_H 3 | 4 | extern void ft_pcie_fixup(void *blob, bd_t *bd); 5 | 6 | #endif /* __BOARD_MPC837XEMDS_PCI_H */ 7 | -------------------------------------------------------------------------------- /board/keymile/scripts/ramfs-ppc_82xx.txt: -------------------------------------------------------------------------------- 1 | setup_debug_env=tftpboot 0x200000 scripts/ramfs-common.txt && env import -t 0x200000 ${filesize} && run configure 2 | tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb 3 | -------------------------------------------------------------------------------- /board/keymile/scripts/ramfs-ppc_8xx.txt: -------------------------------------------------------------------------------- 1 | setup_debug_env=tftpboot 0x200000 scripts/ramfs-common.txt && env import -t 0x200000 ${filesize} && run configure 2 | tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb 3 | -------------------------------------------------------------------------------- /include/jffs2/jffs2_1pass.h: -------------------------------------------------------------------------------- 1 | u32 jffs2_1pass_ls(struct part_info *part,const char *fname); 2 | u32 jffs2_1pass_load(char *dest, struct part_info *part,const char *fname); 3 | u32 jffs2_1pass_info(struct part_info *part); 4 | -------------------------------------------------------------------------------- /board/keymile/scripts/develop-ppc_82xx.txt: -------------------------------------------------------------------------------- 1 | setup_debug_env=tftpboot 0x200000 scripts/develop-common.txt && env import -t 0x200000 ${filesize} && run configure 2 | tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb 3 | -------------------------------------------------------------------------------- /board/keymile/scripts/develop-ppc_8xx.txt: -------------------------------------------------------------------------------- 1 | setup_debug_env=tftpboot 0x200000 scripts/develop-common.txt && env import -t 0x200000 ${filesize} && run configure 2 | tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb 3 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf533/ports.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT__ 6 | #define __BFIN_PERIPHERAL_PORT__ 7 | 8 | #include "../mach-common/bits/ports-f.h" 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /include/mii_phy.h: -------------------------------------------------------------------------------- 1 | #ifndef _MII_PHY_H_ 2 | #define _MII_PHY_H_ 3 | 4 | void mii_discover_phy(void); 5 | unsigned short mii_phy_read(unsigned short reg); 6 | void mii_phy_write(unsigned short reg, unsigned short val); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /arch/blackfin/cpu/init.S: -------------------------------------------------------------------------------- 1 | #include 2 | ENTRY(_start) 3 | sp.l = LO(L1_SRAM_SCRATCH_END - 20); 4 | sp.h = HI(L1_SRAM_SCRATCH_END - 20); 5 | call _initcode; 6 | 1: 7 | emuexcpt; 8 | jump 1b; 9 | END(_start) 10 | -------------------------------------------------------------------------------- /common/system_map.c: -------------------------------------------------------------------------------- 1 | /* 2 | * The builtin symbol table for use with kallsyms 3 | * 4 | * Copyright (c) 2008-2009 Analog Devices Inc. 5 | * Licensed under the GPL-2 or later. 6 | */ 7 | 8 | const char const system_map[] = SYSTEM_MAP; 9 | -------------------------------------------------------------------------------- /board/davinci/dm355leopard/config.mk: -------------------------------------------------------------------------------- 1 | # Linux Kernel is expected to be at 8000'8000, entry 8000'8000 2 | # (mem base + reserved) 3 | # 4 | 5 | #Provide at least 16MB spacing between us and the Linux Kernel image 6 | CONFIG_SYS_TEXT_BASE = 0x81080000 7 | -------------------------------------------------------------------------------- /board/bct-brettl2/smsc9303.h: -------------------------------------------------------------------------------- 1 | /* 2 | * smsc9303.h - routines to initialize SMSC 9303 switch 3 | * 4 | * Copyright (c) 2010 BCT Electronic GmbH 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | int init_smsc9303i_mii(void); 10 | -------------------------------------------------------------------------------- /board/nvidia/common/common.mk: -------------------------------------------------------------------------------- 1 | # common options for all tegra boards 2 | COBJS-y += ../../nvidia/common/board.o 3 | COBJS-$(CONFIG_SPI_UART_SWITCH) += ../../nvidia/common/uart-spi-switch.o 4 | COBJS-$(CONFIG_TEGRA_CLOCK_SCALING) += ../../nvidia/common/emc.o 5 | -------------------------------------------------------------------------------- /examples/standalone/.gitignore: -------------------------------------------------------------------------------- 1 | /82559_eeprom 2 | /atmel_df_pow2 3 | /eepro100_eeprom 4 | /hello_world 5 | /interrupt 6 | /mem_to_mem_idma2intr 7 | /sched 8 | /smc91111_eeprom 9 | /smc911x_eeprom 10 | /test_burst 11 | /timer 12 | *.bin 13 | *.srec 14 | -------------------------------------------------------------------------------- /board/davinci/da8xxevm/hawkboard-ais-nand.cfg: -------------------------------------------------------------------------------- 1 | # PLL0CFG0 PLL0CFG1 2 | PLL0 0x00180001 0x00000205 3 | # PLL1CFG0 PLL1CFG1 DRPYC1R SDCR SDTIMR1 SDTIMR2 SDRCR CLK2XSRC 4 | DDR2 0x15010001 0x00000002 0x00000043 0x00134632 0x26492a09 0x7d13c722 0x00000249 0x00000000 5 | -------------------------------------------------------------------------------- /include/mtd_node.h: -------------------------------------------------------------------------------- 1 | #ifndef _NODE_INFO 2 | #define _NODE_INFO 3 | 4 | /* 5 | * Info we use to search for a flash node in DTB. 6 | */ 7 | struct node_info { 8 | const char *compat; /* compatible string */ 9 | int type; /* mtd flash type */ 10 | }; 11 | #endif 12 | -------------------------------------------------------------------------------- /tools/updater/junk: -------------------------------------------------------------------------------- 1 | ................................................................................................................................................................................................................................................................ -------------------------------------------------------------------------------- /tools/easylogo/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/config.mk 2 | 3 | all: $(obj)easylogo 4 | 5 | $(obj)easylogo: $(SRCTREE)/tools/easylogo/easylogo.c 6 | $(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $^ 7 | 8 | clean: 9 | rm -f $(obj)easylogo 10 | 11 | .PHONY: all clean 12 | -------------------------------------------------------------------------------- /drivers/i2c/8210_uboot_nvp1918_clk_up.txt: -------------------------------------------------------------------------------- 1 | mm 99000028 2 | 08007400 3 | . 4 | mm 9900005c 5 | 7f000000 6 | . 7 | mm 99000078 8 | 000c3549 9 | . 10 | mm 99000084 11 | 00150000 12 | . 13 | mm 990000b0 14 | 0fc3803c 15 | . 16 | mm 98e00000 17 | 00000003 18 | 00000003 19 | 00000003 20 | . 21 | -------------------------------------------------------------------------------- /board/cm-bf537e/gpio_cfi_flash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * gpio_cfi_flash.c - GPIO-assisted Flash Chip Support 3 | * 4 | * Copyright (c) 2009 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | void *gpio_cfi_flash_swizzle(void *vaddr); 10 | void gpio_cfi_flash_init(void); 11 | -------------------------------------------------------------------------------- /arch/x86/dts/coreboot.dtsi: -------------------------------------------------------------------------------- 1 | /include/ "skeleton.dtsi" 2 | 3 | / { 4 | aliases { 5 | console = "/serial"; 6 | }; 7 | 8 | serial { 9 | compatible = "ns16550"; 10 | reg-shift = <1>; 11 | io-mapped = <1>; 12 | multiplier = <1>; 13 | baudrate = <115200>; 14 | status = "disabled"; 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /include/linux/poison.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_POISON_H 2 | #define _LINUX_POISON_H 3 | 4 | /********** include/linux/list.h **********/ 5 | /* 6 | * used to verify that nobody uses non-initialized list entries. 7 | */ 8 | #define LIST_POISON1 ((void *) 0x0) 9 | #define LIST_POISON2 ((void *) 0x0) 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /arch/arm/cpu/arm926ejs/nomadik/reset.S: -------------------------------------------------------------------------------- 1 | #include 2 | /* 3 | * Processor reset for Nomadik 4 | */ 5 | 6 | .align 5 7 | .globl reset_cpu 8 | reset_cpu: 9 | ldr r0, =NOMADIK_SRC_BASE /* System and Reset Controller */ 10 | ldr r1, =0x1 11 | str r1, [r0, #0x18] 12 | 13 | _loop_forever: 14 | b _loop_forever 15 | -------------------------------------------------------------------------------- /arch/powerpc/cpu/ppc4xx/resetvec.S: -------------------------------------------------------------------------------- 1 | /* Copyright MontaVista Software Incorporated, 2000 */ 2 | #include 3 | .section .resetvec,"ax" 4 | #if defined(CONFIG_440) 5 | b _start_440 6 | #else 7 | #if defined(CONFIG_BOOT_PCI) && defined(CONFIG_MIP405) 8 | b _start_pci 9 | #else 10 | b _start 11 | #endif 12 | #endif 13 | -------------------------------------------------------------------------------- /board/gdsys/405ep/405ep.h: -------------------------------------------------------------------------------- 1 | #ifndef __405EP_H_ 2 | #define __405EP_H_ 3 | 4 | /* functions to be provided by board implementation */ 5 | void gd405ep_init(void); 6 | void gd405ep_set_fpga_reset(unsigned state); 7 | void gd405ep_setup_hw(void); 8 | int gd405ep_get_fpga_done(unsigned fpga); 9 | 10 | #endif /* __405EP_H_ */ 11 | -------------------------------------------------------------------------------- /board/gdsys/405ex/405ex.h: -------------------------------------------------------------------------------- 1 | #ifndef __405EX_H_ 2 | #define __405EX_H_ 3 | 4 | /* functions to be provided by board implementation */ 5 | void gd405ex_init(void); 6 | void gd405ex_set_fpga_reset(unsigned state); 7 | void gd405ex_setup_hw(void); 8 | int gd405ex_get_fpga_done(unsigned fpga); 9 | 10 | #endif /* __405EX_H_ */ 11 | -------------------------------------------------------------------------------- /board/spc1920/pld.h: -------------------------------------------------------------------------------- 1 | #ifndef __PLD_H__ 2 | #define __PLD_H__ 3 | 4 | typedef struct spc1920_pld { 5 | uchar com1_en; 6 | uchar dsp_reset; 7 | uchar dsp_hpi_on; 8 | uchar superv_mode; 9 | uchar codec_dsp_power_en; 10 | uchar clk3_select; 11 | uchar clk4_select; 12 | } spc1920_pld_t; 13 | 14 | #endif /* __PLD_H__ */ 15 | -------------------------------------------------------------------------------- /board/freescale/corenet_ds/rcw_p3041ds.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Default RCW for P3041DS. 3 | # 4 | 5 | #PBL preamble and RCW header 6 | aa55aa55 010e0100 7 | #64 bytes RCW data 8 | 12600000 00000000 241C0000 00000000 9 | D8984A01 03002000 58000000 41000000 10 | 00000000 00000000 00000000 10070000 11 | 00000000 00000000 00000000 00000000 12 | -------------------------------------------------------------------------------- /board/freescale/corenet_ds/rcw_p4080ds.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Default RCW for P4080DS. 3 | # 4 | 5 | #PBL preamble and RCW header 6 | aa55aa55 010e0100 7 | #64 bytes RCW data 8 | 105a0000 00000000 1e1e181e 0000cccc 9 | 58400000 3c3c2000 58000000 e1000000 10 | 00000000 00000000 00000000 008b6000 11 | 00000000 00000000 00000000 00000000 12 | -------------------------------------------------------------------------------- /board/freescale/corenet_ds/rcw_p5020ds.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Default RCW for P5020DS. 3 | # 4 | 5 | #PBL preamble and RCW header 6 | aa55aa55 010e0100 7 | #64 bytes RCW data 8 | 0C540000 00000000 1E120000 00000000 9 | D8984A01 03002000 58000000 41000000 10 | 00000000 00000000 00000000 10070000 11 | 00000000 00000000 00000000 00000000 12 | -------------------------------------------------------------------------------- /include/arm925t.h: -------------------------------------------------------------------------------- 1 | /************************************************ 2 | * NAME : arm925t.h 3 | * Version : 23 June 2003 * 4 | ************************************************/ 5 | 6 | #ifndef __ARM925T_H__ 7 | #define __ARM925T_H__ 8 | 9 | void archflashwp(void *archdata, int wp); 10 | 11 | #endif /*__ARM925T_H__*/ 12 | -------------------------------------------------------------------------------- /tools/.gitignore: -------------------------------------------------------------------------------- 1 | /bmp_logo 2 | /envcrc 3 | /gen_eth_addr 4 | /img2srec 5 | /kwboot 6 | /mkenvimage 7 | /mkimage 8 | /mpc86x_clk 9 | /mxsboot 10 | /ncb 11 | /ncp 12 | /ubsha1 13 | /xway-swap-bytes 14 | /*.exe 15 | /easylogo/easylogo 16 | /env/crc32.c 17 | /env/fw_printenv 18 | /gdb/gdbcont 19 | /gdb/gdbsend 20 | /kernel-doc/docproc 21 | -------------------------------------------------------------------------------- /arch/powerpc/include/asm/sigcontext.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_PPC_SIGCONTEXT_H 2 | #define _ASM_PPC_SIGCONTEXT_H 3 | 4 | #include 5 | 6 | 7 | struct sigcontext_struct { 8 | unsigned long _unused[4]; 9 | int signal; 10 | unsigned long handler; 11 | unsigned long oldmask; 12 | struct pt_regs *regs; 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /arch/sparc/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_SPARC_UNALIGNED_H 2 | #define _ASM_SPARC_UNALIGNED_H 3 | 4 | /* 5 | * The SPARC can not do unaligned accesses, it must be split into multiple 6 | * byte accesses. The SPARC is in big endian mode. 7 | */ 8 | #include 9 | 10 | #endif /* _ASM_SPARC_UNALIGNED_H */ 11 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf506/BF506_def.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-def-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_DEF_ADSP_BF506_proc__ 7 | #define __BFIN_DEF_ADSP_BF506_proc__ 8 | 9 | #include "BF504_def.h" 10 | 11 | #endif /* __BFIN_DEF_ADSP_BF506_proc__ */ 12 | -------------------------------------------------------------------------------- /board/freescale/common/pq-mds-pib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 Freescale Semiconductor, Inc. 3 | * 4 | * This program is free software; you can redistribute it and/or modify it 5 | * under the terms of the GNU General Public License version 2 as 6 | * published by the Free Software Foundation; 7 | */ 8 | 9 | extern int pib_init(void); 10 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf506/BF506_cdef.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-cdef-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_CDEF_ADSP_BF506_proc__ 7 | #define __BFIN_CDEF_ADSP_BF506_proc__ 8 | 9 | #include "BF504_cdef.h" 10 | 11 | #endif /* __BFIN_CDEF_ADSP_BF506_proc__ */ 12 | -------------------------------------------------------------------------------- /include/linux/crc7.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_CRC7_H 2 | #define _LINUX_CRC7_H 3 | #include 4 | 5 | extern const u8 crc7_syndrome_table[256]; 6 | 7 | static inline u8 crc7_byte(u8 crc, u8 data) 8 | { 9 | return crc7_syndrome_table[(crc << 1) ^ data]; 10 | } 11 | 12 | extern u8 crc7(u8 crc, const u8 *buffer, size_t len); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd: -------------------------------------------------------------------------------- 1 | sources { 2 | u_boot_spl="spl/u-boot-spl.bin"; 3 | u_boot="u-boot.bin"; 4 | } 5 | 6 | section (0) { 7 | load u_boot_spl > 0x0000; 8 | load ivt (entry = 0x0014) > 0x8000; 9 | hab call 0x8000; 10 | 11 | load u_boot > 0x40000100; 12 | load ivt (entry = 0x40000100) > 0x8000; 13 | hab call 0x8000; 14 | } 15 | -------------------------------------------------------------------------------- /arch/arm/include/asm/arch-rmobile/gpio.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_ARCH_GPIO_H 2 | #define __ASM_ARCH_GPIO_H 3 | 4 | #if defined(CONFIG_SH73A0) 5 | #include "sh73a0-gpio.h" 6 | void sh73a0_pinmux_init(void); 7 | #elif defined(CONFIG_R8A7740) 8 | #include "r8a7740-gpio.h" 9 | void r8a7740_pinmux_init(void); 10 | #endif 11 | 12 | #endif /* __ASM_ARCH_GPIO_H */ 13 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/sdh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * sdh.h, export bfin_mmc_init 3 | * 4 | * Copyright (c) 2009 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #ifndef __ASM_SDH_H__ 10 | #define __ASM_SDH_H__ 11 | 12 | #include 13 | #include 14 | 15 | int bfin_mmc_init(bd_t *bis); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /board/freescale/mpc5121ads/README: -------------------------------------------------------------------------------- 1 | To configure for the current (Rev 3.x) ADS5121 2 | make ads5121_config 3 | This will automatically include PCI, the Real Time CLock, add backup flash 4 | ability and set the correct frequency and memory configuration. 5 | 6 | To configure for the older Rev 2 ADS5121 type (this will not have PCI) 7 | make ads5121_rev2_config 8 | -------------------------------------------------------------------------------- /doc/DocBook/docbook.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: sans-serif; 3 | } 4 | 5 | .programlisting { 6 | font-family: monospace; 7 | font-size: 1em; 8 | display: block; 9 | padding: 10px; 10 | border: 1px solid #aaa; 11 | color: #000; 12 | background-color: #eee; 13 | overflow: auto; 14 | margin: 1em 0em; 15 | border-radius: 6px; 16 | } 17 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf538/ports.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT__ 6 | #define __BFIN_PERIPHERAL_PORT__ 7 | 8 | #include "../mach-common/bits/ports-c.h" 9 | #include "../mach-common/bits/ports-d.h" 10 | #include "../mach-common/bits/ports-e.h" 11 | #include "../mach-common/bits/ports-f.h" 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /arch/sh/include/asm/processor.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_SH_PROCESSOR_H_ 2 | #define _ASM_SH_PROCESSOR_H_ 3 | #if defined(CONFIG_SH2) || \ 4 | defined (CONFIG_SH2A) 5 | # include 6 | #elif defined (CONFIG_SH3) 7 | # include 8 | #elif defined (CONFIG_SH4) || \ 9 | defined (CONFIG_SH4A) 10 | # include 11 | #endif 12 | #endif 13 | -------------------------------------------------------------------------------- /arch/arm/dts/skeleton.dtsi: -------------------------------------------------------------------------------- 1 | /* 2 | * Skeleton device tree; the bare minimum needed to boot; just include and 3 | * add a compatible value. The bootloader will typically populate the memory 4 | * node. 5 | */ 6 | 7 | / { 8 | #address-cells = <1>; 9 | #size-cells = <1>; 10 | chosen { }; 11 | aliases { }; 12 | memory { device_type = "memory"; reg = <0 0>; }; 13 | }; 14 | -------------------------------------------------------------------------------- /arch/x86/dts/skeleton.dtsi: -------------------------------------------------------------------------------- 1 | /* 2 | * Skeleton device tree; the bare minimum needed to boot; just include and 3 | * add a compatible value. The bootloader will typically populate the memory 4 | * node. 5 | */ 6 | 7 | / { 8 | #address-cells = <1>; 9 | #size-cells = <1>; 10 | chosen { }; 11 | aliases { }; 12 | memory { device_type = "memory"; reg = <0 0>; }; 13 | }; 14 | -------------------------------------------------------------------------------- /arch/x86/include/asm/video/edid.h: -------------------------------------------------------------------------------- 1 | #ifndef __linux_video_edid_h__ 2 | #define __linux_video_edid_h__ 3 | 4 | #if !defined(__KERNEL__) || defined(CONFIG_X86) 5 | 6 | struct edid_info { 7 | unsigned char dummy[128]; 8 | }; 9 | 10 | #ifdef __KERNEL__ 11 | extern struct edid_info edid_info; 12 | #endif /* __KERNEL__ */ 13 | 14 | #endif 15 | 16 | #endif /* __linux_video_edid_h__ */ 17 | -------------------------------------------------------------------------------- /board/keymile/scripts/develop-common.txt: -------------------------------------------------------------------------------- 1 | altbootcmd=run ${subbootcmds} 2 | bootcmd=run ${subbootcmds} 3 | configure=km_setboardid && saveenv && reset 4 | subbootcmds=tftpfdt tftpkernel nfsargs add_default boot 5 | nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${toolchain}/${arch} 6 | tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage 7 | toolchain=/opt/eldk 8 | rootfssize=0 9 | -------------------------------------------------------------------------------- /board/davinci/dm355evm/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Spectrum Digital DM355 EVM board 3 | # dm355evm board has 1 bank of 128 MB DDR RAM 4 | # Physical Address: 8000'0000 to 8800'0000 5 | # 6 | # Linux Kernel is expected to be at 8000'8000, entry 8000'8000 7 | # (mem base + reserved) 8 | # 9 | 10 | #Provide at least 16MB spacing between us and the Linux Kernel image 11 | CONFIG_SYS_TEXT_BASE = 0x81080000 12 | -------------------------------------------------------------------------------- /board/davinci/dm365evm/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Spectrum Digital DM365 EVM board 3 | # DM365 EVM board has 1 bank of 128 MB DDR RAM 4 | # Physical Address: 8000'0000 to 8800'0000 5 | # 6 | # Linux Kernel is expected to be at 8000'8000, entry 8000'8000 7 | # (mem base + reserved) 8 | # 9 | 10 | #Provide at least 16MB spacing between us and the Linux Kernel image 11 | CONFIG_SYS_TEXT_BASE = 0x81080000 12 | -------------------------------------------------------------------------------- /arch/arm/include/asm/arch-rmobile/rmobile.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_ARCH_RMOBILE_H 2 | #define __ASM_ARCH_RMOBILE_H 3 | 4 | #if defined(CONFIG_RMOBILE) 5 | #if defined(CONFIG_SH73A0) 6 | #include 7 | #elif defined(CONFIG_R8A7740) 8 | #include 9 | #else 10 | #error "SOC Name not defined" 11 | #endif 12 | #endif /* CONFIG_RMOBILE */ 13 | 14 | #endif /* __ASM_ARCH_RMOBILE_H */ 15 | -------------------------------------------------------------------------------- /arch/mips/include/asm/u-boot-mips.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is released under the terms of GPL v2 and any later version. 3 | * See the file COPYING in the root directory of the source tree for details. 4 | * 5 | * Copyright (C) 2003 Wolfgang Denk, DENX Software Engineering, wd@denx.de 6 | */ 7 | 8 | extern ulong uboot_end_data; 9 | extern ulong uboot_end; 10 | 11 | extern int incaip_set_cpuclk(void); 12 | -------------------------------------------------------------------------------- /include/linux/stddef.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_STDDEF_H 2 | #define _LINUX_STDDEF_H 3 | 4 | #undef NULL 5 | #if defined(__cplusplus) 6 | #define NULL 0 7 | #else 8 | #define NULL ((void *)0) 9 | #endif 10 | 11 | #ifndef _SIZE_T 12 | #include 13 | #endif 14 | 15 | #ifndef __CHECKER__ 16 | #undef offsetof 17 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /include/linux/stringify.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_STRINGIFY_H 2 | #define __LINUX_STRINGIFY_H 3 | 4 | /* Indirect stringification. Doing two levels allows the parameter to be a 5 | * macro itself. For example, compile with -DFOO=bar, __stringify(FOO) 6 | * converts to "bar". 7 | */ 8 | 9 | #define __stringify_1(x...) #x 10 | #define __stringify(x...) __stringify_1(x) 11 | 12 | #endif /* !__LINUX_STRINGIFY_H */ 13 | -------------------------------------------------------------------------------- /board/bf525-ucr2/bf525-ucr2.c: -------------------------------------------------------------------------------- 1 | /* U-boot - bf525-ucr2.c board specific routines 2 | * 3 | * (C) Copyright 2000-2004 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | 11 | int checkboard(void) 12 | { 13 | printf("Board: bf525-ucr2\n"); 14 | printf("Support: http://www.ucrobotics.com/\n"); 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /arch/m68k/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_M68K_UNALIGNED_H 2 | #define _ASM_M68K_UNALIGNED_H 3 | 4 | #ifdef CONFIG_COLDFIRE 5 | #include 6 | #else 7 | #include 8 | #endif 9 | 10 | #include 11 | 12 | #define get_unaligned __get_unaligned_be 13 | #define put_unaligned __put_unaligned_be 14 | 15 | #endif /* _ASM_M68K_UNALIGNED_H */ 16 | -------------------------------------------------------------------------------- /include/sata.h: -------------------------------------------------------------------------------- 1 | #ifndef __SATA_H__ 2 | #define __SATA_H__ 3 | #include 4 | 5 | int init_sata(int dev); 6 | int scan_sata(int dev); 7 | ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer); 8 | ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer); 9 | 10 | int sata_initialize(void); 11 | int __sata_initialize(void); 12 | 13 | extern block_dev_desc_t sata_dev_desc[]; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /tools/scripts/send_cmd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/kermit + 2 | set line /dev/ttyS0 3 | set speed 115200 4 | set serial 8N1 5 | set carrier-watch off 6 | set handshake none 7 | set flow-control none 8 | robust 9 | set file type bin 10 | set file name lit 11 | set rec pack 1000 12 | set send pack 1000 13 | set window 5 14 | set prompt Kermit> 15 | 16 | #out \13 17 | #in 10 => 18 | out \%1 \%2 \%3 \%4 \%5 \%6 \%7\13 19 | in 10 => 20 | quit 21 | exit 0 22 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/blackfin.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by toolchain/trunk/proc-defs/sh/create-arch-headers.sh 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __MACH_GLOB_BLACKFIN__ 7 | #define __MACH_GLOB_BLACKFIN__ 8 | 9 | #include "blackfin_def.h" 10 | #ifndef __ASSEMBLY__ 11 | #include "blackfin_cdef.h" 12 | #endif 13 | #include "blackfin_local.h" 14 | 15 | #endif /* __MACH_GLOB_BLACKFIN__ */ 16 | -------------------------------------------------------------------------------- /board/evb64260/README.EVB-64260-750CX: -------------------------------------------------------------------------------- 1 | The EVB-64260-750CX is quite similar to the EVB-64260-BP already 2 | supported except the following differences: 3 | * It has an IBM-750CXe soldiered on board instead of the slot-1 in the 4 | BP. 5 | * It has a single PCI male connector instead of the 4 PCI female 6 | connectors on the BP. It also gets power trough the PCI connector. 7 | * It has only a single DIMM slot instead of the 2 slots in the BP. 8 | -------------------------------------------------------------------------------- /include/generated/cc_options.mk: -------------------------------------------------------------------------------- 1 | CC_OPTIONS += -marm 2 | CC_OPTIONS += -mno-thumb-interwork 3 | CC_OPTIONS += -mabi=apcs-gnu 4 | CC_OPTIONS += -mabi=aapcs-linux 5 | CC_OPTIONS += -fno-stack-protector 6 | CC_OPTIONS += -Wno-format-nonliteral 7 | CC_OPTIONS += -Wno-format-security 8 | CC_OPTIONS += -fno-toplevel-reorder 9 | CC_OPTIONS += -Wno-unused-variable 10 | CC_OPTIONS += -Wno-unused-but-set-variable 11 | CC_OPTIONS += -Wno-unused-label 12 | -------------------------------------------------------------------------------- /lib/zlib/zlib.h: -------------------------------------------------------------------------------- 1 | /* Glue between u-boot and upstream zlib */ 2 | #ifndef __GLUE_ZLIB_H__ 3 | #define __GLUE_ZLIB_H__ 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "u-boot/zlib.h" 10 | 11 | /* avoid conflicts */ 12 | #undef OFF 13 | #undef ASMINF 14 | #undef POSTINC 15 | #undef NO_GZIP 16 | #define GUNZIP 17 | #undef STDC 18 | #undef NO_ERRNO_H 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /include/vsc7385.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Header file for vsc7385.c 3 | * 4 | * Author: Timur Tabi 5 | * 6 | * Copyright 2008 Freescale Semiconductor, Inc. This file is licensed 7 | * under the terms of the GNU General Public License version 2. This 8 | * program is licensed "as is" without any warranty of any kind, whether 9 | * express or implied. 10 | */ 11 | 12 | int vsc7385_upload_firmware(void *firmware, unsigned int size); 13 | -------------------------------------------------------------------------------- /board/freescale/corenet_ds/p3041ds_ddr.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2010 Freescale Semiconductor, Inc. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * Version 2 as published by the Free Software Foundation. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | fixed_ddr_parm_t fixed_ddr_parm_0[] = { 13 | {0, 0, NULL} 14 | }; 15 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsalOsAssert.h: -------------------------------------------------------------------------------- 1 | #ifndef IxOsalOsAssert_H 2 | #define IxOsalOsAssert_H 3 | 4 | #define IX_OSAL_OS_ASSERT(c) if(!(c)) \ 5 | { \ 6 | ixOsalLog (IX_OSAL_LOG_LVL_ERROR, IX_OSAL_LOG_DEV_STDOUT, "Assertion failure \n", 0, 0, 0, 0, 0, 0);\ 7 | while(1); \ 8 | } 9 | 10 | #endif /* IxOsalOsAssert_H */ 11 | -------------------------------------------------------------------------------- /include/cramfs/cramfs_fs_sb.h: -------------------------------------------------------------------------------- 1 | #ifndef _CRAMFS_FS_SB 2 | #define _CRAMFS_FS_SB 3 | 4 | /* 5 | * cramfs super-block data in memory 6 | */ 7 | struct cramfs_sb_info { 8 | unsigned long magic; 9 | unsigned long size; 10 | unsigned long blocks; 11 | unsigned long files; 12 | unsigned long flags; 13 | #ifdef CONFIG_CRAMFS_LINEAR 14 | unsigned long linear_phys_addr; 15 | char * linear_virt_addr; 16 | #endif 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /board/ns9750dev/config.mk: -------------------------------------------------------------------------------- 1 | ####################################################################### 2 | # 3 | # Copyright (C) 2004 by FS Forth-Systeme GmbH. 4 | # Markus Pietrek 5 | # 6 | # @TODO 7 | # Linux-Kernel is expected to be at 0000'8000, entry 0000'8000 8 | # optionally with a ramdisk at 0080'0000 9 | # 10 | # we load ourself to 0078'0000 11 | # 12 | # download area is 0060'0000 13 | # 14 | 15 | 16 | CONFIG_SYS_TEXT_BASE = 0x00780000 17 | -------------------------------------------------------------------------------- /board/timll/devkit8000/README: -------------------------------------------------------------------------------- 1 | DevKit8000 2 | ========== 3 | 4 | The OMAP3 DevKit8000 from Embest/Timll is a clone of the OMAP3 beagle board 5 | with Ethernet and Touch Screen controller on board. 6 | 7 | For more information go to: 8 | http://www.embedinfo.com/English/Product/devkit8000.asp 9 | 10 | There's no real MAC address available. 11 | If ethaddr is not set, 5 Bytes of the OMAP Die ID will be used. 12 | 13 | Build: 14 | make devkit8000_config 15 | make 16 | -------------------------------------------------------------------------------- /lib/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /arch/m68k/include/asm/processor.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_M68K_PROCESSOR_H 2 | #define __ASM_M68K_PROCESSOR_H 3 | 4 | #include 5 | #include 6 | 7 | #define _GLOBAL(n)\ 8 | .globl n;\ 9 | n: 10 | 11 | /* Macros for setting and retrieving special purpose registers */ 12 | #define setvbr(v) asm volatile("movec %0,%%VBR" : : "r" (v)) 13 | 14 | #ifndef __ASSEMBLY__ 15 | 16 | #endif /* ifndef ASSEMBLY*/ 17 | 18 | #endif /* __ASM_M68K_PROCESSOR_H */ 19 | -------------------------------------------------------------------------------- /board/samsung/smdkc100/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 # Samsung Elecgtronics 3 | # Kyungmin Park 4 | # 5 | 6 | # On S5PC100 we use the 128 MiB OneDRAM bank at 7 | # 8 | # 0x30000000 to 0x35000000 (80MiB) 9 | # 0x38000000 to 0x40000000 (128MiB) 10 | # 11 | # On S5PC110 we use the 128 MiB OneDRAM bank at 12 | # 13 | # 0x30000000 to 0x35000000 (80MiB) 14 | # 0x40000000 to 0x48000000 (128MiB) 15 | # 16 | CONFIG_SYS_TEXT_BASE = 0x34800000 17 | -------------------------------------------------------------------------------- /include/config_cmd_defaults.h: -------------------------------------------------------------------------------- 1 | /* 2 | * config_cmd_defaults.h - sane defaults for everyone 3 | * 4 | * Copyright (c) 2010-2011 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #ifndef _CONFIG_CMD_DEFAULTS_H_ 10 | #define _CONFIG_CMD_DEFAULTS_H_ 11 | 12 | #define CONFIG_CMD_BOOTM 1 13 | #define CONFIG_CMD_CRC32 1 14 | #define CONFIG_CMD_EXPORTENV 1 15 | #define CONFIG_CMD_GO 1 16 | #define CONFIG_CMD_IMPORTENV 1 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /tools/bddb/config.php: -------------------------------------------------------------------------------- 1 | 4 | // CSIRO Manufacturing Science and Technology, Preston Lab 5 | 6 | // mysql database access info 7 | $mysql_user="fred"; 8 | $mysql_pw="apassword"; 9 | $mysql_db="mydbname"; 10 | 11 | // where to put the eeprom config files 12 | $bddb_cfgdir = '/tftpboot/bddb'; 13 | 14 | // what this database is called 15 | $bddb_label = 'Hymod Board Database'; 16 | ?> 17 | -------------------------------------------------------------------------------- /arch/mips/include/asm/reboot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is subject to the terms and conditions of the GNU General Public 3 | * License. See the file "COPYING" in the main directory of this archive 4 | * for more details. 5 | * 6 | * Copyright (C) 1997, 1999, 2001, 06 by Ralf Baechle 7 | * Copyright (C) 2001 MIPS Technologies, Inc. 8 | */ 9 | #ifndef _ASM_REBOOT_H 10 | #define _ASM_REBOOT_H 11 | 12 | extern void _machine_restart(void); 13 | 14 | #endif /* _ASM_REBOOT_H */ 15 | -------------------------------------------------------------------------------- /arch/powerpc/cpu/mpc512x/asm-offsets.h: -------------------------------------------------------------------------------- 1 | /* 2 | * needed for arch/powerpc/cpu/mpc512x/start.S 3 | * 4 | * These should be auto-generated 5 | */ 6 | #define LPCS0AW 0x0024 7 | #define SRAMBAR 0x00C4 8 | #define SWCRR 0x0904 9 | #define LPC_OFFSET 0x10000 10 | #define CS0_CONFIG 0x00000 11 | #define CS_CTRL 0x00020 12 | #define CS_CTRL_ME 0x01000000 /* CS Master Enable bit */ 13 | 14 | #define EXC_OFF_SYS_RESET 0x0100 15 | #define _START_OFFSET EXC_OFF_SYS_RESET 16 | -------------------------------------------------------------------------------- /arch/powerpc/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_POWERPC_UNALIGNED_H 2 | #define _ASM_POWERPC_UNALIGNED_H 3 | 4 | #ifdef __KERNEL__ 5 | 6 | /* 7 | * The PowerPC can do unaligned accesses itself in big endian mode. 8 | */ 9 | #include 10 | #include 11 | 12 | #define get_unaligned __get_unaligned_be 13 | #define put_unaligned __put_unaligned_be 14 | 15 | #endif /* __KERNEL__ */ 16 | #endif /* _ASM_POWERPC_UNALIGNED_H */ 17 | -------------------------------------------------------------------------------- /arch/arm/include/asm/hardware.h: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/include/asm-arm/hardware.h 3 | * 4 | * Copyright (C) 1996 Russell King 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License version 2 as 8 | * published by the Free Software Foundation. 9 | * 10 | * Common hardware definitions 11 | */ 12 | 13 | #ifndef __ASM_HARDWARE_H 14 | #define __ASM_HARDWARE_H 15 | 16 | #include 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /arch/blackfin/cpu/bootrom-asm-offsets.c.in: -------------------------------------------------------------------------------- 1 | /* A little trick taken from the kernel asm-offsets.h where we convert 2 | * the C structures automatically into a bunch of defines for use in 3 | * the assembly files. 4 | */ 5 | 6 | #include 7 | #include 8 | 9 | #define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 10 | #define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m)) 11 | 12 | int main(int argc, char * const argv[]) 13 | -------------------------------------------------------------------------------- /arch/blackfin/cpu/init.lds.S: -------------------------------------------------------------------------------- 1 | /* 2 | * linker script for simple init.elf 3 | * 4 | * Copyright (c) 2005-2011 Analog Device Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | #undef ALIGN 12 | #undef ENTRY 13 | 14 | OUTPUT_ARCH(bfin) 15 | 16 | MEMORY 17 | { 18 | l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE 19 | } 20 | 21 | ENTRY(_start) 22 | SECTIONS 23 | { 24 | .text.l1 : { *(.text .text.*) } >l1_code 25 | } 26 | -------------------------------------------------------------------------------- /doc/README.idma2intr: -------------------------------------------------------------------------------- 1 | (C) 2003 Arun Dharankar 2 | 3 | Attached is an IDMA example code for MPC8260/PPCBoot. I had tried to 4 | search around and could not find any for implementing IDMA, so 5 | implemented one. Its not coded in the best way, but works. 6 | 7 | Also, I was able to test the IDMA specific code under Linux also 8 | (with modifications). My requirement was to implement it for 9 | CompactFlash implemented in memory mode, and it works for it under 10 | PPCBoot and Linux. 11 | -------------------------------------------------------------------------------- /doc/README.m28: -------------------------------------------------------------------------------- 1 | DENX M28EVK 2 | =========== 3 | 4 | Files of the M28/M28EVK port 5 | ---------------------------- 6 | 7 | arch/arm/cpu/arm926ejs/mxs/ - The CPU support code for the Freescale i.MX28 8 | arch/arm/include/asm/arch-mxs/ - Header files for the Freescale i.MX28 9 | board/denx/m28evk/ - M28EVK board specific files 10 | include/configs/m28evk.h - M28EVK configuration file 11 | 12 | Follow the instructions from doc/README.mx28_common to generate a bootable SD 13 | card or to boot from NAND flash. 14 | -------------------------------------------------------------------------------- /arch/mips/lib/libgcc.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_LIBGCC_H 2 | #define __ASM_LIBGCC_H 3 | 4 | #include 5 | 6 | typedef int word_type __attribute__ ((mode (__word__))); 7 | 8 | #ifdef __BIG_ENDIAN 9 | struct DWstruct { 10 | int high, low; 11 | }; 12 | #elif defined(__LITTLE_ENDIAN) 13 | struct DWstruct { 14 | int low, high; 15 | }; 16 | #else 17 | #error I feel sick. 18 | #endif 19 | 20 | typedef union { 21 | struct DWstruct s; 22 | long long ll; 23 | } DWunion; 24 | 25 | #endif /* __ASM_LIBGCC_H */ 26 | -------------------------------------------------------------------------------- /arch/sh/lib/libgcc.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_LIBGCC_H 2 | #define __ASM_LIBGCC_H 3 | 4 | #include 5 | 6 | typedef int word_type __attribute__ ((mode (__word__))); 7 | 8 | #ifdef __BIG_ENDIAN 9 | struct DWstruct { 10 | int high, low; 11 | }; 12 | #elif defined(__LITTLE_ENDIAN) 13 | struct DWstruct { 14 | int low, high; 15 | }; 16 | #else 17 | #error I feel sick. 18 | #endif 19 | 20 | typedef union { 21 | struct DWstruct s; 22 | long long ll; 23 | } DWunion; 24 | 25 | #endif /* __ASM_LIBGCC_H */ 26 | -------------------------------------------------------------------------------- /lib/.depend.div64: -------------------------------------------------------------------------------- 1 | div64.o: div64.c \ 2 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/types.h \ 3 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/config.h \ 4 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/posix_types.h \ 5 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/stddef.h \ 6 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/asm/posix_types.h \ 7 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/asm/types.h 8 | -------------------------------------------------------------------------------- /board/chromebook-x86/dts/alex.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | /include/ "coreboot.dtsi" 4 | 5 | / { 6 | #address-cells = <1>; 7 | #size-cells = <1>; 8 | model = "Google Alex"; 9 | compatible = "google,alex", "intel,atom-pineview"; 10 | 11 | config { 12 | silent_console = <0>; 13 | }; 14 | 15 | gpio: gpio {}; 16 | 17 | serial { 18 | reg = <0x3f8 8>; 19 | clock-frequency = <115200>; 20 | }; 21 | 22 | chosen { }; 23 | memory { device_type = "memory"; reg = <0 0>; }; 24 | }; 25 | -------------------------------------------------------------------------------- /include/config_defaults.h: -------------------------------------------------------------------------------- 1 | /* 2 | * config_defaults.h - sane defaults for everyone 3 | * 4 | * Copyright (c) 2009 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #ifndef _CONFIG_DEFAULTS_H_ 10 | #define _CONFIG_DEFAULTS_H_ 11 | 12 | /* Support bootm-ing different OSes */ 13 | #define CONFIG_BOOTM_LINUX 1 14 | #define CONFIG_BOOTM_NETBSD 1 15 | #define CONFIG_BOOTM_RTEMS 1 16 | 17 | #define CONFIG_GZIP 1 18 | #define CONFIG_ZLIB 1 19 | #define CONFIG_PARTITIONS 1 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /board/chromebook-x86/dts/link.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | /include/ "coreboot.dtsi" 4 | 5 | / { 6 | #address-cells = <1>; 7 | #size-cells = <1>; 8 | model = "Google Link"; 9 | compatible = "google,link", "intel,celeron-ivybridge"; 10 | 11 | config { 12 | silent_console = <0>; 13 | }; 14 | 15 | gpio: gpio {}; 16 | 17 | serial { 18 | reg = <0x3f8 8>; 19 | clock-frequency = <115200>; 20 | }; 21 | 22 | chosen { }; 23 | memory { device_type = "memory"; reg = <0 0>; }; 24 | }; 25 | -------------------------------------------------------------------------------- /fs/ext4/crc16.h: -------------------------------------------------------------------------------- 1 | /* 2 | * crc16.h - CRC-16 routine 3 | * Implements the standard CRC-16: 4 | * Width 16 5 | * Poly 0x8005 (x16 + x15 + x2 + 1) 6 | * Init 0 7 | * 8 | * Copyright (c) 2005 Ben Gardner 9 | * This source code is licensed under the GNU General Public License, 10 | * Version 2. See the file COPYING for more details. 11 | */ 12 | #ifndef __CRC16_H 13 | #define __CRC16_H 14 | extern unsigned int ext2fs_crc16(unsigned int crc, 15 | const void *buffer, unsigned int len); 16 | #endif 17 | -------------------------------------------------------------------------------- /board/freescale/corenet_ds/p5020ds_ddr.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2010 Freescale Semiconductor, Inc. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * Version 2 as published by the Free Software Foundation. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | fixed_ddr_parm_t fixed_ddr_parm_0[] = { 13 | {0, 0, NULL} 14 | }; 15 | 16 | fixed_ddr_parm_t fixed_ddr_parm_1[] = { 17 | {0, 0, NULL} 18 | }; 19 | -------------------------------------------------------------------------------- /board/freescale/corenet_ds/p5040ds_ddr.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2010 Freescale Semiconductor, Inc. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * Version 2 as published by the Free Software Foundation. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | fixed_ddr_parm_t fixed_ddr_parm_0[] = { 13 | {0, 0, NULL} 14 | }; 15 | 16 | fixed_ddr_parm_t fixed_ddr_parm_1[] = { 17 | {0, 0, NULL} 18 | }; 19 | -------------------------------------------------------------------------------- /include/jffs2/compr_rubin.h: -------------------------------------------------------------------------------- 1 | /* Rubin encoder/decoder header */ 2 | /* work started at : aug 3, 1994 */ 3 | /* last modification : aug 15, 1994 */ 4 | /* $Id: compr_rubin.h,v 1.1 2002/01/16 23:34:32 nyet Exp $ */ 5 | 6 | #define RUBIN_REG_SIZE 16 7 | #define UPPER_BIT_RUBIN (((long) 1)<<(RUBIN_REG_SIZE-1)) 8 | #define LOWER_BITS_RUBIN ((((long) 1)<<(RUBIN_REG_SIZE-1))-1) 9 | 10 | void dynrubin_decompress(unsigned char *data_in, unsigned char *cpage_out, 11 | unsigned long sourcelen, unsigned long dstlen); 12 | -------------------------------------------------------------------------------- /include/linux/kbuild.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copied from Linux: 3 | * commit 37487a56523d402e25650da16c337acf4cecd13d 4 | * Author: Christoph Lameter 5 | */ 6 | #ifndef __LINUX_KBUILD_H 7 | #define __LINUX_KBUILD_H 8 | 9 | #define DEFINE(sym, val) \ 10 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 11 | 12 | #define BLANK() asm volatile("\n->" : : ) 13 | 14 | #define OFFSET(sym, str, mem) \ 15 | DEFINE(sym, offsetof(struct str, mem)) 16 | 17 | #define COMMENT(x) \ 18 | asm volatile("\n->#" x) 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /net/cdp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copied from Linux Monitor (LiMon) - Networking. 3 | * 4 | * Copyright 1994 - 2000 Neil Russell. 5 | * (See License) 6 | * Copyright 2000 Roland Borde 7 | * Copyright 2000 Paolo Scaffardi 8 | * Copyright 2000-2002 Wolfgang Denk, wd@denx.de 9 | */ 10 | 11 | #if defined(CONFIG_CMD_CDP) 12 | 13 | #ifndef __CDP_H__ 14 | #define __CDP_H__ 15 | 16 | void CDPStart(void); 17 | /* Process a received CDP packet */ 18 | void cdp_receive(const uchar *pkt, unsigned len); 19 | 20 | #endif /* __CDP_H__ */ 21 | #endif 22 | -------------------------------------------------------------------------------- /arch/arm/include/asm/arch-rmobile/irqs.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_MACH_IRQS_H 2 | #define __ASM_MACH_IRQS_H 3 | 4 | #define NR_IRQS 1024 5 | 6 | /* GIC */ 7 | #define gic_spi(nr) ((nr) + 32) 8 | 9 | /* INTCA */ 10 | #define evt2irq(evt) (((evt) >> 5) - 16) 11 | #define irq2evt(irq) (((irq) + 16) << 5) 12 | 13 | /* INTCS */ 14 | #define INTCS_VECT_BASE 0x2200 15 | #define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) 16 | #define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) 17 | 18 | #endif /* __ASM_MACH_IRQS_H */ 19 | -------------------------------------------------------------------------------- /arch/arm/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_ARM_UNALIGNED_H 2 | #define _ASM_ARM_UNALIGNED_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | /* 9 | * Select endianness 10 | */ 11 | #ifndef __ARMEB__ 12 | #define get_unaligned __get_unaligned_le 13 | #define put_unaligned __put_unaligned_le 14 | #else 15 | #define get_unaligned __get_unaligned_be 16 | #define put_unaligned __put_unaligned_be 17 | #endif 18 | 19 | #endif /* _ASM_ARM_UNALIGNED_H */ 20 | -------------------------------------------------------------------------------- /arch/blackfin/cpu/watchdog.c: -------------------------------------------------------------------------------- 1 | /* 2 | * watchdog.c - driver for Blackfin on-chip watchdog 3 | * 4 | * Copyright (c) 2007-2009 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | void hw_watchdog_reset(void) 14 | { 15 | bfin_write_WDOG_STAT(0); 16 | } 17 | 18 | void hw_watchdog_init(void) 19 | { 20 | bfin_write_WDOG_CNT(5 * get_sclk()); /* 5 second timeout */ 21 | hw_watchdog_reset(); 22 | bfin_write_WDOG_CTL(0x0); 23 | } 24 | -------------------------------------------------------------------------------- /arch/sh/lib/ashldi3.c: -------------------------------------------------------------------------------- 1 | #include "libgcc.h" 2 | 3 | long long __ashldi3(long long u, word_type b) 4 | { 5 | DWunion uu, w; 6 | word_type bm; 7 | 8 | if (b == 0) 9 | return u; 10 | 11 | uu.ll = u; 12 | bm = 32 - b; 13 | 14 | if (bm <= 0) { 15 | w.s.low = 0; 16 | w.s.high = (unsigned int) uu.s.low << -bm; 17 | } else { 18 | const unsigned int carries = (unsigned int) uu.s.low >> bm; 19 | 20 | w.s.low = (unsigned int) uu.s.low << b; 21 | w.s.high = ((unsigned int) uu.s.high << b) | carries; 22 | } 23 | 24 | return w.ll; 25 | } 26 | -------------------------------------------------------------------------------- /include/video_easylogo.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** video easylogo 3 | ** ============== 4 | ** (C) 2000 by Paolo Scaffardi (arsenio@tin.it) 5 | ** AIRVENT SAM s.p.a - RIMINI(ITALY) 6 | ** 7 | ** This utility is still under construction! 8 | */ 9 | 10 | #ifndef _EASYLOGO_H_ 11 | #define _EASYLOGO_H_ 12 | 13 | #if 0 14 | #define ENABLE_ASCII_BANNERS 15 | #endif 16 | 17 | typedef struct { 18 | unsigned char *data; 19 | int width; 20 | int height; 21 | int bpp; 22 | int pixel_size; 23 | int size; 24 | } fastimage_t ; 25 | 26 | #endif /* _EASYLOGO_H_ */ 27 | -------------------------------------------------------------------------------- /arch/mips/lib/ashldi3.c: -------------------------------------------------------------------------------- 1 | #include "libgcc.h" 2 | 3 | long long __ashldi3(long long u, word_type b) 4 | { 5 | DWunion uu, w; 6 | word_type bm; 7 | 8 | if (b == 0) 9 | return u; 10 | 11 | uu.ll = u; 12 | bm = 32 - b; 13 | 14 | if (bm <= 0) { 15 | w.s.low = 0; 16 | w.s.high = (unsigned int) uu.s.low << -bm; 17 | } else { 18 | const unsigned int carries = (unsigned int) uu.s.low >> bm; 19 | 20 | w.s.low = (unsigned int) uu.s.low << b; 21 | w.s.high = ((unsigned int) uu.s.high << b) | carries; 22 | } 23 | 24 | return w.ll; 25 | } 26 | -------------------------------------------------------------------------------- /arch/mips/lib/lshrdi3.c: -------------------------------------------------------------------------------- 1 | #include "libgcc.h" 2 | 3 | long long __lshrdi3(long long u, word_type b) 4 | { 5 | DWunion uu, w; 6 | word_type bm; 7 | 8 | if (b == 0) 9 | return u; 10 | 11 | uu.ll = u; 12 | bm = 32 - b; 13 | 14 | if (bm <= 0) { 15 | w.s.high = 0; 16 | w.s.low = (unsigned int) uu.s.high >> -bm; 17 | } else { 18 | const unsigned int carries = (unsigned int) uu.s.high << bm; 19 | 20 | w.s.high = (unsigned int) uu.s.high >> b; 21 | w.s.low = ((unsigned int) uu.s.low >> b) | carries; 22 | } 23 | 24 | return w.ll; 25 | } 26 | -------------------------------------------------------------------------------- /arch/sh/lib/lshrdi3.c: -------------------------------------------------------------------------------- 1 | #include "libgcc.h" 2 | 3 | long long __lshrdi3(long long u, word_type b) 4 | { 5 | DWunion uu, w; 6 | word_type bm; 7 | 8 | if (b == 0) 9 | return u; 10 | 11 | uu.ll = u; 12 | bm = 32 - b; 13 | 14 | if (bm <= 0) { 15 | w.s.high = 0; 16 | w.s.low = (unsigned int) uu.s.high >> -bm; 17 | } else { 18 | const unsigned int carries = (unsigned int) uu.s.high << bm; 19 | 20 | w.s.high = (unsigned int) uu.s.high >> b; 21 | w.s.low = ((unsigned int) uu.s.low >> b) | carries; 22 | } 23 | 24 | return w.ll; 25 | } 26 | -------------------------------------------------------------------------------- /doc/uImage.FIT/update_uboot.its: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatic software update for U-Boot 3 | * Make sure the flashing addresses ('load' prop) is correct for your board! 4 | */ 5 | 6 | /dts-v1/; 7 | 8 | / { 9 | description = "Automatic U-Boot update"; 10 | #address-cells = <1>; 11 | 12 | images { 13 | update@1 { 14 | description = "U-Boot binary"; 15 | data = /incbin/("./u-boot.bin"); 16 | compression = "none"; 17 | type = "firmware"; 18 | load = ; 19 | hash@1 { 20 | algo = "sha1"; 21 | }; 22 | }; 23 | }; 24 | }; 25 | -------------------------------------------------------------------------------- /include/linux/mtd/concat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MTD device concatenation layer definitions 3 | * 4 | * (C) 2002 Robert Kaiser 5 | * 6 | * This code is GPL 7 | */ 8 | 9 | #ifndef MTD_CONCAT_H 10 | #define MTD_CONCAT_H 11 | 12 | struct mtd_info *mtd_concat_create( 13 | struct mtd_info *subdev[], /* subdevices to concatenate */ 14 | int num_devs, /* number of subdevices */ 15 | const char *name); /* name for the new device */ 16 | 17 | void mtd_concat_destroy(struct mtd_info *mtd); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /arch/sh/include/asm/mmc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Renesas SuperH MMCIF driver. 3 | * 4 | * Copyright (C) 2012 Nobuhiro Iwamatsu 5 | * Copyright (C) 2012 Renesas Solutions Corp. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License. 10 | * 11 | */ 12 | #ifndef _SH_MMC_H_ 13 | #define _SH_MMC_H_ 14 | 15 | int mmcif_mmc_init(void); 16 | 17 | #endif /* _SH_MMC_H_ */ 18 | -------------------------------------------------------------------------------- /arch/x86/cpu/timer.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | * 6 | * Alternatively, this software may be distributed under the terms of the 7 | * GNU General Public License ("GPL") version 2 as published by the Free 8 | * Software Foundation. 9 | */ 10 | 11 | #include 12 | 13 | unsigned long timer_get_us(void) 14 | { 15 | printf("timer_get_us used but not implemented.\n"); 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /doc/DocBook/stylesheet.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | ansi 5 | 80 6 | 0 7 | 8 | 2 9 | 1 10 | ../docbook.css 11 | 12 | -------------------------------------------------------------------------------- /tools/scripts/send_image: -------------------------------------------------------------------------------- 1 | #!/usr/bin/kermit + 2 | # usage: send_image FILE_NAME OFFSET 3 | # e.g. send_image output.bin 1F00000 4 | set line /dev/ttyS0 5 | set speed 115200 6 | set serial 8N1 7 | set carrier-watch off 8 | set handshake none 9 | set flow-control none 10 | robust 11 | set file type bin 12 | set file name lit 13 | set rec pack 1000 14 | set send pack 1000 15 | set window 5 16 | set prompt Kermit> 17 | 18 | out \13 19 | in 10 => 20 | out loadb \%2 \13 21 | in 10 download ... 22 | send \%1 23 | out \13 24 | in 10 ## Start Addr 25 | quit 26 | exit 0 27 | -------------------------------------------------------------------------------- /board/freescale/common/sgmii_riser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Freescale SGMII Riser Card 3 | * 4 | * This driver supports the SGMII Riser card found on the 5 | * "DS" style of development board from Freescale. 6 | * 7 | * This software may be used and distributed according to the 8 | * terms of the GNU Public License, Version 2, incorporated 9 | * herein by reference. 10 | * 11 | * Copyright 2008 Freescale Semiconductor, Inc. 12 | * 13 | */ 14 | 15 | void fsl_sgmii_riser_init(struct tsec_info_struct *tsec_info, int num); 16 | void fsl_sgmii_riser_fdt_fixup(void *fdt); 17 | -------------------------------------------------------------------------------- /board/ibf-dsp561/ibf-dsp561.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) 2008-2009 I-SYST. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | DECLARE_GLOBAL_DATA_PTR; 13 | 14 | int checkboard(void) 15 | { 16 | printf("Board: I-SYST IBF-DSP561 Micromodule\n"); 17 | printf(" Support: http://www.i-syst.com/\n"); 18 | return 0; 19 | } 20 | 21 | #ifdef CONFIG_DRIVER_AX88180 22 | int board_eth_init(bd_t *bis) 23 | { 24 | return ax88180_initialize(bis); 25 | } 26 | #endif 27 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/deferred.h: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - deferred register layout 3 | * 4 | * Copyright 2004-2009 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #ifndef _BLACKFIN_DEFER_H 10 | #define _BLACKFIN_DEFER_H 11 | 12 | #define deferred_regs_DCPLB_FAULT_ADDR 0 13 | #define deferred_regs_ICPLB_FAULT_ADDR 1 14 | #define deferred_regs_retx 2 15 | #define deferred_regs_SEQSTAT 3 16 | #define deferred_regs_SYSCFG 4 17 | #define deferred_regs_IMASK 5 18 | #define deferred_regs_last 6 19 | 20 | #endif /* _BLACKFIN_DEFER_H */ 21 | -------------------------------------------------------------------------------- /tools/binutils-version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # binutils-version [-p] gas-command 4 | # 5 | # Prints the binutils version of `gas-command' in a canonical 4-digit form 6 | # such as `0222' for binutils 2.22 7 | # 8 | 9 | gas="$*" 10 | 11 | if [ ${#gas} -eq 0 ]; then 12 | echo "Error: No assembler specified." 13 | printf "Usage:\n\t$0 \n" 14 | exit 1 15 | fi 16 | 17 | MAJOR=$($gas --version | head -1 | awk '{print $NF}' | cut -d . -f 1) 18 | MINOR=$($gas --version | head -1 | awk '{print $NF}' | cut -d . -f 2) 19 | 20 | printf "%02d%02d\\n" $MAJOR $MINOR 21 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/trace.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Trace Unit Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_TRACE__ 6 | #define __BFIN_PERIPHERAL_TRACE__ 7 | 8 | /* Trace Buffer Control (TBUFCTL) Register Masks */ 9 | #define TBUFPWR 0x00000001 10 | #define TBUFEN 0x00000002 11 | #define TBUFOVF 0x00000004 12 | #define CMPLB_SINGLE 0x00000008 13 | #define CMPLP_DOUBLE 0x00000010 14 | #define CMPLB (CMPLB_SINGLE | CMPLP_DOUBLE) 15 | 16 | /* Trace Buffer Status (TBUFSTAT) Register Masks */ 17 | #define TBUFCNT 0x0000001F 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /arch/mips/lib/ashrdi3.c: -------------------------------------------------------------------------------- 1 | #include "libgcc.h" 2 | 3 | long long __ashrdi3(long long u, word_type b) 4 | { 5 | DWunion uu, w; 6 | word_type bm; 7 | 8 | if (b == 0) 9 | return u; 10 | 11 | uu.ll = u; 12 | bm = 32 - b; 13 | 14 | if (bm <= 0) { 15 | /* w.s.high = 1..1 or 0..0 */ 16 | w.s.high = 17 | uu.s.high >> 31; 18 | w.s.low = uu.s.high >> -bm; 19 | } else { 20 | const unsigned int carries = (unsigned int) uu.s.high << bm; 21 | 22 | w.s.high = uu.s.high >> b; 23 | w.s.low = ((unsigned int) uu.s.low >> b) | carries; 24 | } 25 | 26 | return w.ll; 27 | } 28 | -------------------------------------------------------------------------------- /board/mcc200/mt48lc8m32b2-6-7.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Configuration Registers for the MT48LC8M32B2 SDRAM on the MPC5200 platform 3 | */ 4 | 5 | #define SDRAM_DDR 0 /* is SDR */ 6 | 7 | /* Settings for XLB = 132 MHz */ 8 | 9 | #define SDRAM_MODE 0x008d0000 /* CL-3 BURST-8 -> Mode Register MBAR + 0x0100 */ 10 | #define SDRAM_CONTROL 0x504f0000 /* Control Register MBAR + 0x0104 */ 11 | #define SDRAM_CONFIG1 0xc2222900 /* Delays between commands -> Configuration Register 1 MBAR + 0x0108 */ 12 | #define SDRAM_CONFIG2 0x88c70000 /* Delays between commands -> Configuration Register 2 MBAR + 0x010C */ 13 | -------------------------------------------------------------------------------- /lib/.depend.crc16: -------------------------------------------------------------------------------- 1 | crc16.o: crc16.c \ 2 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/crc.h \ 3 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/types.h \ 4 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/config.h \ 5 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/posix_types.h \ 6 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/stddef.h \ 7 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/asm/posix_types.h \ 8 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/asm/types.h 9 | -------------------------------------------------------------------------------- /tools/scripts/dot.kermrc: -------------------------------------------------------------------------------- 1 | set line /dev/ttyS0 2 | set speed 115200 3 | set carrier-watch off 4 | set handshake none 5 | set flow-control none 6 | robust 7 | set file type bin 8 | set file name lit 9 | set rec pack 1000 10 | set send pack 1000 11 | set window 5 12 | set prompt Kermit> 13 | define sz !sz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line) 14 | define rz !rz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line) 15 | define sx !sx \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line) 16 | define rx !rx \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line) 17 | -------------------------------------------------------------------------------- /board/cm-bf533/cm-bf533.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) 2005-2008 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | DECLARE_GLOBAL_DATA_PTR; 13 | 14 | int checkboard(void) 15 | { 16 | printf("Board: Bluetechnix CM-BF533 board\n"); 17 | printf(" Support: http://www.bluetechnix.at/\n"); 18 | return 0; 19 | } 20 | 21 | #ifdef CONFIG_SMC91111 22 | int board_eth_init(bd_t *bis) 23 | { 24 | return smc91111_initialize(0, CONFIG_SMC91111_BASE); 25 | } 26 | #endif 27 | -------------------------------------------------------------------------------- /board/cm-bf561/cm-bf561.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) 2005-2008 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | DECLARE_GLOBAL_DATA_PTR; 13 | 14 | int checkboard(void) 15 | { 16 | printf("Board: Bluetechnix CM-BF561 core module\n"); 17 | printf(" Support: http://www.bluetechnix.at/\n"); 18 | return 0; 19 | } 20 | 21 | #ifdef CONFIG_SMC911X 22 | int board_eth_init(bd_t *bis) 23 | { 24 | return smc911x_initialize(0, CONFIG_SMC911X_BASE); 25 | } 26 | #endif 27 | -------------------------------------------------------------------------------- /lib/.depend.crc7: -------------------------------------------------------------------------------- 1 | crc7.o: crc7.c \ 2 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/types.h \ 3 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/config.h \ 4 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/posix_types.h \ 5 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/stddef.h \ 6 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/asm/posix_types.h \ 7 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/asm/types.h \ 8 | /home/user/u-boot-2013.01_2015-01-09/u-boot-2013.01/include/linux/crc7.h 9 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/sections.h: -------------------------------------------------------------------------------- 1 | /* 2 | * decls for symbols defined in the linker script 3 | * 4 | * Copyright (c) 2012 The Chromium OS Authors. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #ifndef __SANDBOX_SECTIONS_H 10 | #define __SANDBOX_SECTIONS_H 11 | 12 | struct sb_cmdline_option; 13 | 14 | extern struct sb_cmdline_option *__u_boot_sandbox_option_start[], 15 | *__u_boot_sandbox_option_end[]; 16 | 17 | static inline size_t __u_boot_sandbox_option_count(void) 18 | { 19 | return __u_boot_sandbox_option_end - __u_boot_sandbox_option_start; 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /board/matrix_vision/mvblm7/mvblm7.h: -------------------------------------------------------------------------------- 1 | #ifndef __MVBC_H__ 2 | #define __MVBC_H__ 3 | 4 | #define MV_GPIO 5 | 6 | #define FPGA_CONFIG 0x80000000 7 | #define FPGA_CCLK 0x40000000 8 | #define FPGA_DIN 0x20000000 9 | #define FPGA_STATUS 0x10000000 10 | #define FPGA_CONF_DONE 0x08000000 11 | 12 | #define WD_WDI 0x00400000 13 | #define WD_TS 0x00200000 14 | #define MAN_RST 0x00100000 15 | 16 | #define MV_GPIO_DAT (WD_TS) 17 | #define MV_GPIO_OUT (FPGA_CONFIG|FPGA_DIN|FPGA_CCLK|MVBLM7_MMC_CS) 18 | #define MV_GPIO_ODE (FPGA_CONFIG|MAN_RST) 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf561/def_local.h: -------------------------------------------------------------------------------- 1 | #define SWRST SICA_SWRST 2 | #define SYSCR SICA_SYSCR 3 | #define bfin_write_SWRST(val) bfin_write_SICA_SWRST(val) 4 | #define bfin_write_SYSCR(val) bfin_write_SICA_SYSCR(val) 5 | 6 | #define WDOG_CNT WDOGA_CNT 7 | #define WDOG_CTL WDOGA_CTL 8 | #define bfin_write_WDOG_CNT(val) bfin_write_WDOGA_CNT(val) 9 | #define bfin_write_WDOG_CTL(val) bfin_write_WDOGA_CTL(val) 10 | #define bfin_write_WDOG_STAT(val) bfin_write_WDOGA_STAT(val) 11 | 12 | #include "gpio.h" 13 | #include "portmux.h" 14 | #include "ports.h" 15 | 16 | #define BF561_FAMILY 1 /* Linux glue */ 17 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf533/BF532_def.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-def-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_DEF_ADSP_BF532_proc__ 7 | #define __BFIN_DEF_ADSP_BF532_proc__ 8 | 9 | #include "BF531_def.h" 10 | 11 | #ifndef __BFIN_DEF_ADSP_BF533_proc__ 12 | #define L1_INST_SRAM 0xFFA08000 /* 0xFFA08000 -> 0xFFA0BFFF Instruction Bank A SRAM */ 13 | #define L1_INST_SRAM_SIZE (0xFFA0BFFF - 0xFFA08000 + 1) 14 | #define L1_INST_SRAM_END (L1_INST_SRAM + L1_INST_SRAM_SIZE) 15 | #endif 16 | 17 | #endif /* __BFIN_DEF_ADSP_BF532_proc__ */ 18 | -------------------------------------------------------------------------------- /board/bf527-ad7160-eval/bf527-ad7160-eval.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) 2010 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | int checkboard(void) 14 | { 15 | printf("Board: ADI BF527 AD7160-EVAL board\n"); 16 | printf(" Support: http://blackfin.uclinux.org/\n"); 17 | return 0; 18 | } 19 | 20 | int misc_init_r(void) 21 | { 22 | /* CLKIN Buffer Output Enable */ 23 | bfin_write_VR_CTL(bfin_read_VR_CTL() | CLKBUFOE); 24 | return 0; 25 | } 26 | -------------------------------------------------------------------------------- /doc/README.VLAN: -------------------------------------------------------------------------------- 1 | U-Boot has networking support for VLANs (802.1q), and CDP (Cisco 2 | Discovery Protocol). 3 | 4 | You control the sending/receiving of VLAN tagged packets with the 5 | "vlan" environmental variable. When not present no tagging is 6 | performed. 7 | 8 | CDP is used mainly to discover your device VLAN(s) when connected to 9 | a Cisco switch. 10 | 11 | Note: In order to enable CDP support a small change is needed in the 12 | networking driver. You have to enable reception of the 13 | 01:00:0c:cc:cc:cc MAC address which is a multicast address. 14 | 15 | Various defines control CDP; see the README section. 16 | -------------------------------------------------------------------------------- /doc/device-tree-bindings/pwm/tegra20-pwm.txt: -------------------------------------------------------------------------------- 1 | Tegra SoC PWFM controller 2 | 3 | Required properties: 4 | - compatible: should be one of: 5 | - "nvidia,tegra20-pwm" 6 | - "nvidia,tegra30-pwm" 7 | - reg: physical base address and length of the controller's registers 8 | - #pwm-cells: On Tegra the number of cells used to specify a PWM is 2. The 9 | first cell specifies the per-chip index of the PWM to use and the second 10 | cell is the period in nanoseconds. 11 | 12 | Example: 13 | 14 | pwm: pwm@7000a000 { 15 | compatible = "nvidia,tegra20-pwm"; 16 | reg = <0x7000a000 0x100>; 17 | #pwm-cells = <2>; 18 | }; 19 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-a.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port A Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_A__ 6 | #define __BFIN_PERIPHERAL_PORT_A__ 7 | 8 | #define PA0 (1 << 0) 9 | #define PA1 (1 << 1) 10 | #define PA2 (1 << 2) 11 | #define PA3 (1 << 3) 12 | #define PA4 (1 << 4) 13 | #define PA5 (1 << 5) 14 | #define PA6 (1 << 6) 15 | #define PA7 (1 << 7) 16 | #define PA8 (1 << 8) 17 | #define PA9 (1 << 9) 18 | #define PA10 (1 << 10) 19 | #define PA11 (1 << 11) 20 | #define PA12 (1 << 12) 21 | #define PA13 (1 << 13) 22 | #define PA14 (1 << 14) 23 | #define PA15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-b.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port B Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_B__ 6 | #define __BFIN_PERIPHERAL_PORT_B__ 7 | 8 | #define PB0 (1 << 0) 9 | #define PB1 (1 << 1) 10 | #define PB2 (1 << 2) 11 | #define PB3 (1 << 3) 12 | #define PB4 (1 << 4) 13 | #define PB5 (1 << 5) 14 | #define PB6 (1 << 6) 15 | #define PB7 (1 << 7) 16 | #define PB8 (1 << 8) 17 | #define PB9 (1 << 9) 18 | #define PB10 (1 << 10) 19 | #define PB11 (1 << 11) 20 | #define PB12 (1 << 12) 21 | #define PB13 (1 << 13) 22 | #define PB14 (1 << 14) 23 | #define PB15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-c.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port C Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_C__ 6 | #define __BFIN_PERIPHERAL_PORT_C__ 7 | 8 | #define PC0 (1 << 0) 9 | #define PC1 (1 << 1) 10 | #define PC2 (1 << 2) 11 | #define PC3 (1 << 3) 12 | #define PC4 (1 << 4) 13 | #define PC5 (1 << 5) 14 | #define PC6 (1 << 6) 15 | #define PC7 (1 << 7) 16 | #define PC8 (1 << 8) 17 | #define PC9 (1 << 9) 18 | #define PC10 (1 << 10) 19 | #define PC11 (1 << 11) 20 | #define PC12 (1 << 12) 21 | #define PC13 (1 << 13) 22 | #define PC14 (1 << 14) 23 | #define PC15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-d.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port D Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_D__ 6 | #define __BFIN_PERIPHERAL_PORT_D__ 7 | 8 | #define PD0 (1 << 0) 9 | #define PD1 (1 << 1) 10 | #define PD2 (1 << 2) 11 | #define PD3 (1 << 3) 12 | #define PD4 (1 << 4) 13 | #define PD5 (1 << 5) 14 | #define PD6 (1 << 6) 15 | #define PD7 (1 << 7) 16 | #define PD8 (1 << 8) 17 | #define PD9 (1 << 9) 18 | #define PD10 (1 << 10) 19 | #define PD11 (1 << 11) 20 | #define PD12 (1 << 12) 21 | #define PD13 (1 << 13) 22 | #define PD14 (1 << 14) 23 | #define PD15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-e.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port E Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_E__ 6 | #define __BFIN_PERIPHERAL_PORT_E__ 7 | 8 | #define PE0 (1 << 0) 9 | #define PE1 (1 << 1) 10 | #define PE2 (1 << 2) 11 | #define PE3 (1 << 3) 12 | #define PE4 (1 << 4) 13 | #define PE5 (1 << 5) 14 | #define PE6 (1 << 6) 15 | #define PE7 (1 << 7) 16 | #define PE8 (1 << 8) 17 | #define PE9 (1 << 9) 18 | #define PE10 (1 << 10) 19 | #define PE11 (1 << 11) 20 | #define PE12 (1 << 12) 21 | #define PE13 (1 << 13) 22 | #define PE14 (1 << 14) 23 | #define PE15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-f.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port F Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_F__ 6 | #define __BFIN_PERIPHERAL_PORT_F__ 7 | 8 | #define PF0 (1 << 0) 9 | #define PF1 (1 << 1) 10 | #define PF2 (1 << 2) 11 | #define PF3 (1 << 3) 12 | #define PF4 (1 << 4) 13 | #define PF5 (1 << 5) 14 | #define PF6 (1 << 6) 15 | #define PF7 (1 << 7) 16 | #define PF8 (1 << 8) 17 | #define PF9 (1 << 9) 18 | #define PF10 (1 << 10) 19 | #define PF11 (1 << 11) 20 | #define PF12 (1 << 12) 21 | #define PF13 (1 << 13) 22 | #define PF14 (1 << 14) 23 | #define PF15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-g.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port G Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_G__ 6 | #define __BFIN_PERIPHERAL_PORT_G__ 7 | 8 | #define PG0 (1 << 0) 9 | #define PG1 (1 << 1) 10 | #define PG2 (1 << 2) 11 | #define PG3 (1 << 3) 12 | #define PG4 (1 << 4) 13 | #define PG5 (1 << 5) 14 | #define PG6 (1 << 6) 15 | #define PG7 (1 << 7) 16 | #define PG8 (1 << 8) 17 | #define PG9 (1 << 9) 18 | #define PG10 (1 << 10) 19 | #define PG11 (1 << 11) 20 | #define PG12 (1 << 12) 21 | #define PG13 (1 << 13) 22 | #define PG14 (1 << 14) 23 | #define PG15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-h.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port H Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_H__ 6 | #define __BFIN_PERIPHERAL_PORT_H__ 7 | 8 | #define PH0 (1 << 0) 9 | #define PH1 (1 << 1) 10 | #define PH2 (1 << 2) 11 | #define PH3 (1 << 3) 12 | #define PH4 (1 << 4) 13 | #define PH5 (1 << 5) 14 | #define PH6 (1 << 6) 15 | #define PH7 (1 << 7) 16 | #define PH8 (1 << 8) 17 | #define PH9 (1 << 9) 18 | #define PH10 (1 << 10) 19 | #define PH11 (1 << 11) 20 | #define PH12 (1 << 12) 21 | #define PH13 (1 << 13) 22 | #define PH14 (1 << 14) 23 | #define PH15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port I Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_I__ 6 | #define __BFIN_PERIPHERAL_PORT_I__ 7 | 8 | #define PI0 (1 << 0) 9 | #define PI1 (1 << 1) 10 | #define PI2 (1 << 2) 11 | #define PI3 (1 << 3) 12 | #define PI4 (1 << 4) 13 | #define PI5 (1 << 5) 14 | #define PI6 (1 << 6) 15 | #define PI7 (1 << 7) 16 | #define PI8 (1 << 8) 17 | #define PI9 (1 << 9) 18 | #define PI10 (1 << 10) 19 | #define PI11 (1 << 11) 20 | #define PI12 (1 << 12) 21 | #define PI13 (1 << 13) 22 | #define PI14 (1 << 14) 23 | #define PI15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/ports-j.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port J Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT_J__ 6 | #define __BFIN_PERIPHERAL_PORT_J__ 7 | 8 | #define PJ0 (1 << 0) 9 | #define PJ1 (1 << 1) 10 | #define PJ2 (1 << 2) 11 | #define PJ3 (1 << 3) 12 | #define PJ4 (1 << 4) 13 | #define PJ5 (1 << 5) 14 | #define PJ6 (1 << 6) 15 | #define PJ7 (1 << 7) 16 | #define PJ8 (1 << 8) 17 | #define PJ9 (1 << 9) 18 | #define PJ10 (1 << 10) 19 | #define PJ11 (1 << 11) 20 | #define PJ12 (1 << 12) 21 | #define PJ13 (1 << 13) 22 | #define PJ14 (1 << 14) 23 | #define PJ15 (1 << 15) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /board/bf506f-ezkit/bf506f-ezkit.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) 2008-2010 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | int checkboard(void) 13 | { 14 | printf("Board: ADI BF506F EZ-Kit board\n"); 15 | printf(" Support: http://blackfin.uclinux.org/\n"); 16 | return 0; 17 | } 18 | 19 | int board_early_init_f(void) 20 | { 21 | bfin_write_EBIU_MODE(1); 22 | SSYNC(); 23 | bfin_write_FLASH_CONTROL_CLEAR(1); 24 | udelay(1); 25 | bfin_write_FLASH_CONTROL_SET(1); 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /include/asm-generic/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef _GENERIC_UNALIGNED_H 2 | #define _GENERIC_UNALIGNED_H 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | /* 11 | * Select endianness 12 | */ 13 | #if defined(__LITTLE_ENDIAN) 14 | #define get_unaligned __get_unaligned_le 15 | #define put_unaligned __put_unaligned_le 16 | #elif defined(__BIG_ENDIAN) 17 | #define get_unaligned __get_unaligned_be 18 | #define put_unaligned __put_unaligned_be 19 | #else 20 | #error invalid endian 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /arch/powerpc/cpu/mpc85xx/mp.h: -------------------------------------------------------------------------------- 1 | #ifndef __MPC85XX_MP_H_ 2 | #define __MPC85XX_MP_H_ 3 | 4 | #include 5 | 6 | phys_addr_t get_spin_phys_addr(void); 7 | u32 get_my_id(void); 8 | int hold_cores_in_reset(int verbose); 9 | 10 | #define BOOT_ENTRY_ADDR_UPPER 0 11 | #define BOOT_ENTRY_ADDR_LOWER 1 12 | #define BOOT_ENTRY_R3_UPPER 2 13 | #define BOOT_ENTRY_R3_LOWER 3 14 | #define BOOT_ENTRY_RESV 4 15 | #define BOOT_ENTRY_PIR 5 16 | #define BOOT_ENTRY_R6_UPPER 6 17 | #define BOOT_ENTRY_R6_LOWER 7 18 | #define NUM_BOOT_ENTRY 16 /* pad to 64 bytes */ 19 | #define SIZE_BOOT_ENTRY (NUM_BOOT_ENTRY * sizeof(u32)) 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /board/RPXClassic/README: -------------------------------------------------------------------------------- 1 | # Porting U-Boot onto RPXClassic LF_BW31 board 2 | # Written by Pierre AUBERT 3 | # E-Mail p.aubert@staubli.com 4 | # Stäubli Faverges - 5 | # 6 | # Sept. 20 2001 7 | # 8 | # Cross compile: Montavista Hardhat ported on HP-UX 10.20 9 | # 10 | 11 | Flash memories : AM29DL323B (2 banks flash memories) 16 Mb from 0xff000000 12 | DRAM : 16 Mb from 0 13 | NVRAM : 512 kb from 0xfa000000 14 | 15 | 16 | - environment is stored in NVRAM 17 | - Mac address is read from EEPROM 18 | - ethernet on SCC1 or fast ethernet on FEC are running (depending on the 19 | configuration flag CONFIG_FEC_ENET) 20 | -------------------------------------------------------------------------------- /net/link_local.h: -------------------------------------------------------------------------------- 1 | /* 2 | * RFC3927 ZeroConf IPv4 Link-Local addressing 3 | * (see ) 4 | * 5 | * Copied from BusyBox - networking/zcip.c 6 | * 7 | * Copyright (C) 2003 by Arthur van Hoff (avh@strangeberry.com) 8 | * Copyright (C) 2004 by David Brownell 9 | * 10 | * Licensed under the GPL v2 or later 11 | */ 12 | 13 | #if defined(CONFIG_CMD_LINK_LOCAL) 14 | 15 | #ifndef __LINK_LOCAL_H__ 16 | #define __LINK_LOCAL_H__ 17 | 18 | #include 19 | 20 | void link_local_receive_arp(struct arp_hdr *arp, int len); 21 | void link_local_start(void); 22 | 23 | #endif /* __LINK_LOCAL_H__ */ 24 | #endif 25 | -------------------------------------------------------------------------------- /board/cogent/serial.h: -------------------------------------------------------------------------------- 1 | /* Line Status Register bits */ 2 | #define LSR_DR 0x01 /* Data ready */ 3 | #define LSR_OE 0x02 /* Overrun */ 4 | #define LSR_PE 0x04 /* Parity error */ 5 | #define LSR_FE 0x08 /* Framing error */ 6 | #define LSR_BI 0x10 /* Break */ 7 | #define LSR_THRE 0x20 /* Xmit holding register empty */ 8 | #define LSR_TEMT 0x40 /* Xmitter empty */ 9 | #define LSR_ERR 0x80 /* Error */ 10 | 11 | #define CLKRATE 3686400 /* cogent motherboard serial clk = 3.6864MHz */ 12 | #define DEFDIV 1 /* default to 230400 bps */ 13 | 14 | #define br_to_div(br) (CLKRATE / (16 * (br))) 15 | #define div_to_br(div) (CLKRATE / (16 * (div))) 16 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF542_def.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-def-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_DEF_ADSP_BF542_proc__ 7 | #define __BFIN_DEF_ADSP_BF542_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_def.h" 10 | 11 | #include "ADSP-EDN-BF542-extended_def.h" 12 | 13 | #define CHIPID 0xFFC00014 14 | #define SWRST 0xFFC00100 /* Software Reset Register */ 15 | #define SYSCR 0xFFC00104 /* System Configuration register */ 16 | 17 | #endif /* __BFIN_DEF_ADSP_BF542_proc__ */ 18 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF544_def.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-def-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_DEF_ADSP_BF544_proc__ 7 | #define __BFIN_DEF_ADSP_BF544_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_def.h" 10 | 11 | #include "ADSP-EDN-BF544-extended_def.h" 12 | 13 | #define CHIPID 0xFFC00014 14 | #define SWRST 0xFFC00100 /* Software Reset Register */ 15 | #define SYSCR 0xFFC00104 /* System Configuration register */ 16 | 17 | #endif /* __BFIN_DEF_ADSP_BF544_proc__ */ 18 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF547_def.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-def-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_DEF_ADSP_BF547_proc__ 7 | #define __BFIN_DEF_ADSP_BF547_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_def.h" 10 | 11 | #include "ADSP-EDN-BF547-extended_def.h" 12 | 13 | #define CHIPID 0xFFC00014 14 | #define SWRST 0xFFC00100 /* Software Reset Register */ 15 | #define SYSCR 0xFFC00104 /* System Configuration register */ 16 | 17 | #endif /* __BFIN_DEF_ADSP_BF547_proc__ */ 18 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF548_def.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-def-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_DEF_ADSP_BF548_proc__ 7 | #define __BFIN_DEF_ADSP_BF548_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_def.h" 10 | 11 | #include "ADSP-EDN-BF548-extended_def.h" 12 | 13 | #define CHIPID 0xFFC00014 14 | #define SWRST 0xFFC00100 /* Software Reset Register */ 15 | #define SYSCR 0xFFC00104 /* System Configuration register */ 16 | 17 | #endif /* __BFIN_DEF_ADSP_BF548_proc__ */ 18 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF549_def.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-def-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_DEF_ADSP_BF549_proc__ 7 | #define __BFIN_DEF_ADSP_BF549_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_def.h" 10 | 11 | #include "ADSP-EDN-BF549-extended_def.h" 12 | 13 | #define CHIPID 0xFFC00014 14 | #define SWRST 0xFFC00100 /* Software Reset Register */ 15 | #define SYSCR 0xFFC00104 /* System Configuration register */ 16 | 17 | #endif /* __BFIN_DEF_ADSP_BF549_proc__ */ 18 | -------------------------------------------------------------------------------- /include/keyboard.h: -------------------------------------------------------------------------------- 1 | #ifndef __KEYBOARD_H 2 | #define __KEYBOARD_H 3 | 4 | #ifdef CONFIG_PS2MULT 5 | #include 6 | #endif 7 | 8 | #if !defined(kbd_request_region) || \ 9 | !defined(kbd_request_irq) || \ 10 | !defined(kbd_read_input) || \ 11 | !defined(kbd_read_status) || \ 12 | !defined(kbd_write_output) || \ 13 | !defined(kbd_write_command) 14 | #error PS/2 low level routines not defined 15 | #endif 16 | 17 | extern int kbd_init (void); 18 | extern void handle_scancode(unsigned char scancode); 19 | extern int kbd_init_hw(void); 20 | extern void pckbd_leds(unsigned char leds); 21 | 22 | #endif /* __KEYBOARD_H */ 23 | -------------------------------------------------------------------------------- /include/micrel.h: -------------------------------------------------------------------------------- 1 | #ifndef _MICREL_H 2 | 3 | #define MII_KSZ9021_EXT_COMMON_CTRL 0x100 4 | #define MII_KSZ9021_EXT_STRAP_STATUS 0x101 5 | #define MII_KSZ9021_EXT_OP_STRAP_OVERRIDE 0x102 6 | #define MII_KSZ9021_EXT_OP_STRAP_STATUS 0x103 7 | #define MII_KSZ9021_EXT_RGMII_CLOCK_SKEW 0x104 8 | #define MII_KSZ9021_EXT_RGMII_RX_DATA_SKEW 0x105 9 | #define MII_KSZ9021_EXT_RGMII_TX_DATA_SKEW 0x106 10 | #define MII_KSZ9021_EXT_ANALOG_TEST 0x107 11 | 12 | struct phy_device; 13 | int ksz9021_phy_extended_write(struct phy_device *phydev, int regnum, u16 val); 14 | int ksz9021_phy_extended_read(struct phy_device *phydev, int regnum); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /board/bf538f-ezkit/bf538f-ezkit.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) 2008 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | DECLARE_GLOBAL_DATA_PTR; 15 | 16 | int checkboard(void) 17 | { 18 | printf("Board: ADI BF538F EZ-Kit Lite board\n"); 19 | printf(" Support: http://blackfin.uclinux.org/\n"); 20 | return 0; 21 | } 22 | 23 | #ifdef CONFIG_SMC91111 24 | int board_eth_init(bd_t *bis) 25 | { 26 | return smc91111_initialize(0, CONFIG_SMC91111_BASE); 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /doc/README.ns9750dev: -------------------------------------------------------------------------------- 1 | U-Boot Port to the NS9750 DevKit from NetSilicon 2 | 3 | 1 Overview 4 | 2 Board Configuration 5 | 3 Installation 6 | 7 | 8 | 1 Overview 9 | ---------- 10 | 11 | This port supports these NS9750 features. 12 | 13 | o one UART 14 | 15 | 2 Board Configuration 16 | --------------------- 17 | 18 | Switches: 19 | SW10: 4 20 | SW11: 6,7 21 | SW16: 6,7,8 22 | SW17-SW20: 1 23 | SW4: 3, 6 24 | SW 1: 1 25 | SW2: 4 26 | SW3: 3 27 | SW8: 3 (rotated by 180 degree!!!!) 28 | 29 | Serial Console is Port B (bottom right port) 30 | 31 | 3 Installation 32 | -------------- 33 | 34 | Have fun, 35 | -- 36 | Markus Pietrek 37 | -------------------------------------------------------------------------------- /board/altera/nios2-generic/text_base.S: -------------------------------------------------------------------------------- 1 | /* 2 | * text_base 3 | * 4 | * (C) Copyright 2010, Thomas Chou 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License version 2 as 8 | * published by the Free Software Foundation. 9 | */ 10 | #include 11 | 12 | #ifdef CONFIG_SYS_MONITOR_BASE 13 | .text 14 | /* text base used in link script u-boot.lds */ 15 | .global text_base 16 | .equ text_base,CONFIG_SYS_MONITOR_BASE 17 | /* dummy func to let linker include this file */ 18 | .global text_base_hook 19 | text_base_hook: 20 | ret 21 | #endif 22 | -------------------------------------------------------------------------------- /include/linux/compiler-gcc3.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_COMPILER_H 2 | #error "Please don't include directly, include instead." 3 | #endif 4 | 5 | #if __GNUC_MINOR__ >= 3 6 | # define __used __attribute__((__used__)) 7 | #else 8 | # define __used __attribute__((__unused__)) 9 | #endif 10 | 11 | #if __GNUC_MINOR__ >= 4 12 | #define __must_check __attribute__((warn_unused_result)) 13 | #endif 14 | 15 | /* 16 | * A trick to suppress uninitialized variable warning without generating any 17 | * code 18 | */ 19 | #define uninitialized_var(x) x = x 20 | 21 | #define __always_inline inline __attribute__((always_inline)) 22 | -------------------------------------------------------------------------------- /include/bcd.h: -------------------------------------------------------------------------------- 1 | /* Permission is hereby granted to copy, modify and redistribute this code 2 | * in terms of the GNU Library General Public License, Version 2 or later, 3 | * at your option. 4 | */ 5 | 6 | /* inline functions to translate to/from binary and binary-coded decimal 7 | * (frequently found in RTC chips). 8 | */ 9 | 10 | #ifndef _BCD_H 11 | #define _BCD_H 12 | 13 | #include 14 | 15 | static inline unsigned int bcd2bin(u8 val) 16 | { 17 | return ((val) & 0x0f) + ((val) >> 4) * 10; 18 | } 19 | 20 | static inline u8 bin2bcd (unsigned int val) 21 | { 22 | return (((val / 10) << 4) | (val % 10)); 23 | } 24 | 25 | #endif /* _BCD_H */ 26 | -------------------------------------------------------------------------------- /drivers/misc/gpio_led.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Status LED driver based on GPIO access conventions of Linux 3 | * 4 | * Copyright (C) 2010 Thomas Chou 5 | * Licensed under the GPL-2 or later. 6 | */ 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | void __led_init(led_id_t mask, int state) 13 | { 14 | gpio_request(mask, "gpio_led"); 15 | gpio_direction_output(mask, state == STATUS_LED_ON); 16 | } 17 | 18 | void __led_set(led_id_t mask, int state) 19 | { 20 | gpio_set_value(mask, state == STATUS_LED_ON); 21 | } 22 | 23 | void __led_toggle(led_id_t mask) 24 | { 25 | gpio_set_value(mask, !gpio_get_value(mask)); 26 | } 27 | -------------------------------------------------------------------------------- /arch/blackfin/cpu/os_log.c: -------------------------------------------------------------------------------- 1 | /* 2 | * functions for handling OS log buffer 3 | * 4 | * Copyright (c) 2009 Analog Devices Inc. 5 | * 6 | * Licensed under the 2-clause BSD. 7 | */ 8 | 9 | #include 10 | 11 | #define OS_LOG_MAGIC 0xDEADBEEF 12 | #define OS_LOG_MAGIC_ADDR ((unsigned long *)0x4f0) 13 | #define OS_LOG_PTR_ADDR ((char **)0x4f4) 14 | 15 | bool bfin_os_log_check(void) 16 | { 17 | if (*OS_LOG_MAGIC_ADDR != OS_LOG_MAGIC) 18 | return false; 19 | *OS_LOG_MAGIC_ADDR = 0; 20 | return true; 21 | } 22 | 23 | void bfin_os_log_dump(void) 24 | { 25 | char *log = *OS_LOG_PTR_ADDR; 26 | while (*log) { 27 | puts(log); 28 | log += strlen(log) + 1; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /board/keymile/scripts/ramfs-common.txt: -------------------------------------------------------------------------------- 1 | addramfs=setenv bootargs "${bootargs} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}" 2 | actual_bank=-1 3 | altbootcmd=run ${subbootcmds} 4 | bootcmd=run ${subbootcmds} 5 | subbootcmds=tftpfdt tftpkernel setrootfsaddr tftpramfs flashargs add_default addpanic addramfs boot 6 | nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} 7 | configure=km_setboardid && saveenv && reset 8 | rootfsfile=${hostname}/rootfsImage 9 | setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value} 10 | tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage 11 | tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage 12 | -------------------------------------------------------------------------------- /arch/arm/include/asm/imx-common/mx5_video.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 3 | * Anatolij Gustschin, DENX Software Engineering, 4 | * 5 | * This program is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU General Public License as 7 | * published by the Free Software Foundation; either version 2 of 8 | * the License, or (at your option) any later version. 9 | */ 10 | #ifndef __MX5_VIDEO_H 11 | #define __MX5_VIDEO_H 12 | 13 | #ifdef CONFIG_VIDEO 14 | void lcd_enable(void); 15 | void setup_iomux_lcd(void); 16 | #else 17 | static inline void lcd_enable(void) { } 18 | static inline void setup_iomux_lcd(void) { } 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /arch/openrisc/include/asm/bitops/ffs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * OpenRISC Linux 3 | * 4 | * Copyright (C) 2010-2011 Jonas Bonn 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #ifndef __ASM_OPENRISC_FFS_H 13 | #define __ASM_OPENRISC_FFS_H 14 | 15 | static inline int ffs(int x) 16 | { 17 | int ret; 18 | 19 | __asm__ ("l.ff1 %0,%1" 20 | : "=r" (ret) 21 | : "r" (x)); 22 | 23 | return ret; 24 | } 25 | 26 | #endif /* __ASM_OPENRISC_FFS_H */ 27 | -------------------------------------------------------------------------------- /arch/openrisc/include/asm/bitops/fls.h: -------------------------------------------------------------------------------- 1 | /* 2 | * OpenRISC Linux 3 | * 4 | * Copyright (C) 2010-2011 Jonas Bonn 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #ifndef __ASM_OPENRISC_FLS_H 13 | #define __ASM_OPENRISC_FLS_H 14 | 15 | static inline int fls(int x) 16 | { 17 | int ret; 18 | 19 | __asm__ ("l.fl1 %0,%1" 20 | : "=r" (ret) 21 | : "r" (x)); 22 | 23 | return ret; 24 | } 25 | 26 | #endif /* __ASM_OPENRISC_FLS_H */ 27 | -------------------------------------------------------------------------------- /arch/sh/include/asm/cpu_sh7269.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_CPU_SH7269_H_ 2 | #define _ASM_CPU_SH7269_H_ 3 | 4 | /* Cache */ 5 | #define CCR1 0xFFFC1000 6 | #define CCR CCR1 7 | 8 | /* SCIF */ 9 | #define SCSMR_0 0xE8007000 10 | #define SCIF0_BASE SCSMR_0 11 | #define SCSMR_1 0xE8007800 12 | #define SCIF1_BASE SCSMR_1 13 | #define SCSMR_2 0xE8008000 14 | #define SCIF2_BASE SCSMR_2 15 | #define SCSMR_3 0xE8008800 16 | #define SCIF3_BASE SCSMR_3 17 | #define SCSMR_7 0xE800A800 18 | #define SCIF7_BASE SCSMR_7 19 | 20 | /* Timer(CMT) */ 21 | #define CMSTR 0xFFFEC000 22 | #define CMCSR_0 0xFFFEC002 23 | #define CMCNT_0 0xFFFEC004 24 | #define CMCOR_0 0xFFFEC006 25 | 26 | #endif /* _ASM_CPU_SH7269_H_ */ 27 | -------------------------------------------------------------------------------- /include/sha256.h: -------------------------------------------------------------------------------- 1 | #ifndef _SHA256_H 2 | #define _SHA256_H 3 | 4 | #define SHA256_SUM_LEN 32 5 | 6 | /* Reset watchdog each time we process this many bytes */ 7 | #define CHUNKSZ_SHA256 (64 * 1024) 8 | 9 | typedef struct { 10 | uint32_t total[2]; 11 | uint32_t state[8]; 12 | uint8_t buffer[64]; 13 | } sha256_context; 14 | 15 | void sha256_starts(sha256_context * ctx); 16 | void sha256_update(sha256_context *ctx, const uint8_t *input, uint32_t length); 17 | void sha256_finish(sha256_context * ctx, uint8_t digest[SHA256_SUM_LEN]); 18 | 19 | void sha256_csum_wd(const unsigned char *input, unsigned int ilen, 20 | unsigned char *output, unsigned int chunk_sz); 21 | 22 | #endif /* _SHA256_H */ 23 | -------------------------------------------------------------------------------- /board/toradex/colibri_t20-common/colibri_t20-common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Lucas Stach 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License as 6 | * published by the Free Software Foundation; either version 2 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | */ 15 | 16 | void colibri_t20_common_pin_mux_usb(void); 17 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf533/gpio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Analog Devices Inc. 3 | * Licensed under the GPL-2 or later. 4 | */ 5 | 6 | 7 | #ifndef _MACH_GPIO_H_ 8 | #define _MACH_GPIO_H_ 9 | 10 | #define MAX_BLACKFIN_GPIOS 16 11 | 12 | #define GPIO_PF0 0 13 | #define GPIO_PF1 1 14 | #define GPIO_PF2 2 15 | #define GPIO_PF3 3 16 | #define GPIO_PF4 4 17 | #define GPIO_PF5 5 18 | #define GPIO_PF6 6 19 | #define GPIO_PF7 7 20 | #define GPIO_PF8 8 21 | #define GPIO_PF9 9 22 | #define GPIO_PF10 10 23 | #define GPIO_PF11 11 24 | #define GPIO_PF12 12 25 | #define GPIO_PF13 13 26 | #define GPIO_PF14 14 27 | #define GPIO_PF15 15 28 | 29 | #define PORT_F GPIO_PF0 30 | 31 | #endif /* _MACH_GPIO_H_ */ 32 | -------------------------------------------------------------------------------- /include/u-boot/u-boot.lds.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Linker script helper macros 3 | * 4 | * Copyright (c) 2009 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #ifndef __U_BOOT_LDS__ 10 | #define __U_BOOT_LDS__ 11 | 12 | /* See if the linker version is at least the specified version */ 13 | #define LD_AT_LEAST(major, minor) \ 14 | ((major > LD_MAJOR) || (major == LD_MAJOR && minor <= LD_MINOR)) 15 | 16 | /* 17 | * Linker versions prior to 2.16 don't understand the builtin 18 | * functions SORT_BY_ALIGNMENT() and SORT_BY_NAME(), so disable these 19 | */ 20 | #if !LD_AT_LEAST(2, 16) 21 | # define SORT_BY_ALIGNMENT(x) x 22 | # define SORT_BY_NAME(x) x 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /board/a3000/README: -------------------------------------------------------------------------------- 1 | U-Boot for Artis SBC-A3000 2 | --------------------------- 3 | 4 | Artis SBC-A3000 has one flash socket that the user uses Intel 28F128J3A (16MB) 5 | or 28F064J3A (8MB) chips. 6 | 7 | In board's notation, bank 0 is the one at the address of 0xFF000000. 8 | bank 1 is the one at the address of 0xFF800000 9 | 10 | On power-up the processor jumps to the address of 0xFFF00100, the last 11 | megabyte of the bank 0 of flash. 12 | 13 | Thus, U-Boot is configured to reside in flash starting at the address of 14 | 0xFFF00000. The environment space is located in flash separately from 15 | U-Boot, at the address of 0xFFFE0000. 16 | 17 | There is a National ns83815 10/100M ethernet controller on-board. 18 | -------------------------------------------------------------------------------- /board/br4/br4.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) Switchfin Org. 5 | * 6 | * Copyright (c) 2005-2008 Analog Devices Inc. 7 | * 8 | * (C) Copyright 2000-2004 9 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 10 | * 11 | * Licensed under the GPL-2 or later. 12 | */ 13 | 14 | #include 15 | #include 16 | #include 17 | 18 | int checkboard(void) 19 | { 20 | printf("Board: Switchvoice BR4 Appliance\n"); 21 | printf(" Support: http://www.switchvoice.com/\n"); 22 | return 0; 23 | } 24 | 25 | #ifdef CONFIG_BFIN_MAC 26 | int board_eth_init(bd_t *bis) 27 | { 28 | return bfin_EMAC_initialize(bis); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /board/pr1/pr1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) Switchfin Org. 5 | * 6 | * Copyright (c) 2005-2008 Analog Devices Inc. 7 | * 8 | * (C) Copyright 2000-2004 9 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 10 | * 11 | * Licensed under the GPL-2 or later. 12 | */ 13 | 14 | #include 15 | #include 16 | #include 17 | 18 | int checkboard(void) 19 | { 20 | printf("Board: Switchvoice PR1 Appliance\n"); 21 | printf(" Support: http://www.switchvoice.com/\n"); 22 | return 0; 23 | } 24 | 25 | #ifdef CONFIG_BFIN_MAC 26 | int board_eth_init(bd_t *bis) 27 | { 28 | return bfin_EMAC_initialize(bis); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /lib/lzma/import_lzmasdk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | usage() { 4 | echo "Usage: $0 lzmaVERSION.tar.bz2" >&2 5 | echo >&2 6 | exit 1 7 | } 8 | 9 | if [ "$1" = "" ] ; then 10 | usage 11 | fi 12 | 13 | if [ ! -f $1 ] ; then 14 | echo "$1 doesn't exist!" >&2 15 | exit 1 16 | fi 17 | 18 | BASENAME=`basename $1 .tar.bz2` 19 | TMPDIR=/tmp/tmp_lib_$BASENAME 20 | FILES="C/LzmaDec.h 21 | C/Types.h 22 | C/LzmaDec.c 23 | history.txt 24 | lzma.txt" 25 | 26 | mkdir -p $TMPDIR 27 | echo "Untar $1 -> $TMPDIR" 28 | tar -jxf $1 -C $TMPDIR 29 | 30 | for i in $FILES; do 31 | echo Copying $TMPDIR/$i \-\> `basename $i` 32 | cp $TMPDIR/$i . 33 | chmod -x `basename $i` 34 | done 35 | 36 | echo "done!" 37 | -------------------------------------------------------------------------------- /doc/README.commands.itest: -------------------------------------------------------------------------------- 1 | A slow day today so here is a revised itest command with provisional 2 | support for comparing strings as well :-)) 3 | 4 | Now table driven to allow the operators 5 | -eq, -ne, -lt, -gt, -le, -ge, ==, !=, <>, <, >, <=, >= 6 | 7 | Uses the expected command modifier for integer compares of width 1, 2 or 8 | 4 bytes of .b, .w, .l and the new modifer of .s for a string compare. 9 | String comparison is over the length of the shorter, this hopefully 10 | avoids missing terminators when using an indirect pointer. 11 | 12 | eg. 13 | if itest.l *40000 == 12345678 then; .... 14 | if itest.w *40000 != 1234 then; .... 15 | if itest.b *40000 >= 12 then; .... 16 | if itest.s *40000 -eq hello then; .... 17 | -------------------------------------------------------------------------------- /include/bedbug/type.h: -------------------------------------------------------------------------------- 1 | #ifndef _TYPE_BEDBUG_H 2 | #define _TYPE_BEDBUG_H 3 | 4 | /* Supporting routines */ 5 | int bedbug_puts (const char *); 6 | void bedbug_init (void); 7 | void bedbug860_init (void); 8 | void do_bedbug_breakpoint (struct pt_regs *); 9 | void bedbug_main_loop (unsigned long, struct pt_regs *); 10 | 11 | 12 | typedef struct { 13 | int hw_debug_enabled; 14 | int stopped; 15 | int current_bp; 16 | struct pt_regs *regs; 17 | 18 | void (*do_break) (cmd_tbl_t *, int, int, char * const []); 19 | void (*break_isr) (struct pt_regs *); 20 | int (*find_empty) (void); 21 | int (*set) (int, unsigned long); 22 | int (*clear) (int); 23 | } CPU_DEBUG_CTX; 24 | 25 | 26 | #endif /* _TYPE_BEDBUG_H */ 27 | -------------------------------------------------------------------------------- /board/ti/omap1510inn/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002 3 | # Gary Jennejohn, DENX Software Engineering, 4 | # David Mueller, ELSOFT AG, 5 | # 6 | # (C) Copyright 2003 7 | # Texas Instruments, 8 | # Kshitij Gupta 9 | # 10 | # TI Innovator board with OMAP1510 (ARM925T) cpu 11 | # see http://www.ti.com/ for more information on Texas Insturments 12 | # 13 | # Innovator has 1 bank of 256 MB SDRAM 14 | # Physical Address: 15 | # 1000'0000 to 2000'0000 16 | # 17 | # 18 | # Linux-Kernel is expected to be at 1000'8000, entry 1000'8000 (mem base + reserved) 19 | # 20 | # we load ourself to 1108'0000 21 | # 22 | # 23 | 24 | 25 | CONFIG_SYS_TEXT_BASE = 0x11080000 26 | -------------------------------------------------------------------------------- /board/ti/omap730p2/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002 3 | # Gary Jennejohn, DENX Software Engineering, 4 | # David Mueller, ELSOFT AG, 5 | # 6 | # (C) Copyright 2003 7 | # Texas Instruments, 8 | # Kshitij Gupta 9 | # 10 | # TI Perseus 2 board with OMAP720 (ARM925EJS) cpu 11 | # see http://www.ti.com/ for more information on Texas Instruments 12 | # 13 | # Innovator has 1 bank of 256 MB SDRAM 14 | # Physical Address: 15 | # 1000'0000 to 2000'0000 16 | # 17 | # 18 | # Linux-Kernel is expected to be at 1000'8000, entry 1000'8000 19 | # (mem base + reserved) 20 | # 21 | # we load ourself to 1108'0000 22 | # 23 | # 24 | 25 | CONFIG_SYS_TEXT_BASE = 0x11080000 26 | -------------------------------------------------------------------------------- /arch/arm/cpu/arm1176/bcm2835/lowlevel_init.S: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2012 Stephen Warren 3 | * 4 | * See file CREDITS for list of people who contributed to this 5 | * project. 6 | * 7 | * This program is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU General Public License 9 | * version 2 as published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | */ 16 | 17 | .globl lowlevel_init 18 | lowlevel_init: 19 | mov pc, lr 20 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf537/ports.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Port Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_PORT__ 6 | #define __BFIN_PERIPHERAL_PORT__ 7 | 8 | /* PORT_MUX Masks */ 9 | #define PJSE 0x0001 10 | #define PJCE_MASK 0x0006 11 | #define PJCE_SPORT 0x0000 12 | #define PJCE_CAN 0x0001 13 | #define PJCE_SPI 0x0002 14 | #define PFDE 0x0008 15 | #define PFTE 0x0010 16 | #define PFS6E 0x0020 17 | #define PFS5E 0x0040 18 | #define PFS4E 0x0080 19 | #define PFFE 0x0100 20 | #define PGSE 0x0200 21 | #define PGRE 0x0400 22 | #define PGTE 0x0800 23 | 24 | #include "../mach-common/bits/ports-f.h" 25 | #include "../mach-common/bits/ports-g.h" 26 | #include "../mach-common/bits/ports-h.h" 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-common/bits/watchdog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Watchdog Masks 3 | */ 4 | 5 | #ifndef __BFIN_PERIPHERAL_WATCHDOG__ 6 | #define __BFIN_PERIPHERAL_WATCHDOG__ 7 | 8 | /* Watchdog Timer WDOG_CTL Register Masks */ 9 | 10 | #define WDEV 0x0006 /* event generated on roll over */ 11 | #define WDEV_RESET 0x0000 /* generate reset event on roll over */ 12 | #define WDEV_NMI 0x0002 /* generate NMI event on roll over */ 13 | #define WDEV_GPI 0x0004 /* generate GP IRQ on roll over */ 14 | #define WDEV_NONE 0x0006 /* no event on roll over */ 15 | #define WDEN 0x0FF0 /* enable watchdog */ 16 | #define WDDIS 0x0AD0 /* disable watchdog */ 17 | #define WDRO 0x8000 /* watchdog rolled over latch */ 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /board/bct-brettl2/cled.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cled.c - control color led 3 | * 4 | * Copyright (c) 2010 BCT Electronic GmbH 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | int do_cled(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) 15 | { 16 | ulong addr = 0x20000000 + 0x200000; /* AMS2 */ 17 | uchar data; 18 | 19 | if (argc < 2) 20 | return cmd_usage(cmdtp); 21 | 22 | data = simple_strtoul(argv[1], NULL, 10); 23 | outb(data, addr); 24 | 25 | printf("cled, write %02x\n", data); 26 | 27 | return 0; 28 | } 29 | 30 | U_BOOT_CMD(cled, 2, 0, do_cled, 31 | "set/clear color LED", 32 | ""); 33 | -------------------------------------------------------------------------------- /arch/arm/cpu/armv7/socfpga/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License as 6 | # published by the Free Software Foundation; either version 2 of 7 | # the License, or (at your option) any later version. 8 | # 9 | # This program is distributed "as is" WITHOUT ANY WARRANTY of any 10 | # kind, whether express or implied; without even the implied warranty 11 | # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | ifndef CONFIG_SPL_BUILD 15 | ALL-y += $(obj)u-boot.img 16 | endif 17 | -------------------------------------------------------------------------------- /doc/README.mini2440: -------------------------------------------------------------------------------- 1 | U-Boot for FriendlyARM Mini2440 (s3c2440) 2 | 3 | This file contains information for the port of U-Boot to FriendlyARM 4 | mini2440 5 | 6 | All information about the board can be found on : 7 | http://www.friendlyarm.net/products/mini2440 8 | 9 | To build u-boot : ./MAKEALL mini2440 10 | 11 | Overview : 12 | -------- 13 | FriendlyARM Mini 2440 SBC (Single-Board Computer) with 400 MHz Samsung S3C2440 14 | ARM9 processor. The board measures 100 x 100 mm, ideal for learning about ARM9 15 | systems. It's a low cost board. 16 | 17 | Boot Methods : 18 | ------------ 19 | Mini2440 can boot from NOR or NAND. 20 | 21 | Build : 22 | ----- 23 | ./MAKEALL mini2440 24 | 25 | or 26 | 27 | make mini2440_config 28 | make 29 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mem_map.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Common Blackfin memory map 3 | * 4 | * Copyright 2004-2009 Analog Devices Inc. 5 | * Licensed under the GPL-2 or later. 6 | */ 7 | 8 | #ifndef __BFIN_MEM_MAP_H__ 9 | #define __BFIN_MEM_MAP_H__ 10 | 11 | /* Every Blackfin so far has MMRs like this */ 12 | #ifndef COREMMR_BASE 13 | # define COREMMR_BASE 0xFFE00000 14 | #endif 15 | #ifndef SYSMMR_BASE 16 | # define SYSMMR_BASE 0xFFC00000 17 | #endif 18 | 19 | /* Every Blackfin so far has on-chip Scratch Pad SRAM like this */ 20 | #ifndef L1_SRAM_SCRATCH 21 | # define L1_SRAM_SCRATCH 0xFFB00000 22 | # define L1_SRAM_SCRATCH_SIZE 0x1000 23 | # define L1_SRAM_SCRATCH_END (L1_SRAM_SCRATCH + L1_SRAM_SCRATCH_SIZE) 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /arch/mips/include/asm/isadep.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Various ISA level dependent constants. 3 | * Most of the following constants reflect the different layout 4 | * of Coprocessor 0 registers. 5 | * 6 | * Copyright (c) 1998 Harald Koerfgen 7 | */ 8 | 9 | #ifndef __ASM_ISADEP_H 10 | #define __ASM_ISADEP_H 11 | 12 | #if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX) 13 | /* 14 | * R2000 or R3000 15 | */ 16 | 17 | /* 18 | * kernel or user mode? (CP0_STATUS) 19 | */ 20 | #define KU_MASK 0x08 21 | #define KU_USER 0x08 22 | #define KU_KERN 0x00 23 | 24 | #else 25 | /* 26 | * kernel or user mode? 27 | */ 28 | #define KU_MASK 0x18 29 | #define KU_USER 0x10 30 | #define KU_KERN 0x00 31 | 32 | #endif 33 | 34 | #endif /* __ASM_ISADEP_H */ 35 | -------------------------------------------------------------------------------- /board/ep8260/ep8260.h: -------------------------------------------------------------------------------- 1 | #ifndef __EP8260_H__ 2 | #define __EP8260_H__ 3 | 4 | typedef struct tt_ep_regs { 5 | volatile unsigned char bcsr0; 6 | volatile unsigned char bcsr1; 7 | volatile unsigned char bcsr2; 8 | volatile unsigned char bcsr3; 9 | volatile unsigned char bcsr4; 10 | volatile unsigned char bcsr5; 11 | volatile unsigned char bcsr6; 12 | volatile unsigned char bcsr7; 13 | volatile unsigned char bcsr8; 14 | volatile unsigned char bcsr9; 15 | volatile unsigned char bcsr10; 16 | volatile unsigned char bcsr11; 17 | volatile unsigned char bcsr12; 18 | volatile unsigned char bcsr13; 19 | volatile unsigned char bcsr14; 20 | volatile unsigned char bcsr15; 21 | } t_ep_regs; 22 | typedef t_ep_regs *tp_ep_regs; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /include/generated/generic-asm-offsets.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_OFFSETS_H__ 2 | #define __ASM_OFFSETS_H__ 3 | /* 4 | * DO NOT MODIFY. 5 | * 6 | * This file was generated by make-asm-offsets 7 | * 8 | */ 9 | 10 | #define GENERATED_GBL_DATA_SIZE (128) /* (sizeof(struct global_data) + 15) & ~15 */ 11 | #define GENERATED_BD_INFO_SIZE (32) /* (sizeof(struct bd_info) + 15) & ~15 */ 12 | #define GD_SIZE (128) /* sizeof(struct global_data) */ 13 | #define GD_BD (0) /* offsetof(struct global_data, bd) */ 14 | #define GD_RELOCADDR (52) /* offsetof(struct global_data, relocaddr) */ 15 | #define GD_RELOC_OFF (72) /* offsetof(struct global_data, reloc_off) */ 16 | #define GD_START_ADDR_SP (68) /* offsetof(struct global_data, start_addr_sp) */ 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf527/mem_map.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Common Blackfin memory map 3 | * 4 | * Copyright 2004-2009 Analog Devices Inc. 5 | * Licensed under the GPL-2 or later. 6 | */ 7 | 8 | #ifndef __BF52X_MEM_MAP_H__ 9 | #define __BF52X_MEM_MAP_H__ 10 | 11 | #define L1_DATA_A_SRAM (0xFF800000) 12 | #define L1_DATA_A_SRAM_SIZE (0x4000) 13 | #define L1_DATA_A_SRAM_END (L1_DATA_A_SRAM + L1_DATA_A_SRAM_SIZE) 14 | #define L1_DATA_B_SRAM (0xFF900000) 15 | #define L1_DATA_B_SRAM_SIZE (0x4000) 16 | #define L1_DATA_B_SRAM_END (L1_DATA_B_SRAM + L1_DATA_B_SRAM_SIZE) 17 | #define L1_INST_SRAM (0xFFA00000) 18 | #define L1_INST_SRAM_SIZE (0xC000) 19 | #define L1_INST_SRAM_END (L1_INST_SRAM + L1_INST_SRAM_SIZE) 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/mem_map.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Common Blackfin memory map 3 | * 4 | * Copyright 2004-2009 Analog Devices Inc. 5 | * Licensed under the GPL-2 or later. 6 | */ 7 | 8 | #ifndef __BF54X_MEM_MAP_H__ 9 | #define __BF54X_MEM_MAP_H__ 10 | 11 | #define L1_DATA_A_SRAM (0xFF800000) 12 | #define L1_DATA_A_SRAM_SIZE (0x4000) 13 | #define L1_DATA_A_SRAM_END (L1_DATA_A_SRAM + L1_DATA_A_SRAM_SIZE) 14 | #define L1_DATA_B_SRAM (0xFF900000) 15 | #define L1_DATA_B_SRAM_SIZE (0x4000) 16 | #define L1_DATA_B_SRAM_END (L1_DATA_B_SRAM + L1_DATA_B_SRAM_SIZE) 17 | #define L1_INST_SRAM (0xFFA00000) 18 | #define L1_INST_SRAM_SIZE (0xC000) 19 | #define L1_INST_SRAM_END (L1_INST_SRAM + L1_INST_SRAM_SIZE) 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /board/intercontrol/digsy_mtc/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # Author: Grzegorz Bernacki, Semihalf, gjb@semihalf.com 4 | # 5 | 6 | include $(TOPDIR)/config.mk 7 | 8 | LIB = $(obj)lib$(BOARD).o 9 | 10 | COBJS-y := $(BOARD).o cmd_mtc.o 11 | COBJS-$(CONFIG_VIDEO) += cmd_disp.o 12 | 13 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 14 | OBJS := $(addprefix $(obj),$(COBJS-y)) 15 | SOBJS := $(addprefix $(obj),$(SOBJS)) 16 | 17 | $(LIB): $(obj).depend $(OBJS) 18 | $(call cmd_link_o_target, $(OBJS)) 19 | 20 | ######################################################################### 21 | 22 | # defines $(obj).depend target 23 | include $(SRCTREE)/rules.mk 24 | 25 | sinclude $(obj).depend 26 | 27 | ######################################################################### 28 | -------------------------------------------------------------------------------- /fs/yaffs2/yaffs_yaffs1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 3 | * 4 | * Copyright (C) 2002-2011 Aleph One Ltd. 5 | * for Toby Churchill Ltd and Brightstar Engineering 6 | * 7 | * Created by Charles Manning 8 | * 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Lesser General Public License version 2.1 as 11 | * published by the Free Software Foundation. 12 | * 13 | * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. 14 | */ 15 | 16 | #ifndef __YAFFS_YAFFS1_H__ 17 | #define __YAFFS_YAFFS1_H__ 18 | 19 | #include "yaffs_guts.h" 20 | int yaffs1_scan(struct yaffs_dev *dev); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /arch/arm/cpu/arm926ejs/davinci/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012, Texas Instruments, Incorporated - http://www.ti.com/ 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License as 6 | # published by the Free Software Foundation; either version 2 of 7 | # the License, or (at your option) any later version. 8 | # 9 | # This program is distributed "as is" WITHOUT ANY WARRANTY of any 10 | # kind, whether express or implied; without even the implied warranty 11 | # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | ifndef CONFIG_SPL_BUILD 15 | ALL-$(CONFIG_SPL_FRAMEWORK) += $(obj)u-boot.ais 16 | endif 17 | -------------------------------------------------------------------------------- /fs/ubifs/crc16.h: -------------------------------------------------------------------------------- 1 | /* 2 | * crc16.h - CRC-16 routine 3 | * 4 | * Implements the standard CRC-16: 5 | * Width 16 6 | * Poly 0x8005 (x^16 + x^15 + x^2 + 1) 7 | * Init 0 8 | * 9 | * Copyright (c) 2005 Ben Gardner 10 | * 11 | * This source code is licensed under the GNU General Public License, 12 | * Version 2. See the file COPYING for more details. 13 | */ 14 | 15 | #ifndef __CRC16_H 16 | #define __CRC16_H 17 | 18 | #include 19 | 20 | extern u16 const crc16_table[256]; 21 | 22 | extern u16 crc16(u16 crc, const u8 *buffer, size_t len); 23 | 24 | static inline u16 crc16_byte(u16 crc, const u8 data) 25 | { 26 | return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff]; 27 | } 28 | 29 | #endif /* __CRC16_H */ 30 | -------------------------------------------------------------------------------- /tools/bddb/execute.php: -------------------------------------------------------------------------------- 1 | ?> 2 | 5 | // CSIRO Manufacturing Science and Technology, Preston Lab 6 | 7 | $serno=isset($_REQUEST['serno'])?$_REQUEST['serno']:''; 8 | 9 | $submit=isset($_REQUEST['submit'])?$_REQUEST['submit']:"[NOT SET]"; 10 | 11 | switch ($submit) { 12 | 13 | case "New": 14 | require("new.php"); 15 | break; 16 | 17 | case "Edit": 18 | require("edit.php"); 19 | break; 20 | 21 | case "Browse": 22 | require("browse.php"); 23 | break; 24 | 25 | case "Log": 26 | require("brlog.php"); 27 | break; 28 | 29 | default: 30 | require("badsubmit.php"); 31 | break; 32 | } 33 | ?> 34 | -------------------------------------------------------------------------------- /arch/arm/cpu/arm1176/bcm2835/init.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2012 Stephen Warren 3 | * 4 | * See file CREDITS for list of people who contributed to this 5 | * project. 6 | * 7 | * This program is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU General Public License 9 | * version 2 as published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | */ 16 | 17 | #include 18 | 19 | int arch_cpu_init(void) 20 | { 21 | icache_enable(); 22 | 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /board/bf527-sdp/bf527-sdp.c: -------------------------------------------------------------------------------- 1 | /* 2 | * U-boot - main board file 3 | * 4 | * Copyright (c) 2010 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | int checkboard(void) 15 | { 16 | printf("Board: ADI BF527 SDP board\n"); 17 | printf(" Support: http://blackfin.uclinux.org/\n"); 18 | 19 | /* Enable access to parallel flash */ 20 | gpio_request(GPIO_PG0, "parallel-flash"); 21 | gpio_direction_output(GPIO_PG0, 0); 22 | 23 | return 0; 24 | } 25 | 26 | int misc_init_r(void) 27 | { 28 | /* CLKIN Buffer Output Enable */ 29 | bfin_write_VR_CTL(bfin_read_VR_CTL() | CLKBUFOE); 30 | 31 | return 0; 32 | } 33 | -------------------------------------------------------------------------------- /doc/device-tree-bindings/README: -------------------------------------------------------------------------------- 1 | Device Tree Bindings Staging Area 2 | ================================= 3 | 4 | This directory contains device tree bindings for U-Boot. 5 | 6 | These follow along with Linux kernel bindings, with a few additions. By 7 | adding the files here, U-Boot patches can clearly show thees additions. 8 | This makes it easier for device tree people to review these additions in 9 | patches sent to the U-Boot mailing list. 10 | 11 | The intent IS to commit these files to U-Boot. Hopefully at some point 12 | the files will be stored in another repo (shared with Linux) which is 13 | brought in as needed. Changes here are intended to mirror changes in the 14 | Linux Documentation/devicetree/bindings/ directory. 15 | 16 | sjg@chromium.org 17 | 17-Jan-12 18 | -------------------------------------------------------------------------------- /board/genietv/genietv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * The GENIETV is using the following physical memorymap (copied from 3 | * the FADS configuration): 4 | * 5 | * ff020000 -> ff02ffff : pcmcia 6 | * ff010000 -> ff01ffff : BCSR connected to CS1, setup by 8xxROM 7 | * ff000000 -> ff00ffff : IMAP internal in the cpu 8 | * 02800000 -> 0287ffff : flash connected to CS0 9 | * 00000000 -> nnnnnnnn : sdram setup by U-Boot 10 | * 11 | * CS pins are connected as follows: 12 | * 13 | * CS0 -512Kb boot flash 14 | * CS1 - SDRAM #1 15 | * CS2 - SDRAM #2 16 | * CS3 - Flash #1 17 | * CS4 - Flash #2 18 | * CS5 - LON (if present) 19 | * CS6 - PCMCIA #1 20 | * CS7 - PCMCIA #2 21 | * 22 | * Ports are configured as follows: 23 | * 24 | * PA7 - SDRAM banks enable 25 | */ 26 | -------------------------------------------------------------------------------- /tools/bddb/badsubmit.php: -------------------------------------------------------------------------------- 1 | ?> 2 | 5 | // CSIRO Manufacturing Science and Technology, Preston Lab 6 | 7 | require("defs.php"); 8 | pg_head("$bddb_label - Unknown Submit Type"); 9 | ?> 10 |
11 | 12 | 13 | The form was submitted with an 14 | unknown SUBMIT type . 15 |

16 | Perhaps you typed the URL in directly? Click here to go to the 17 | home page of the . 18 |
19 |
20 |
21 | 24 | -------------------------------------------------------------------------------- /common/cmd_df.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Command for accessing DataFlash. 3 | * 4 | * Copyright (C) 2008 Atmel Corporation 5 | */ 6 | #include 7 | #include 8 | 9 | static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) 10 | { 11 | const char *cmd; 12 | 13 | /* need at least two arguments */ 14 | if (argc < 2) 15 | goto usage; 16 | 17 | cmd = argv[1]; 18 | 19 | if (strcmp(cmd, "init") == 0) { 20 | df_init(0, 0, 1000000); 21 | return 0; 22 | } 23 | 24 | if (strcmp(cmd, "info") == 0) { 25 | df_show_info(); 26 | return 0; 27 | } 28 | 29 | usage: 30 | return CMD_RET_USAGE; 31 | } 32 | 33 | U_BOOT_CMD( 34 | sf, 2, 1, do_serial_flash, 35 | "Serial flash sub-system", 36 | "probe [bus:]cs - init flash device on given SPI bus and CS") 37 | -------------------------------------------------------------------------------- /include/e500.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2003 Motorola,Inc. 3 | * Xianghua Xiao(x.xiao@motorola.com) 4 | */ 5 | 6 | #ifndef __E500_H__ 7 | #define __E500_H__ 8 | 9 | #ifndef __ASSEMBLY__ 10 | 11 | typedef struct 12 | { 13 | unsigned long freqProcessor[CONFIG_MAX_CPUS]; 14 | unsigned long freqSystemBus; 15 | unsigned long freqDDRBus; 16 | unsigned long freqLocalBus; 17 | unsigned long freqQE; 18 | #ifdef CONFIG_SYS_DPAA_FMAN 19 | unsigned long freqFMan[CONFIG_SYS_NUM_FMAN]; 20 | #endif 21 | #ifdef CONFIG_SYS_DPAA_QBMAN 22 | unsigned long freqQMAN; 23 | #endif 24 | #ifdef CONFIG_SYS_DPAA_PME 25 | unsigned long freqPME; 26 | #endif 27 | } MPC85xx_SYS_INFO; 28 | 29 | #endif /* _ASMLANGUAGE */ 30 | 31 | #define RESET_VECTOR 0xfffffffc 32 | 33 | #endif /* __E500_H__ */ 34 | -------------------------------------------------------------------------------- /arch/arm/include/asm/ptrace.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_ARM_PTRACE_H 2 | #define __ASM_ARM_PTRACE_H 3 | 4 | #define PTRACE_GETREGS 12 5 | #define PTRACE_SETREGS 13 6 | #define PTRACE_GETFPREGS 14 7 | #define PTRACE_SETFPREGS 15 8 | 9 | #define PTRACE_SETOPTIONS 21 10 | 11 | /* options set using PTRACE_SETOPTIONS */ 12 | #define PTRACE_O_TRACESYSGOOD 0x00000001 13 | 14 | #include 15 | 16 | #ifndef __ASSEMBLY__ 17 | #define pc_pointer(v) \ 18 | ((v) & ~PCMASK) 19 | 20 | #define instruction_pointer(regs) \ 21 | (pc_pointer((regs)->ARM_pc)) 22 | 23 | #ifdef __KERNEL__ 24 | extern void show_regs(struct pt_regs *); 25 | 26 | #define predicate(x) (x & 0xf0000000) 27 | #define PREDICATE_ALWAYS 0xe0000000 28 | 29 | #endif 30 | 31 | #endif /* __ASSEMBLY__ */ 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /arch/powerpc/include/asm/mc146818rtc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Machine dependent access functions for RTC registers. 3 | */ 4 | #ifndef __ASM_PPC_MC146818RTC_H 5 | #define __ASM_PPC_MC146818RTC_H 6 | 7 | #include 8 | 9 | #ifndef RTC_PORT 10 | #define RTC_PORT(x) (0x70 + (x)) 11 | #define RTC_ALWAYS_BCD 1 /* RTC operates in binary mode */ 12 | #endif 13 | 14 | /* 15 | * The yet supported machines all access the RTC index register via 16 | * an ISA port access but the way to access the date register differs ... 17 | */ 18 | #define CMOS_READ(addr) ({ \ 19 | outb_p((addr),RTC_PORT(0)); \ 20 | inb_p(RTC_PORT(1)); \ 21 | }) 22 | #define CMOS_WRITE(val, addr) ({ \ 23 | outb_p((addr),RTC_PORT(0)); \ 24 | outb_p((val),RTC_PORT(1)); \ 25 | }) 26 | 27 | #endif /* __ASM_PPC_MC146818RTC_H */ 28 | -------------------------------------------------------------------------------- /board/ait/cam_enc_4xx/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # AIT cam_enc_4xx board 3 | # cam_enc_4xx board has 1 bank of 256 MB DDR RAM 4 | # Physical Address: 8000'0000 to 9000'0000 5 | # 6 | # Linux Kernel is expected to be at 8000'8000, entry 8000'8000 7 | # (mem base + reserved) 8 | # 9 | 10 | #Provide at least 16MB spacing between us and the Linux Kernel image 11 | PAD_TO := 12320 12 | UBL_CONFIG = $(SRCTREE)/board/$(BOARDDIR)/ublimage.cfg 13 | ifndef CONFIG_SPL_BUILD 14 | ALL-y += $(obj)u-boot.ubl 15 | else 16 | # as SPL_TEXT_BASE is not page-aligned, we need for some 17 | # linkers the -n flag (Do not page align data), to prevent 18 | # the following error message: 19 | # arm-linux-ld: u-boot-spl: Not enough room for program headers, try linking 20 | # with -N 21 | LDFLAGS_u-boot-spl += -n 22 | endif 23 | -------------------------------------------------------------------------------- /net/ping.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copied from Linux Monitor (LiMon) - Networking. 3 | * 4 | * Copyright 1994 - 2000 Neil Russell. 5 | * (See License) 6 | * Copyright 2000 Roland Borde 7 | * Copyright 2000 Paolo Scaffardi 8 | * Copyright 2000-2002 Wolfgang Denk, wd@denx.de 9 | */ 10 | 11 | #ifndef __PING_H__ 12 | #define __PING_H__ 13 | 14 | #include 15 | #include 16 | 17 | /* 18 | * Initialize ping (beginning of netloop) 19 | */ 20 | void ping_start(void); 21 | 22 | /* 23 | * Deal with the receipt of a ping packet 24 | * 25 | * @param et Ethernet header in packet 26 | * @param ip IP header in the same packet 27 | * @param len Packet length 28 | */ 29 | void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len); 30 | 31 | #endif /* __PING_H__ */ 32 | -------------------------------------------------------------------------------- /board/renesas/rsk7264/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 Renesas Electronics Europe Ltd. 3 | # 4 | # This file is released under the terms of GPL v2 and any later version. 5 | # See the file COPYING in the root directory of the source tree for details. 6 | 7 | include $(TOPDIR)/config.mk 8 | 9 | LIB = lib$(BOARD).o 10 | 11 | OBJS := rsk7264.o 12 | SOBJS := lowlevel_init.o 13 | 14 | LIB := $(addprefix $(obj),$(LIB)) 15 | OBJS := $(addprefix $(obj),$(OBJS)) 16 | SOBJS := $(addprefix $(obj),$(SOBJS)) 17 | 18 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) 19 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) 20 | 21 | ######################################################################### 22 | 23 | # defines $(obj).depend target 24 | include $(SRCTREE)/rules.mk 25 | 26 | sinclude $(obj).depend 27 | -------------------------------------------------------------------------------- /include/dm9000.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NOTE: DAVICOM DM9000 ethernet driver interface 3 | * 4 | * Authors: Remy Bohmer 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either version 9 | * 2 of the License, or (at your option) any later version. 10 | */ 11 | #ifndef __DM9000_H__ 12 | #define __DM9000_H__ 13 | 14 | /****************** function prototypes **********************/ 15 | #if !defined(CONFIG_DM9000_NO_SROM) 16 | void dm9000_write_srom_word(int offset, u16 val); 17 | void dm9000_read_srom_word(int offset, u8 *to); 18 | #endif 19 | 20 | #endif /* __DM9000_H__ */ 21 | -------------------------------------------------------------------------------- /doc/README.SNTP: -------------------------------------------------------------------------------- 1 | To use SNTP support, add define CONFIG_CMD_SNTP to the 2 | configuration file of the board. 3 | 4 | The "sntp" command gets network time from NTP time server and 5 | syncronize RTC of the board. This command needs the command line 6 | parameter of server's IP address or environment variable 7 | "ntpserverip". The network time is sent as UTC. So if you want to 8 | set local time to RTC, set the offset in second from UTC to the 9 | environment variable "time offset". 10 | 11 | If the DHCP server provides time server's IP or time offset, you 12 | don't need to set the above environment variables yourself. 13 | 14 | Current limitations of SNTP support: 15 | 1. The roundtrip time is ignored. 16 | 2. Only the 1st NTP server IP, in the option ntp-servers of DHCP, will 17 | be used. 18 | -------------------------------------------------------------------------------- /doc/uImage.FIT/kernel.its: -------------------------------------------------------------------------------- 1 | /* 2 | * Simple U-boot uImage source file containing a single kernel 3 | */ 4 | 5 | /dts-v1/; 6 | 7 | / { 8 | description = "Simple image with single Linux kernel"; 9 | #address-cells = <1>; 10 | 11 | images { 12 | kernel@1 { 13 | description = "Vanilla Linux kernel"; 14 | data = /incbin/("./vmlinux.bin.gz"); 15 | type = "kernel"; 16 | arch = "ppc"; 17 | os = "linux"; 18 | compression = "gzip"; 19 | load = <00000000>; 20 | entry = <00000000>; 21 | hash@1 { 22 | algo = "crc32"; 23 | }; 24 | hash@2 { 25 | algo = "sha1"; 26 | }; 27 | }; 28 | }; 29 | 30 | configurations { 31 | default = "config@1"; 32 | config@1 { 33 | description = "Boot Linux kernel"; 34 | kernel = "kernel@1"; 35 | }; 36 | }; 37 | }; 38 | -------------------------------------------------------------------------------- /arch/microblaze/include/asm/gpio.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_MICROBLAZE_GPIO_H_ 2 | #define _ASM_MICROBLAZE_GPIO_H_ 3 | 4 | #include 5 | 6 | static inline int gpio_request(unsigned gpio, const char *label) 7 | { 8 | return 0; 9 | } 10 | 11 | static inline int gpio_free(unsigned gpio) 12 | { 13 | return 0; 14 | } 15 | 16 | static inline int gpio_direction_input(unsigned gpio) 17 | { 18 | return 0; 19 | } 20 | 21 | static inline int gpio_direction_output(unsigned gpio, int value) 22 | { 23 | return 0; 24 | } 25 | 26 | static inline int gpio_get_value(unsigned gpio) 27 | { 28 | return 0; 29 | } 30 | 31 | static inline int gpio_set_value(unsigned gpio, int value) 32 | { 33 | return 0; 34 | } 35 | 36 | static inline int gpio_is_valid(int number) 37 | { 38 | return 0; 39 | } 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /board/LaCie/common/common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 Simon Guinot 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License as 6 | * published by the Free Software Foundation; either version 2 of 7 | * the License, or (at your option) any later version. 8 | */ 9 | 10 | #ifndef _LACIE_COMMON_H 11 | #define _LACIE_COMMON_H 12 | 13 | #if defined(CONFIG_CMD_NET) && defined(CONFIG_RESET_PHY_R) 14 | void mv_phy_88e1116_init(const char *name, u16 phyaddr); 15 | void mv_phy_88e1318_init(const char *name, u16 phyaddr); 16 | #endif 17 | #if defined(CONFIG_CMD_I2C) && defined(CONFIG_SYS_I2C_EEPROM_ADDR) 18 | int lacie_read_mac_address(uchar *mac); 19 | #endif 20 | 21 | #endif /* _LACIE_COMMON_H */ 22 | -------------------------------------------------------------------------------- /board/qemu-mips/lowlevel_init.S: -------------------------------------------------------------------------------- 1 | /* Memory sub-system initialization code */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | .text 8 | .set noreorder 9 | .set mips32 10 | 11 | .globl lowlevel_init 12 | lowlevel_init: 13 | 14 | /* 15 | * Step 2) Establish Status Register 16 | * (set BEV, clear ERL, clear EXL, clear IE) 17 | */ 18 | li t1, 0x00400000 19 | mtc0 t1, CP0_STATUS 20 | 21 | /* 22 | * Step 3) Establish CP0 Config0 23 | * (set K0=3) 24 | */ 25 | li t1, 0x00000003 26 | mtc0 t1, CP0_CONFIG 27 | 28 | /* 29 | * Step 7) Establish Cause 30 | * (set IV bit) 31 | */ 32 | li t1, 0x00800000 33 | mtc0 t1, CP0_CAUSE 34 | 35 | /* Establish Wired (and Random) */ 36 | mtc0 zero, CP0_WIRED 37 | nop 38 | 39 | jr ra 40 | nop 41 | -------------------------------------------------------------------------------- /doc/device-tree-bindings/exynos/isp-spi.txt: -------------------------------------------------------------------------------- 1 | Exynos ISP SPI Subsystem 2 | 3 | The device node for ISP SPI subsytem. 4 | Since Peripheral id in EXYNOS is decoded based on Interrupts, currently 5 | ISP SPI have no individual interrupts hence we add ad dummy interrupt node 6 | which will have a value beyond the maximum number of interrupts exynos5 can 7 | support. 8 | 9 | Required properties : 10 | - compatible : Should be "samsung,exynos-spi" for spi. 11 | - reg : Base adrress of the the subsystem. 12 | - interrupts : A value which is beyond the maximum number of interrupts 13 | exynos5 can support. 14 | 15 | Example: 16 | spi@131a0000 { 17 | #address-cells = <1>; 18 | #size-cells = <0>; 19 | compatible = "samsung,exynos-spi"; 20 | reg = <0x131a0000 0x30>; 21 | interrupts = <0 129 0>; 22 | }; 23 | -------------------------------------------------------------------------------- /board/freescale/mx25pdk/lowlevel_init.S: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Freescale Semiconductor 3 | * 4 | * See file CREDITS for list of people who contributed to this 5 | * project. 6 | * 7 | * This program is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU General Public License as 9 | * published by the Free Software Foundation; either version 2 of 10 | * the License, or (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | */ 17 | 18 | .globl lowlevel_init 19 | lowlevel_init: 20 | 21 | mov pc, lr 22 | -------------------------------------------------------------------------------- /board/rpxsuper/rpxsuper.h: -------------------------------------------------------------------------------- 1 | #ifndef __RPX8260_H__ 2 | #define __RPX8260_H__ 3 | 4 | typedef struct tt_rpx_regs 5 | { 6 | volatile unsigned char bcsr0; 7 | volatile unsigned char bcsr1; 8 | volatile unsigned char bcsr2; 9 | volatile unsigned char bcsr3; 10 | volatile unsigned char bcsr4; 11 | volatile unsigned char bcsr5; 12 | volatile unsigned char bcsr6; 13 | volatile unsigned char bcsr7; 14 | volatile unsigned char bcsr8; 15 | volatile unsigned char bcsr9; 16 | volatile unsigned char bcsr10; 17 | volatile unsigned char bcsr11; 18 | volatile unsigned char bcsr12; 19 | volatile unsigned char bcsr13; 20 | volatile unsigned char bcsr14; 21 | volatile unsigned char bcsr15; 22 | } t_rpx_regs; 23 | typedef t_rpx_regs* tp_rpx_regs; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /board/freescale/p1022ds/law.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Freescale Semiconductor, Inc. 3 | * Authors: Srikanth Srinivasan 4 | * Timur Tabi 5 | * 6 | * This program is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by the Free 8 | * Software Foundation; either version 2 of the License, or (at your option) 9 | * any later version. 10 | */ 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | struct law_entry law_table[] = { 17 | SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC), 18 | SET_LAW(PIXIS_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_LBC), 19 | }; 20 | 21 | int num_law_entries = ARRAY_SIZE(law_table); 22 | -------------------------------------------------------------------------------- /board/gm/gm8126/flash_new.h: -------------------------------------------------------------------------------- 1 | // 2 | 3 | /*----------------------------------------------------------------------- 4 | * Device IDs 5 | */ 6 | #define NUMONYX_MANUFACT 0x00890089 /* NUMONYX manuf. ID in D23..D16, D7..D0 */ 7 | 8 | #define FLASH_NMX256EW 0x0022 /* Numonyx M29EW256 (256M = 128K x 256) */ 9 | #define FLASH_NMX512EW 0x0023 /* Numonyx M29EW512 (512M = 128K x 512) */ 10 | #define FLASH_NMX01AEW 0x0028 /* Numonyx M29EW01A (01G = 128K x 1024) */ 11 | #define FLASH_NMX 0x227E /* Numonyx DevID for Spansion like --> AMD_ID_MIRROR */ 12 | 13 | 14 | 15 | /* manufacturer offsets 16 | */ 17 | #define FLASH_MAN_NUMONYX 0x00600000 /* Numonyx */ 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | #define FLASH_STM320DB 0x00CB /* STM M29W320DB (4M = 64K x 64, bottom)*/ 26 | -------------------------------------------------------------------------------- /board/gm/gm8210/flash_new.h: -------------------------------------------------------------------------------- 1 | // 2 | 3 | /*----------------------------------------------------------------------- 4 | * Device IDs 5 | */ 6 | #define NUMONYX_MANUFACT 0x00890089 /* NUMONYX manuf. ID in D23..D16, D7..D0 */ 7 | 8 | #define FLASH_NMX256EW 0x0022 /* Numonyx M29EW256 (256M = 128K x 256) */ 9 | #define FLASH_NMX512EW 0x0023 /* Numonyx M29EW512 (512M = 128K x 512) */ 10 | #define FLASH_NMX01AEW 0x0028 /* Numonyx M29EW01A (01G = 128K x 1024) */ 11 | #define FLASH_NMX 0x227E /* Numonyx DevID for Spansion like --> AMD_ID_MIRROR */ 12 | 13 | 14 | 15 | /* manufacturer offsets 16 | */ 17 | #define FLASH_MAN_NUMONYX 0x00600000 /* Numonyx */ 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | #define FLASH_STM320DB 0x00CB /* STM M29W320DB (4M = 64K x 64, bottom)*/ 26 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF542_cdef.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-cdef-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_CDEF_ADSP_BF542_proc__ 7 | #define __BFIN_CDEF_ADSP_BF542_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_cdef.h" 10 | 11 | #include "ADSP-EDN-BF542-extended_cdef.h" 12 | 13 | #define bfin_read_CHIPID() bfin_read32(CHIPID) 14 | #define bfin_write_CHIPID(val) bfin_write32(CHIPID, val) 15 | #define bfin_read_SWRST() bfin_read16(SWRST) 16 | #define bfin_write_SWRST(val) bfin_write16(SWRST, val) 17 | #define bfin_read_SYSCR() bfin_read16(SYSCR) 18 | #define bfin_write_SYSCR(val) bfin_write16(SYSCR, val) 19 | 20 | #endif /* __BFIN_CDEF_ADSP_BF542_proc__ */ 21 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF544_cdef.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-cdef-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_CDEF_ADSP_BF544_proc__ 7 | #define __BFIN_CDEF_ADSP_BF544_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_cdef.h" 10 | 11 | #include "ADSP-EDN-BF544-extended_cdef.h" 12 | 13 | #define bfin_read_CHIPID() bfin_read32(CHIPID) 14 | #define bfin_write_CHIPID(val) bfin_write32(CHIPID, val) 15 | #define bfin_read_SWRST() bfin_read16(SWRST) 16 | #define bfin_write_SWRST(val) bfin_write16(SWRST, val) 17 | #define bfin_read_SYSCR() bfin_read16(SYSCR) 18 | #define bfin_write_SYSCR(val) bfin_write16(SYSCR, val) 19 | 20 | #endif /* __BFIN_CDEF_ADSP_BF544_proc__ */ 21 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF547_cdef.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-cdef-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_CDEF_ADSP_BF547_proc__ 7 | #define __BFIN_CDEF_ADSP_BF547_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_cdef.h" 10 | 11 | #include "ADSP-EDN-BF547-extended_cdef.h" 12 | 13 | #define bfin_read_CHIPID() bfin_read32(CHIPID) 14 | #define bfin_write_CHIPID(val) bfin_write32(CHIPID, val) 15 | #define bfin_read_SWRST() bfin_read16(SWRST) 16 | #define bfin_write_SWRST(val) bfin_write16(SWRST, val) 17 | #define bfin_read_SYSCR() bfin_read16(SYSCR) 18 | #define bfin_write_SYSCR(val) bfin_write16(SYSCR, val) 19 | 20 | #endif /* __BFIN_CDEF_ADSP_BF547_proc__ */ 21 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF548_cdef.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-cdef-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_CDEF_ADSP_BF548_proc__ 7 | #define __BFIN_CDEF_ADSP_BF548_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_cdef.h" 10 | 11 | #include "ADSP-EDN-BF548-extended_cdef.h" 12 | 13 | #define bfin_read_CHIPID() bfin_read32(CHIPID) 14 | #define bfin_write_CHIPID(val) bfin_write32(CHIPID, val) 15 | #define bfin_read_SWRST() bfin_read16(SWRST) 16 | #define bfin_write_SWRST(val) bfin_write16(SWRST, val) 17 | #define bfin_read_SYSCR() bfin_read16(SYSCR) 18 | #define bfin_write_SYSCR(val) bfin_write16(SYSCR, val) 19 | 20 | #endif /* __BFIN_CDEF_ADSP_BF548_proc__ */ 21 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/mach-bf548/BF549_cdef.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE 2 | * Automatically generated by generate-cdef-headers.xsl 3 | * DO NOT EDIT THIS FILE 4 | */ 5 | 6 | #ifndef __BFIN_CDEF_ADSP_BF549_proc__ 7 | #define __BFIN_CDEF_ADSP_BF549_proc__ 8 | 9 | #include "../mach-common/ADSP-EDN-core_cdef.h" 10 | 11 | #include "ADSP-EDN-BF549-extended_cdef.h" 12 | 13 | #define bfin_read_CHIPID() bfin_read32(CHIPID) 14 | #define bfin_write_CHIPID(val) bfin_write32(CHIPID, val) 15 | #define bfin_read_SWRST() bfin_read16(SWRST) 16 | #define bfin_write_SWRST(val) bfin_write16(SWRST, val) 17 | #define bfin_read_SYSCR() bfin_read16(SYSCR) 18 | #define bfin_write_SYSCR(val) bfin_write16(SYSCR, val) 19 | 20 | #endif /* __BFIN_CDEF_ADSP_BF549_proc__ */ 21 | -------------------------------------------------------------------------------- /arch/blackfin/include/asm/net.h: -------------------------------------------------------------------------------- 1 | /* 2 | * net.h - misc Blackfin network helpers 3 | * 4 | * Copyright (c) 2008-2009 Analog Devices Inc. 5 | * 6 | * Licensed under the GPL-2 or later. 7 | */ 8 | 9 | #ifndef __ASM_BFIN_RAND_MAC__ 10 | #define __ASM_BFIN_RAND_MAC__ 11 | 12 | /* If the board does not have a real MAC assigned to it, then generate a 13 | * locally administrated pseudo-random one based on CYCLES and compile date. 14 | */ 15 | static inline void bfin_gen_rand_mac(uchar *mac_addr) 16 | { 17 | /* make something up */ 18 | const char s[] = __DATE__; 19 | size_t i; 20 | u32 cycles; 21 | for (i = 0; i < 6; ++i) { 22 | asm("%0 = CYCLES;" : "=r" (cycles)); 23 | mac_addr[i] = cycles ^ s[i]; 24 | } 25 | mac_addr[0] = (mac_addr[0] | 0x02) & ~0x01; /* make it local unicast */ 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /doc/device-tree-bindings/i2c/tegra20-i2c.txt: -------------------------------------------------------------------------------- 1 | (Placeholder note while we locate the kernel Tegra20 bindings) 2 | 3 | Added in U-Boot: 4 | 5 | Required properties: 6 | - clocks : Two clocks must be given, each as a phandle to the Tegra's 7 | CAR node and the clock number as a parameter: 8 | - the I2C clock to use for the peripheral 9 | - the pll_p_out3 clock, which can be used for fast operation. This 10 | does not change and is the same for all I2C nodes. 11 | 12 | Example: 13 | (TODO: merge with existing example): 14 | 15 | i2c@7000c400 { 16 | #address-cells = <1>; 17 | #size-cells = <0>; 18 | compatible = "nvidia,tegra20-i2c"; 19 | reg = <0x7000C400 0x100>; 20 | interrupts = < 116 >; 21 | /* PERIPH_ID_I2C2, PLL_P_OUT3 */ 22 | clocks = <&tegra_car 54>, <&tegra_car 124>; 23 | }; 24 | -------------------------------------------------------------------------------- /arch/arm/cpu/armv7/am33xx/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License as 6 | # published by the Free Software Foundation; either version 2 of 7 | # the License, or (at your option) any later version. 8 | # 9 | # This program is distributed "as is" WITHOUT ANY WARRANTY of any 10 | # kind, whether express or implied; without even the implied warranty 11 | # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | ifdef CONFIG_SPL_BUILD 15 | ALL-y += $(OBJTREE)/MLO 16 | ALL-$(CONFIG_SPL_SPI_SUPPORT) += $(OBJTREE)/MLO.byteswap 17 | else 18 | ALL-y += $(obj)u-boot.img 19 | endif 20 | -------------------------------------------------------------------------------- /arch/nios2/include/asm/bitops/ffs.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_GENERIC_BITOPS_FFS_H_ 2 | #define _ASM_GENERIC_BITOPS_FFS_H_ 3 | 4 | /** 5 | * ffs - find first bit set 6 | * @x: the word to search 7 | * 8 | * This is defined the same way as 9 | * the libc and compiler builtin ffs routines, therefore 10 | * differs in spirit from the above ffz (man ffs). 11 | */ 12 | static inline int ffs(int x) 13 | { 14 | int r = 1; 15 | 16 | if (!x) 17 | return 0; 18 | if (!(x & 0xffff)) { 19 | x >>= 16; 20 | r += 16; 21 | } 22 | if (!(x & 0xff)) { 23 | x >>= 8; 24 | r += 8; 25 | } 26 | if (!(x & 0xf)) { 27 | x >>= 4; 28 | r += 4; 29 | } 30 | if (!(x & 3)) { 31 | x >>= 2; 32 | r += 2; 33 | } 34 | if (!(x & 1)) { 35 | x >>= 1; 36 | r += 1; 37 | } 38 | return r; 39 | } 40 | 41 | #endif /* _ASM_GENERIC_BITOPS_FFS_H_ */ 42 | -------------------------------------------------------------------------------- /arch/sh/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_SH_UNALIGNED_H 2 | #define _ASM_SH_UNALIGNED_H 3 | 4 | /* Copy from linux-kernel. */ 5 | 6 | #ifdef CONFIG_CPU_SH4A 7 | /* SH-4A can handle unaligned loads in a relatively neutered fashion. */ 8 | #include 9 | #else 10 | /* Otherwise, SH can't handle unaligned accesses. */ 11 | #include 12 | #if defined(__BIG_ENDIAN__) 13 | #define get_unaligned __get_unaligned_be 14 | #define put_unaligned __put_unaligned_be 15 | #elif defined(__LITTLE_ENDIAN__) 16 | #define get_unaligned __get_unaligned_le 17 | #define put_unaligned __put_unaligned_le 18 | #endif 19 | 20 | #include 21 | #include 22 | #include 23 | #endif 24 | 25 | #endif /* _ASM_SH_UNALIGNED_H */ 26 | -------------------------------------------------------------------------------- /board/renesas/rsk7269/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012 Renesas Electronics Europe Ltd. 3 | # Copyright (C) 2012 Phil Edworthy 4 | # 5 | # This file is released under the terms of GPL v2 and any later version. 6 | # See the file COPYING in the root directory of the source tree for details. 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = lib$(BOARD).o 11 | 12 | OBJS := rsk7269.o 13 | SOBJS := lowlevel_init.o 14 | 15 | LIB := $(addprefix $(obj),$(LIB)) 16 | OBJS := $(addprefix $(obj),$(OBJS)) 17 | SOBJS := $(addprefix $(obj),$(SOBJS)) 18 | 19 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) 20 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) 21 | 22 | ######################################################################### 23 | 24 | # defines $(obj).depend target 25 | include $(SRCTREE)/rules.mk 26 | 27 | sinclude $(obj).depend 28 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsalOs.h: -------------------------------------------------------------------------------- 1 | #ifndef IxOsalOs_H 2 | #define IxOsalOs_H 3 | 4 | #ifndef IX_OSAL_CACHED 5 | #error "Uncached memory not supported in linux environment" 6 | #endif 7 | 8 | static inline unsigned long __v2p(unsigned long v) 9 | { 10 | if (v < 0x40000000) 11 | return (v & 0xfffffff); 12 | else 13 | return v; 14 | } 15 | 16 | #define IX_OSAL_OS_MMU_VIRT_TO_PHYS(addr) __v2p((u32)addr) 17 | #define IX_OSAL_OS_MMU_PHYS_TO_VIRT(addr) (addr) 18 | 19 | /* 20 | * Data cache not enabled (hopefully) 21 | */ 22 | #define IX_OSAL_OS_CACHE_INVALIDATE(addr, size) 23 | #define IX_OSAL_OS_CACHE_FLUSH(addr, size) 24 | #define HAL_DCACHE_INVALIDATE(addr, size) 25 | #define HAL_DCACHE_FLUSH(addr, size) 26 | 27 | #define __ixp42X /* sr: U-Boot needs this define */ 28 | 29 | #endif /* IxOsalOs_H */ 30 | 31 | -------------------------------------------------------------------------------- /net/tftp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LiMon - BOOTP/TFTP. 3 | * 4 | * Copyright 1994, 1995, 2000 Neil Russell. 5 | * Copyright 2011 Comelit Group SpA 6 | * Luca Ceresoli 7 | * (See License) 8 | */ 9 | 10 | #ifndef __TFTP_H__ 11 | #define __TFTP_H__ 12 | 13 | /**********************************************************************/ 14 | /* 15 | * Global functions and variables. 16 | */ 17 | 18 | /* tftp.c */ 19 | void TftpStart(enum proto_t protocol); /* Begin TFTP get/put */ 20 | 21 | #ifdef CONFIG_CMD_TFTPSRV 22 | extern void TftpStartServer(void); /* Wait for incoming TFTP put */ 23 | #endif 24 | 25 | extern ulong TftpRRQTimeoutMSecs; 26 | extern int TftpRRQTimeoutCountMax; 27 | 28 | /**********************************************************************/ 29 | 30 | #endif /* __TFTP_H__ */ 31 | -------------------------------------------------------------------------------- /tools/scripts/make-asm-offsets: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Adapted from Linux kernel's "Kbuild": 4 | # commit 1cdf25d704f7951d02a04064c97db547d6021872 5 | # Author: Christoph Lameter 6 | 7 | mkdir -p $(dirname $2) 8 | 9 | # Default sed regexp - multiline due to syntax constraints 10 | SED_CMD="/^->/{s:->#\(.*\):/* \1 */:; \ 11 | s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 (\2) /* \3 */:; \ 12 | s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ 13 | s:->::; p;}" 14 | 15 | (set -e 16 | echo "#ifndef __ASM_OFFSETS_H__" 17 | echo "#define __ASM_OFFSETS_H__" 18 | echo "/*" 19 | echo " * DO NOT MODIFY." 20 | echo " *" 21 | echo " * This file was generated by $(basename $0)" 22 | echo " *" 23 | echo " */" 24 | echo "" 25 | sed -ne "${SED_CMD}" $1 26 | echo "" 27 | echo "#endif" ) > $2 28 | -------------------------------------------------------------------------------- /board/ti/omap5912osk/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002-2004 3 | # Gary Jennejohn, DENX Software Engineering, 4 | # David Mueller, ELSOFT AG, 5 | # 6 | # (C) Copyright 2003 7 | # Texas Instruments, 8 | # Kshitij Gupta 9 | # 10 | # (C) Copyright 2004 11 | # Texas Instruments, 12 | # Rishi Bhattacharya 13 | # 14 | # TI OSK board with OMAP5912 (ARM925EJS) cpu 15 | # see http://www.ti.com/ for more information on Texas Instruments 16 | # 17 | # OSK has 1 bank of 256 MB SDRAM 18 | # Physical Address: 19 | # 1000'0000 to 2000'0000 20 | # 21 | # 22 | # Linux-Kernel is expected to be at 1000'8000, entry 1000'8000 23 | # (mem base + reserved) 24 | # 25 | # we load ourself to 1108'0000 26 | # 27 | # 28 | 29 | 30 | CONFIG_SYS_TEXT_BASE = 0x11080000 31 | -------------------------------------------------------------------------------- /tools/xway-swap-bytes.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #ifndef BUFSIZ 7 | # define BUFSIZ 4096 8 | #endif 9 | 10 | #undef BUFSIZ 11 | # define BUFSIZ 64 12 | int main (void) 13 | { 14 | short ibuff[BUFSIZ], obuff[BUFSIZ]; 15 | int rc, i, len; 16 | 17 | while ((rc = read (0, ibuff, sizeof (ibuff))) > 0) { 18 | memset (obuff, 0, sizeof (obuff)); 19 | for (i = 0; i < (rc + 1) / 2; i++) { 20 | obuff[i] = ibuff[i ^ 1]; 21 | } 22 | 23 | len = (rc + 1) & ~1; 24 | 25 | if (write (1, obuff, len) != len) { 26 | perror ("read error"); 27 | return (EXIT_FAILURE); 28 | } 29 | 30 | memset (ibuff, 0, sizeof (ibuff)); 31 | } 32 | 33 | if (rc < 0) { 34 | perror ("read error"); 35 | return (EXIT_FAILURE); 36 | } 37 | return (EXIT_SUCCESS); 38 | } 39 | -------------------------------------------------------------------------------- /arch/arm/include/asm/arch-am33xx/clock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * clock.h 3 | * 4 | * clock header 5 | * 6 | * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ 7 | * 8 | * This program is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU General Public License as 10 | * published by the Free Software Foundation; either version 2 of 11 | * the License, or (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the 16 | * GNU General Public License for more details. 17 | */ 18 | 19 | #ifndef _CLOCKS_H_ 20 | #define _CLOCKS_H_ 21 | 22 | #include 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /arch/nios2/include/asm/dma-mapping.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_NIOS2_DMA_MAPPING_H 2 | #define __ASM_NIOS2_DMA_MAPPING_H 3 | 4 | /* dma_alloc_coherent() return cache-line aligned allocation which is mapped 5 | * to uncached io region. 6 | * 7 | * IO_REGION_BASE should be defined in board config header file 8 | * 0x80000000 for nommu, 0xe0000000 for mmu 9 | */ 10 | 11 | static inline void *dma_alloc_coherent(size_t len, unsigned long *handle) 12 | { 13 | void *addr = malloc(len + CONFIG_SYS_DCACHELINE_SIZE); 14 | if (!addr) 15 | return 0; 16 | flush_dcache((unsigned long)addr, len + CONFIG_SYS_DCACHELINE_SIZE); 17 | *handle = ((unsigned long)addr + 18 | (CONFIG_SYS_DCACHELINE_SIZE - 1)) & 19 | ~(CONFIG_SYS_DCACHELINE_SIZE - 1) & ~(IO_REGION_BASE); 20 | return (void *)(*handle | IO_REGION_BASE); 21 | } 22 | 23 | #endif /* __ASM_NIOS2_DMA_MAPPING_H */ 24 | -------------------------------------------------------------------------------- /include/physmem.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 The Chromium OS Authors. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | * 6 | * Alternatively, this software may be distributed under the terms of the 7 | * GNU General Public License ("GPL") version 2 as published by the Free 8 | * Software Foundation. 9 | */ 10 | 11 | /* 12 | * These functions work like memset but operate on physical memory which may 13 | * not be accessible directly. 14 | * 15 | * @param s The physical address to start setting memory at. 16 | * @param c The character to set each byte of the region to. 17 | * @param n The number of bytes to set. 18 | * 19 | * @return The physical address of the memory which was set. 20 | */ 21 | phys_addr_t arch_phys_memset(phys_addr_t s, int c, phys_size_t n); 22 | -------------------------------------------------------------------------------- /tools/env/fw_env.config: -------------------------------------------------------------------------------- 1 | # Configuration file for fw_(printenv/saveenv) utility. 2 | # Up to two entries are valid, in this case the redundant 3 | # environment sector is assumed present. 4 | # Notice, that the "Number of sectors" is ignored on NOR and SPI-dataflash. 5 | # Futhermore, if the Flash sector size is ommitted, this value is assumed to 6 | # be the same as the Environment size, which is valid for NOR and SPI-dataflash 7 | 8 | # NOR example 9 | # MTD device name Device offset Env. size Flash sector size Number of sectors 10 | /dev/mtd1 0x0000 0x4000 0x4000 11 | /dev/mtd2 0x0000 0x4000 0x4000 12 | 13 | # MTD SPI-dataflash example 14 | # MTD device name Device offset Env. size Flash sector size Number of sectors 15 | #/dev/mtd5 0x4200 0x4200 16 | #/dev/mtd6 0x4200 0x4200 17 | 18 | # NAND example 19 | #/dev/mtd0 0x4000 0x4000 0x20000 2 20 | -------------------------------------------------------------------------------- /doc/README.ARM-memory-map: -------------------------------------------------------------------------------- 1 | Subject: Re: [PATCH][CFT] bring ARM memory layout in line with the documented behaviour 2 | From: "Anders Larsen" 3 | Date: Thu, 18 Sep 2003 14:15:21 +0200 4 | To: Wolfgang Denk 5 | 6 | ... 7 | >I still see references to _armboot_start, _armboot_end_data, and 8 | >_armboot_end - which role do these play now? Can we get rid of them? 9 | > 10 | >How are they (should they be) set in your memory map above? 11 | 12 | _armboot_start contains the value of CONFIG_SYS_TEXT_BASE (0xA07E0000); it seems 13 | CONFIG_SYS_TEXT_BASE and _armboot_start are both used for the same purpose in 14 | different parts of the (ARM) code. 15 | Furthermore, the startup code (cpu//start.S) internally uses 16 | another variable (_TEXT_BASE) with the same content as _armboot_start. 17 | I agree that this mess should be cleaned up. 18 | -------------------------------------------------------------------------------- /board/davinci/sffsdr/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002 3 | # Gary Jennejohn, DENX Software Engineering, 4 | # David Mueller, ELSOFT AG, 5 | # 6 | # Copyright (C) 2008 Lyrtech 7 | # Copyright (C) 2008 Philip Balister, OpenSDR 8 | # 9 | # Lyrtech SFF SDR board (ARM926EJS) cpu 10 | # 11 | # SFF SDR board has 1 bank of 128 MB DDR RAM 12 | # Physical Address: 13 | # 8000'0000 to 87FF'FFFF 14 | # 15 | # Linux-Kernel is expected to be at 8000'8000, entry 8000'8000 16 | # (mem base + reserved) 17 | # 18 | # Integrity kernel is expected to be at 8000'0000, entry 8000'00D0, 19 | # up to 81FF'FFFF (uses up to 32 MB of memory for text, heap, etc). 20 | # 21 | # we load ourself to 8400'0000 to provide at least 32MB spacing 22 | # between us and the Integrity kernel image 23 | CONFIG_SYS_TEXT_BASE = 0x84000000 24 | -------------------------------------------------------------------------------- /board/toradex/dts/tegra20-colibri_t20_iris.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | /include/ ARCH_CPU_DTS 4 | 5 | / { 6 | model = "Toradex Colibri T20"; 7 | compatible = "toradex,t20", "nvidia,tegra20"; 8 | 9 | aliases { 10 | usb0 = "/usb@c5008000"; 11 | usb1 = "/usb@c5000000"; 12 | usb2 = "/usb@c5004000"; 13 | }; 14 | 15 | usb@c5000000 { 16 | dr_mode = "otg"; 17 | }; 18 | 19 | usb@c5004000 { 20 | nvidia,phy-reset-gpio = <&gpio 169 0>; /* PV1 */ 21 | nvidia,vbus-gpio = <&gpio 217 0>; /* PBB1 */ 22 | }; 23 | 24 | usb@c5008000 { 25 | nvidia,vbus-gpio = <&gpio 178 1>; /* PW2 low-active */ 26 | }; 27 | 28 | nand-controller@70008000 { 29 | nvidia,wp-gpios = <&gpio 144 0>; /* PS0 */ 30 | nvidia,width = <8>; 31 | nvidia,timing = <15 100 25 80 25 10 15 10 100>; 32 | 33 | nand@0 { 34 | reg = <0>; 35 | compatible = "nand-flash"; 36 | }; 37 | }; 38 | }; 39 | -------------------------------------------------------------------------------- /arch/arm/lib/eabi_compat.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Utility functions needed for (some) EABI conformant tool chains. 3 | * 4 | * (C) Copyright 2009 Wolfgang Denk 5 | * 6 | * This program is Free Software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License as 8 | * published by the Free Software Foundation; either version 2 of the 9 | * License, or (at your option) any later version. 10 | */ 11 | 12 | #include 13 | 14 | int raise (int signum) 15 | { 16 | /* Even if printf() is available, it's large. Punt it for SPL builds */ 17 | #if !defined(CONFIG_SPL_BUILD) 18 | printf("raise: Signal # %d caught\n", signum); 19 | #endif 20 | return 0; 21 | } 22 | 23 | /* Dummy function to avoid linker complaints */ 24 | void __aeabi_unwind_cpp_pr0(void) 25 | { 26 | }; 27 | 28 | void __aeabi_unwind_cpp_pr1(void) 29 | { 30 | }; 31 | -------------------------------------------------------------------------------- /board/blackvme/blackvme.c: -------------------------------------------------------------------------------- 1 | /* U-boot - blackvme.c board specific routines 2 | * (c) Wojtek Skulski 2010 info@skutek.com 3 | * Board info: http://www.skutek.com 4 | * Copyright (c) 2005-2009 Analog Devices Inc. 5 | * 6 | * (C) Copyright 2000-2004 7 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 8 | * 9 | * Licensed under the GPL-2 or later. 10 | */ 11 | 12 | #include 13 | #include 14 | 15 | int checkboard(void) 16 | { 17 | printf("Board: BlackVME\n"); 18 | printf("Support: http://www.skutek.com/\n"); 19 | return 0; 20 | } 21 | 22 | #ifdef CONFIG_DRIVER_AX88180 23 | /* 24 | * The ax88180 driver had to be patched to work around a bug 25 | * in Marvell 88E1111 B2 silicon. E-mail me for explanations. 26 | */ 27 | int board_eth_init(bd_t *bis) 28 | { 29 | return ax88180_initialize(bis); 30 | } 31 | #endif /* CONFIG_DRIVER_AX88180 */ 32 | -------------------------------------------------------------------------------- /board/sbc8641d/README: -------------------------------------------------------------------------------- 1 | Wind River SBC8641D reference board 2 | =========================== 3 | 4 | Created 06/14/2007 Joe Hamman 5 | Copyright 2007, Embedded Specialties, Inc. 6 | Copyright 2007 Wind River Systemes, Inc. 7 | ----------------------------- 8 | 9 | 1. Building U-Boot 10 | ------------------ 11 | The SBC8641D code is known to build using ELDK 4.1. 12 | 13 | $ make sbc8641d_config 14 | Configuring for sbc8641d board... 15 | 16 | $ make 17 | 18 | 19 | 2. Switch and Jumper Settings 20 | ----------------------------- 21 | All Jumpers & Switches are in their default positions. Please refer to 22 | the board documentation for details. Some settings control CPU voltages 23 | and settings may change with board revisions. 24 | 25 | 3. Known limitations 26 | -------------------- 27 | PCI: 28 | The PCI command may hang if no boards are present in either slot. 29 | -------------------------------------------------------------------------------- /arch/arm/cpu/arm1176/s3c64xx/init.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2012 Ashok Kumar Reddy Kourla 3 | * ashokkourla2000@gmail.com 4 | * 5 | * See file CREDITS for list of people who contributed to this 6 | * project. 7 | * 8 | * This program is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU General Public License as 10 | * published by the Free Software Foundation; either version 2 of 11 | * the License, or (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | */ 18 | 19 | #include 20 | 21 | int arch_cpu_init(void) 22 | { 23 | icache_enable(); 24 | 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /arch/mips/include/asm/cachectl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is subject to the terms and conditions of the GNU General Public 3 | * License. See the file "COPYING" in the main directory of this archive 4 | * for more details. 5 | * 6 | * Copyright (C) 1994, 1995, 1996 by Ralf Baechle 7 | */ 8 | #ifndef _ASM_CACHECTL 9 | #define _ASM_CACHECTL 10 | 11 | /* 12 | * Options for cacheflush system call 13 | */ 14 | #define ICACHE (1<<0) /* flush instruction cache */ 15 | #define DCACHE (1<<1) /* writeback and flush data cache */ 16 | #define BCACHE (ICACHE|DCACHE) /* flush both caches */ 17 | 18 | /* 19 | * Caching modes for the cachectl(2) call 20 | * 21 | * cachectl(2) is currently not supported and returns ENOSYS. 22 | */ 23 | #define CACHEABLE 0 /* make pages cacheable */ 24 | #define UNCACHEABLE 1 /* make pages uncacheable */ 25 | 26 | #endif /* _ASM_CACHECTL */ 27 | -------------------------------------------------------------------------------- /include/linux/mtd/nand_ecc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * drivers/mtd/nand_ecc.h 3 | * 4 | * Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com) 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License version 2 as 8 | * published by the Free Software Foundation. 9 | * 10 | * This file is the header for the ECC algorithm. 11 | */ 12 | 13 | #ifndef __MTD_NAND_ECC_H__ 14 | #define __MTD_NAND_ECC_H__ 15 | 16 | struct mtd_info; 17 | 18 | /* 19 | * Calculate 3 byte ECC code for 256 byte block 20 | */ 21 | int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code); 22 | 23 | /* 24 | * Detect and correct a 1 bit error for 256 byte block 25 | */ 26 | int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc); 27 | 28 | #endif /* __MTD_NAND_ECC_H__ */ 29 | -------------------------------------------------------------------------------- /lib/physmem.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 The Chromium OS Authors. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | * 6 | * Alternatively, this software may be distributed under the terms of the 7 | * GNU General Public License ("GPL") version 2 as published by the Free 8 | * Software Foundation. 9 | */ 10 | 11 | #include 12 | #include 13 | 14 | static phys_addr_t __arch_phys_memset(phys_addr_t s, int c, phys_size_t n) 15 | { 16 | void *s_ptr = (void *)(uintptr_t)s; 17 | 18 | assert(((phys_addr_t)(uintptr_t)s) == s); 19 | assert(((phys_addr_t)(uintptr_t)(s + n)) == s + n); 20 | return (phys_addr_t)(uintptr_t)memset(s_ptr, c, n); 21 | } 22 | 23 | phys_addr_t arch_phys_memset(phys_addr_t s, int c, phys_size_t n) 24 | __attribute__((weak, alias("__arch_phys_memset"))); 25 | -------------------------------------------------------------------------------- /board/fads/lamp.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef CONFIG_ADS /* Old ADS has not got any user-controllable LED */ 4 | 5 | #include 6 | 7 | void 8 | signal_delay(unsigned int n) 9 | { 10 | while (n--); 11 | } 12 | 13 | void 14 | signal_on(void) 15 | { 16 | *((volatile uint *)BCSR4) &= ~(1<<(31-3)); /* led on */ 17 | } 18 | 19 | void 20 | signal_off(void) 21 | { 22 | *((volatile uint *)BCSR4) |= (1<<(31-3)); /* led off */ 23 | } 24 | 25 | void 26 | slow_blink(unsigned int n) 27 | { 28 | while (n--) { 29 | signal_on(); 30 | signal_delay(0x00400000); 31 | signal_off(); 32 | signal_delay(0x00400000); 33 | } 34 | } 35 | 36 | void 37 | fast_blink(unsigned int n) 38 | { 39 | while (n--) { 40 | signal_on(); 41 | signal_delay(0x00100000); 42 | signal_off(); 43 | signal_delay(0x00100000); 44 | } 45 | } 46 | 47 | #endif /* !CONFIG_ADS */ 48 | -------------------------------------------------------------------------------- /include/config_fallbacks.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Texas Instruments 3 | * 4 | * This file is licensed under the terms of the GNU General Public 5 | * License Version 2. This file is licensed "as is" without any 6 | * warranty of any kind, whether express or implied. 7 | */ 8 | 9 | #ifndef __CONFIG_FALLBACKS_H 10 | #define __CONFIG_FALLBACKS_H 11 | 12 | #ifndef CONFIG_SYS_BAUDRATE_TABLE 13 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } 14 | #endif 15 | 16 | #if defined(CONFIG_CMD_FAT) && !defined(CONFIG_FS_FAT) 17 | #define CONFIG_FS_FAT 18 | #endif 19 | 20 | #if (defined(CONFIG_CMD_EXT4) || defined(CONFIG_CMD_EXT2)) && \ 21 | !defined(CONFIG_FS_EXT4) 22 | #define CONFIG_FS_EXT4 23 | #endif 24 | 25 | #if defined(CONFIG_CMD_EXT4_WRITE) && !defined(CONFIG_EXT4_WRITE) 26 | #define CONFIG_EXT4_WRITE 27 | #endif 28 | 29 | #endif /* __CONFIG_FALLBACKS_H */ 30 | -------------------------------------------------------------------------------- /include/tegra-kbc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #ifndef __include_tegra_kbc_h__ 8 | #define __include_tegra_kbc_h__ 9 | 10 | #include 11 | 12 | #define KEY_IS_MODIFIER(key) ((key) >= KEY_FIRST_MODIFIER) 13 | 14 | struct kbc_tegra { 15 | u32 control; 16 | u32 interrupt; 17 | u32 row_cfg[4]; 18 | u32 col_cfg[3]; 19 | u32 timeout_dly; 20 | u32 init_dly; 21 | u32 rpt_dly; 22 | u32 kp_ent[2]; 23 | u32 row_mask[16]; 24 | }; 25 | 26 | #ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 27 | extern int overwrite_console(void); 28 | #define OVERWRITE_CONSOLE overwrite_console() 29 | #else 30 | #define OVERWRITE_CONSOLE 0 31 | #endif /* CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE */ 32 | 33 | #endif /* __include_tegra_kbc_h__ */ 34 | -------------------------------------------------------------------------------- /net/arp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copied from Linux Monitor (LiMon) - Networking. 3 | * 4 | * Copyright 1994 - 2000 Neil Russell. 5 | * (See License) 6 | * Copyright 2000 Roland Borde 7 | * Copyright 2000 Paolo Scaffardi 8 | * Copyright 2000-2002 Wolfgang Denk, wd@denx.de 9 | */ 10 | 11 | #ifndef __ARP_H__ 12 | #define __ARP_H__ 13 | 14 | #include 15 | 16 | extern IPaddr_t NetArpWaitPacketIP; 17 | /* MAC address of waiting packet's destination */ 18 | extern uchar *NetArpWaitPacketMAC; 19 | extern int NetArpWaitTxPacketSize; 20 | extern ulong NetArpWaitTimerStart; 21 | extern int NetArpWaitTry; 22 | 23 | void ArpInit(void); 24 | void ArpRequest(void); 25 | void arp_raw_request(IPaddr_t sourceIP, const uchar *targetEther, 26 | IPaddr_t targetIP); 27 | void ArpTimeoutCheck(void); 28 | void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len); 29 | 30 | #endif /* __ARP_H__ */ 31 | -------------------------------------------------------------------------------- /arch/mips/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is subject to the terms and conditions of the GNU General Public 3 | * License. See the file "COPYING" in the main directory of this archive 4 | * for more details. 5 | * 6 | * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org) 7 | */ 8 | #ifndef _ASM_MIPS_UNALIGNED_H 9 | #define _ASM_MIPS_UNALIGNED_H 10 | 11 | #include 12 | #if defined(__MIPSEB__) 13 | #define get_unaligned __get_unaligned_be 14 | #define put_unaligned __put_unaligned_be 15 | #elif defined(__MIPSEL__) 16 | #define get_unaligned __get_unaligned_le 17 | #define put_unaligned __put_unaligned_le 18 | #else 19 | #error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???" 20 | #endif 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | #endif /* _ASM_MIPS_UNALIGNED_H */ 27 | -------------------------------------------------------------------------------- /board/ti/tnetv107xevm/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # See file CREDITS for list of people who contributed to this 3 | # project. 4 | # 5 | # This program is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 2 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | # 19 | 20 | CONFIG_SYS_TEXT_BASE = 0x83FC0000 21 | -------------------------------------------------------------------------------- /include/lcd.h: -------------------------------------------------------------------------------- 1 | #ifndef _LCD_H_ 2 | #define _LCD_H_ 3 | 4 | typedef enum { 5 | VIN_D1_NTSC, 6 | VIN_D1_PAL, 7 | VIN_1280x720, 8 | VIN_1920x1080, 9 | VIN_1024x768 10 | } lcd_vin_t; 11 | 12 | /* combination: MSB 16bits: codec, LSB 16bit: output format */ 13 | typedef enum { 14 | OUTPUT_CCIR656_NTSC = 0x1, 15 | OUTPUT_CCIR656_PAL, 16 | OUTPUT_BT1120_720P, 17 | OUTPUT_BT1120_1080P, 18 | /* The following is the VESA */ 19 | OUTPUT_VESA = 0x1000, 20 | OUTPUT_VGA_1280x720 = OUTPUT_VESA, 21 | OUTPUT_VGA_1920x1080, 22 | OUTPUT_VGA_1024x768, 23 | } lcd_output_t; 24 | 25 | typedef enum { 26 | INPUT_FMT_YUV422 = 0, 27 | INPUT_FMT_RGB888, 28 | INPUT_FMT_RGB565 29 | } input_fmt_t; 30 | 31 | typedef enum { 32 | LCD_ID = 0, 33 | LCD0_ID = LCD_ID, 34 | LCD1_ID, 35 | LCD2_ID 36 | } lcd_idx_t; 37 | 38 | #endif /* _LCD_H_ */ 39 | 40 | --------------------------------------------------------------------------------