├── tools ├── patman │ ├── patman │ └── .gitignore ├── buildman │ ├── .gitignore │ └── buildman ├── ingenic-tools │ ├── security │ │ ├── orign.h │ │ ├── aesckey │ │ ├── aesukey │ │ ├── Makefile │ │ └── README │ ├── btow │ ├── gpt.bin │ ├── img2rle │ ├── bin2array │ ├── img2rle.c │ ├── mbr-of-gpt.bin │ ├── nand_device │ │ ├── Makefile │ │ ├── ato_nand.c │ │ ├── dosilicon_nand.c │ │ ├── sky_nand.c │ │ ├── alliance_nand.c │ │ ├── wodposit_nand.c │ │ ├── xtx_nand.c │ │ ├── xtx_mid0b_nand.c │ │ ├── xtx_mid2c_nand.c │ │ ├── fm25s_nand.c │ │ ├── winbond_nand.c │ │ ├── mxic_nand.c │ │ └── foresee_nand.c │ └── mkpalladium.sh ├── ingenic-tools-fpag │ ├── security │ │ ├── orign.h │ │ ├── aesckey │ │ ├── aesukey │ │ ├── Makefile │ │ └── README │ ├── btow │ ├── img2rle │ ├── bin2array │ ├── img2rle.c │ ├── gpt_creator │ ├── mbr_creator │ ├── nand_device │ │ ├── Makefile │ │ ├── ato_nand.c │ │ ├── dosilicon_nand.c │ │ ├── sky_nand.c │ │ ├── alliance_nand.c │ │ ├── wodposit_nand.c │ │ ├── xtx_nand.c │ │ ├── xtx_mid0b_nand.c │ │ ├── xtx_mid2c_nand.c │ │ ├── fm25s_nand.c │ │ ├── winbond_nand.c │ │ └── mxic_nand.c │ └── mkpalladium.sh ├── updater │ ├── dummy.c │ └── junk ├── getline.h ├── logos │ ├── denx.bmp │ ├── esd.bmp │ ├── atmel.bmp │ ├── ingenic.bmp │ ├── ingenic.jpg │ ├── k1mbv01.bmp │ ├── mensa.bmp │ ├── ronetix.bmp │ ├── syteco.bmp │ ├── freescale.bmp │ ├── ingenic_b.jpg │ ├── wandboard.bmp │ ├── intercontrol.bmp │ ├── linux_logo_ttcontrol.bmp │ └── linux_logo_ttcontrol_palfin.bmp ├── charge_logo │ ├── 1.bmp │ ├── 2.bmp │ ├── 3.bmp │ ├── 4.bmp │ ├── 5.bmp │ └── 6.bmp ├── easylogo │ ├── linux_logo.tga │ ├── linux_blackfin.tga │ ├── runme.sh │ └── Makefile ├── gdb │ ├── error.h │ ├── remote.h │ └── serial.h ├── fdt_host.h ├── os_support.c ├── pblimage.h ├── scripts │ ├── send_cmd │ ├── send_image │ └── dot.kermrc ├── bddb │ ├── config.php │ ├── execute.php │ └── badsubmit.php ├── .gitignore ├── os_support.h ├── binutils-version.sh ├── kernel-doc │ └── Makefile └── omapimage.h ├── lib ├── errno.c ├── lzma │ ├── license.txt │ ├── LzmaTools.h │ └── import_lzmasdk.sh ├── tizen │ ├── tizen_hd_logo_data.h │ ├── tizen.c │ └── Makefile ├── zlib │ ├── zlib.h │ ├── inffast.h │ └── Makefile ├── strmhz.c ├── initcall.c ├── rand.c ├── time.c ├── lzo │ └── Makefile └── net_utils.c ├── snapshot.commit ├── examples ├── api │ └── .gitignore └── standalone │ ├── .gitignore │ └── test_burst.h ├── arch ├── .gitignore ├── mips │ ├── include │ │ └── asm │ │ │ ├── errno.h │ │ │ ├── gpio.h │ │ │ ├── inca-ip.h │ │ │ ├── arch-jz4740 │ │ │ └── jzsoc.h │ │ │ ├── config.h │ │ │ ├── sections.h │ │ │ ├── reboot.h │ │ │ ├── cache.h │ │ │ ├── u-boot-mips.h │ │ │ ├── cachectl.h │ │ │ ├── unaligned.h │ │ │ └── isadep.h │ ├── cpu │ │ ├── mips32 │ │ │ ├── au1x00 │ │ │ │ ├── config.mk │ │ │ │ ├── au1x00_ide.c │ │ │ │ └── Makefile │ │ │ ├── incaip │ │ │ │ ├── config.mk │ │ │ │ └── Makefile │ │ │ ├── interrupts.c │ │ │ └── config.mk │ │ ├── xburst │ │ │ ├── ddr_debug.h │ │ │ ├── config.mk │ │ │ ├── t10 │ │ │ │ └── config.mk │ │ │ ├── t15 │ │ │ │ ├── config.mk │ │ │ │ └── ddr_set_dll.c │ │ │ ├── t20 │ │ │ │ └── config.mk │ │ │ ├── t21 │ │ │ │ └── config.mk │ │ │ ├── t23 │ │ │ │ └── config.mk │ │ │ ├── t30 │ │ │ │ └── config.mk │ │ │ ├── t31 │ │ │ │ └── config.mk │ │ │ ├── m150 │ │ │ │ ├── config.mk │ │ │ │ └── ddr_set_dll.c │ │ │ ├── m200 │ │ │ │ ├── config.mk │ │ │ │ └── ddr_set_dll.c │ │ │ ├── jz4775 │ │ │ │ ├── config.mk │ │ │ │ └── ddr_set_dll.c │ │ │ ├── jz4780 │ │ │ │ ├── config.mk │ │ │ │ └── ddr_set_dll.c │ │ │ ├── os_boot.c │ │ │ └── param_manage.c │ │ └── mips64 │ │ │ ├── interrupts.c │ │ │ ├── config.mk │ │ │ └── Makefile │ └── lib │ │ ├── libgcc.h │ │ ├── ashldi3.c │ │ ├── lshrdi3.c │ │ └── ashrdi3.c └── sandbox │ ├── include │ └── asm │ │ ├── errno.h │ │ ├── string.h │ │ ├── unaligned.h │ │ ├── config.h │ │ ├── ptrace.h │ │ ├── system.h │ │ ├── byteorder.h │ │ ├── global_data.h │ │ ├── cache.h │ │ ├── sections.h │ │ └── u-boot-sandbox.h │ ├── config.mk │ ├── lib │ └── interrupts.c │ └── cpu │ └── u-boot.lds ├── test ├── vboot │ ├── .gitignore │ ├── sandbox-kernel.dts │ └── sandbox-u-boot.dts └── Makefile ├── spl ├── .gitignore └── binary │ ├── t31lc_sfcnor.bin │ ├── t31_xiaomi_sfcnor.bin │ └── t31_xiaomi_sfcnor_2.bin ├── drivers ├── nand │ ├── libnm.hex │ ├── libops.hex │ ├── README │ ├── driver │ │ ├── hw │ │ │ └── transadaptor │ │ │ │ └── dma_trans.c │ │ └── inc │ │ │ ├── bad_block.h │ │ │ ├── os_config.h │ │ │ ├── ndmath.h │ │ │ ├── transadaptor.h │ │ │ ├── nderrno.h │ │ │ ├── emc_nand_timing.h │ │ │ ├── speed_dug.h │ │ │ ├── spl_rw.h │ │ │ └── ref_info.h │ └── manager │ │ └── inc │ │ ├── os │ │ ├── NandDebug.h │ │ ├── NandAlloc.h │ │ └── NandThread.h │ │ ├── blocklist.h │ │ ├── sectorlist.h │ │ └── lpartition.h ├── net │ └── npe │ │ └── include │ │ ├── IxOsalOsUtilitySymbols.h │ │ ├── IxOsalOsAssert.h │ │ ├── IxOsBuffMgt.h │ │ ├── IxOsalUtilitySymbols.h │ │ ├── IxOsServicesMemAccess.h │ │ ├── IxOsBufLib.h │ │ ├── IxOsServicesEndianess.h │ │ ├── IxOsServices.h │ │ ├── IxQMgrDefines_p.h │ │ └── IxOsCacheMMU.h ├── i2c │ └── s3c24x0_i2c.h ├── spi │ └── spi.c ├── usb │ ├── gadget │ │ └── ep0.h │ └── phy │ │ └── Makefile ├── watchdog │ └── bfin_wdt.c ├── misc │ └── gpio_led.c ├── qe │ └── Makefile ├── twserial │ └── Makefile ├── crypto │ └── Makefile ├── power │ ├── power_dialog.c │ ├── battery │ │ └── Makefile │ ├── fuel_gauge │ │ └── Makefile │ └── pmic │ │ └── pmic_max8998.c └── dfu │ └── Makefile ├── include ├── .gitignore ├── spd_sdram.h ├── linux │ ├── config.h │ ├── ioctl.h │ ├── linux_string.h │ ├── poison.h │ ├── crc7.h │ ├── bitrev.h │ ├── stddef.h │ ├── stringify.h │ ├── kbuild.h │ ├── compiler-gcc3.h │ └── mtd │ │ └── concat.h ├── asm-offsets.h ├── errno.h ├── jffs2 │ ├── jffs2_1pass.h │ └── compr_rubin.h ├── mii_phy.h ├── initcall.h ├── mtd_node.h ├── MCD_progCheck.h ├── ddr │ └── ddr_common.h ├── arm925t.h ├── ingenic_soft_spi.h ├── timestamp.h ├── libtizen.h ├── lzma │ ├── LzmaDec.h │ ├── LzmaTools.h │ └── LzmaTypes.h ├── ld9040.h ├── ds1722.h ├── rle_logo.h ├── cmd_spl.h ├── configs │ ├── T4240QDS.h │ ├── snow.h │ ├── smdk5250.h │ ├── xilinx-ppc440.h │ ├── vexpress_ca5x2.h │ ├── woodburn.h │ ├── xilinx-ppc405.h │ ├── vexpress_ca15_tc2.h │ ├── P5040DS.h │ └── P4080DS.h ├── sata.h ├── systemace.h ├── video_font.h ├── vsc7385.h ├── cramfs │ └── cramfs_fs_sb.h ├── stratixII.h ├── config_cmd_defaults.h ├── pwm.h ├── video_ad7179.h ├── dm9000.h ├── tws.h ├── ingenic_soft_i2c.h ├── power │ ├── power_chrg.h │ └── battery.h ├── fdc.h ├── video_easylogo.h ├── s6e63d6.h ├── config_defaults.h ├── fsl_diu_fb.h ├── led-display.h ├── g_dnl.h ├── pca9698.h ├── asm-generic │ └── unaligned.h ├── keyboard.h ├── bcd.h ├── jz_lcd │ ├── truly_tft240240_2_e.h │ ├── auo_x163.h │ └── ili_6122.h ├── lynxkdi.h ├── zfs │ └── sa_impl.h ├── version.h ├── config_uncmd_spl.h ├── sed156x.h ├── sha256.h ├── efuse.h ├── u-boot │ └── u-boot.lds.h ├── bedbug │ └── type.h ├── bus_vcxk.h ├── e500.h ├── hush.h └── cros_ec_message.h ├── board └── ingenic │ ├── k1mbv01 │ ├── logo │ │ ├── k1mbv01.bmp │ │ └── k1mbv01.jpg │ └── partitions.tab │ ├── k1mbv02 │ ├── logo │ │ ├── k1mbv02.bmp │ │ └── k1mbv02.jpg │ └── partitions.tab │ ├── pawscan │ └── partitions.tab │ ├── bootes │ └── partitions.tab │ ├── fornax │ └── partitions.tab │ ├── isvp_t10 │ └── partitions.tab │ ├── isvp_t20 │ └── partitions.tab │ ├── isvp_t21 │ └── partitions.tab │ ├── isvp_t23 │ └── partitions.tab │ ├── isvp_t30 │ └── partitions.tab │ ├── isvp_t31 │ └── partitions.tab │ ├── mango │ └── partitions.tab │ ├── musca │ └── partitions.tab │ ├── isvp_c100 │ └── partitions.tab │ ├── box │ └── partitions.tab │ ├── columba │ └── partitions.tab │ ├── hercules │ └── partitions.tab │ ├── halley │ └── partitions.tab │ ├── mensa │ └── partitions.tab │ ├── newton │ └── partitions.tab │ ├── dorado │ └── partitions.tab │ ├── icam01m │ └── partitions.tab │ ├── newton2 │ └── partitions.tab │ ├── pictor │ └── partitions.tab │ ├── palladium_m200 │ └── partitions.tab │ └── f4785 │ └── partitions.tab ├── .gitignore ├── doc ├── DocBook │ ├── .gitignore │ ├── docbook.css │ └── stylesheet.xsl ├── README.imx6 ├── README.vf610 ├── README.imx25 ├── README.imx27 ├── README.idma2intr ├── README.splashprepare ├── uImage.FIT │ ├── update_uboot.its │ └── kernel.its ├── README.VLAN ├── device-tree-bindings │ ├── pwm │ │ └── tegra20-pwm.txt │ ├── README │ └── exynos │ │ └── isp-spi.txt ├── README.commands.itest ├── README.mini2440 └── README.SNTP ├── common ├── system_map.c ├── cmd_exit.c └── env_nowhere.c ├── post ├── drivers │ └── Makefile ├── cpu │ ├── mpc83xx │ │ └── Makefile │ ├── mpc8xx │ │ └── Makefile │ └── ppc4xx │ │ └── Makefile ├── board │ ├── lwmon │ │ └── Makefile │ ├── netta │ │ ├── Makefile │ │ ├── dsp.c │ │ └── codec.c │ └── pdm360ng │ │ └── Makefile └── lib_powerpc │ └── Makefile ├── fs ├── ext4 │ └── crc16.h ├── cbfs │ └── Makefile ├── yaffs2 │ └── yaffs_yaffs1.h ├── ubifs │ └── crc16.h └── Makefile ├── api └── Makefile ├── net ├── cdp.h ├── link_local.h └── rarp.h └── Licenses └── Exceptions /tools/patman/patman: -------------------------------------------------------------------------------- 1 | patman.py -------------------------------------------------------------------------------- /lib/errno.c: -------------------------------------------------------------------------------- 1 | int errno = 0; 2 | -------------------------------------------------------------------------------- /tools/patman/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /snapshot.commit: -------------------------------------------------------------------------------- 1 | $Format:%H %cD$ 2 | -------------------------------------------------------------------------------- /tools/buildman/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /tools/buildman/buildman: -------------------------------------------------------------------------------- 1 | buildman.py -------------------------------------------------------------------------------- /tools/ingenic-tools/security/orign.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/security/orign.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/api/.gitignore: -------------------------------------------------------------------------------- 1 | demo 2 | demo.bin 3 | -------------------------------------------------------------------------------- /arch/.gitignore: -------------------------------------------------------------------------------- 1 | /*/include/asm/arch 2 | /*/include/asm/proc 3 | -------------------------------------------------------------------------------- /test/vboot/.gitignore: -------------------------------------------------------------------------------- 1 | /*.dtb 2 | /test.fit 3 | /dev-keys 4 | -------------------------------------------------------------------------------- /tools/updater/dummy.c: -------------------------------------------------------------------------------- 1 | volatile int __dummy = 0xDEADBEEF; 2 | -------------------------------------------------------------------------------- /arch/mips/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /tools/getline.h: -------------------------------------------------------------------------------- 1 | int getline(char **lineptr, size_t *n, FILE *stream); 2 | -------------------------------------------------------------------------------- /spl/.gitignore: -------------------------------------------------------------------------------- 1 | u-boot-spl 2 | u-boot-spl.bin 3 | u-boot-spl.lds 4 | u-boot-spl.map 5 | -------------------------------------------------------------------------------- /arch/mips/include/asm/gpio.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | -------------------------------------------------------------------------------- /lib/lzma/license.txt: -------------------------------------------------------------------------------- 1 | License 2 | 3 | LZMA SDK is placed in the public domain. 4 | -------------------------------------------------------------------------------- /tools/ingenic-tools/security/aesckey: -------------------------------------------------------------------------------- 1 | aeskey[4] = {0x6618667c, 0x38e5e883, 0x4de2e22d, 0x6d7ca54b}; 2 | -------------------------------------------------------------------------------- /tools/ingenic-tools/security/aesukey: -------------------------------------------------------------------------------- 1 | aeskey[4] = {0xee6694c3, 0xef42d55b, 0x60bdfed8, 0x16536470}; 2 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/security/aesckey: -------------------------------------------------------------------------------- 1 | aeskey[4] = {0x6618667c, 0x38e5e883, 0x4de2e22d, 0x6d7ca54b}; 2 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/security/aesukey: -------------------------------------------------------------------------------- 1 | aeskey[4] = {0xee6694c3, 0xef42d55b, 0x60bdfed8, 0x16536470}; 2 | -------------------------------------------------------------------------------- /tools/logos/denx.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/denx.bmp -------------------------------------------------------------------------------- /tools/logos/esd.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/esd.bmp -------------------------------------------------------------------------------- /drivers/nand/libnm.hex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/drivers/nand/libnm.hex -------------------------------------------------------------------------------- /drivers/nand/libops.hex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/drivers/nand/libops.hex -------------------------------------------------------------------------------- /include/.gitignore: -------------------------------------------------------------------------------- 1 | /autoconf.mk* 2 | /asm 3 | /bmp_logo.h 4 | /bmp_logo_data.h 5 | /config.h 6 | /config.mk 7 | -------------------------------------------------------------------------------- /tools/charge_logo/1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/charge_logo/1.bmp -------------------------------------------------------------------------------- /tools/charge_logo/2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/charge_logo/2.bmp -------------------------------------------------------------------------------- /tools/charge_logo/3.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/charge_logo/3.bmp -------------------------------------------------------------------------------- /tools/charge_logo/4.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/charge_logo/4.bmp -------------------------------------------------------------------------------- /tools/charge_logo/5.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/charge_logo/5.bmp -------------------------------------------------------------------------------- /tools/charge_logo/6.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/charge_logo/6.bmp -------------------------------------------------------------------------------- /tools/logos/atmel.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/atmel.bmp -------------------------------------------------------------------------------- /tools/logos/ingenic.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/ingenic.bmp -------------------------------------------------------------------------------- /tools/logos/ingenic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/ingenic.jpg -------------------------------------------------------------------------------- /tools/logos/k1mbv01.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/k1mbv01.bmp -------------------------------------------------------------------------------- /tools/logos/mensa.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/mensa.bmp -------------------------------------------------------------------------------- /tools/logos/ronetix.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/ronetix.bmp -------------------------------------------------------------------------------- /tools/logos/syteco.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/syteco.bmp -------------------------------------------------------------------------------- /tools/ingenic-tools/btow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools/btow -------------------------------------------------------------------------------- /tools/logos/freescale.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/freescale.bmp -------------------------------------------------------------------------------- /tools/logos/ingenic_b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/ingenic_b.jpg -------------------------------------------------------------------------------- /tools/logos/wandboard.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/wandboard.bmp -------------------------------------------------------------------------------- /drivers/nand/README: -------------------------------------------------------------------------------- 1 | intignore: 2 | don't merged the flow file: 3 | 4 | 5 | dma_msg_handler.h 6 | dma_msg_handler.c 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /spl/binary/t31lc_sfcnor.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/spl/binary/t31lc_sfcnor.bin -------------------------------------------------------------------------------- /tools/ingenic-tools/gpt.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools/gpt.bin -------------------------------------------------------------------------------- /tools/ingenic-tools/img2rle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools/img2rle -------------------------------------------------------------------------------- /tools/logos/intercontrol.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/intercontrol.bmp -------------------------------------------------------------------------------- /tools/easylogo/linux_logo.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/easylogo/linux_logo.tga -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/btow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools-fpag/btow -------------------------------------------------------------------------------- /tools/ingenic-tools/bin2array: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools/bin2array -------------------------------------------------------------------------------- /tools/ingenic-tools/img2rle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools/img2rle.c -------------------------------------------------------------------------------- /arch/mips/include/asm/inca-ip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/arch/mips/include/asm/inca-ip.h -------------------------------------------------------------------------------- /spl/binary/t31_xiaomi_sfcnor.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/spl/binary/t31_xiaomi_sfcnor.bin -------------------------------------------------------------------------------- /tools/easylogo/linux_blackfin.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/easylogo/linux_blackfin.tga -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/img2rle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools-fpag/img2rle -------------------------------------------------------------------------------- /include/linux/config.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_CONFIG_H 2 | #define _LINUX_CONFIG_H 3 | 4 | /* #include */ 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /spl/binary/t31_xiaomi_sfcnor_2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/spl/binary/t31_xiaomi_sfcnor_2.bin -------------------------------------------------------------------------------- /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/ingenic-tools-fpag/bin2array: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools-fpag/bin2array -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/img2rle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools-fpag/img2rle.c -------------------------------------------------------------------------------- /tools/ingenic-tools/mbr-of-gpt.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools/mbr-of-gpt.bin -------------------------------------------------------------------------------- /board/ingenic/k1mbv01/logo/k1mbv01.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/board/ingenic/k1mbv01/logo/k1mbv01.bmp -------------------------------------------------------------------------------- /board/ingenic/k1mbv01/logo/k1mbv01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/board/ingenic/k1mbv01/logo/k1mbv01.jpg -------------------------------------------------------------------------------- /board/ingenic/k1mbv02/logo/k1mbv02.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/board/ingenic/k1mbv02/logo/k1mbv02.bmp -------------------------------------------------------------------------------- /board/ingenic/k1mbv02/logo/k1mbv02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/board/ingenic/k1mbv02/logo/k1mbv02.jpg -------------------------------------------------------------------------------- /test/vboot/sandbox-kernel.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | / { 4 | model = "Sandbox Verified Boot Test"; 5 | compatible = "sandbox"; 6 | 7 | }; 8 | -------------------------------------------------------------------------------- /test/vboot/sandbox-u-boot.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | / { 4 | model = "Sandbox Verified Boot Test"; 5 | compatible = "sandbox"; 6 | 7 | }; 8 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/gpt_creator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools-fpag/gpt_creator -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/mbr_creator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/ingenic-tools-fpag/mbr_creator -------------------------------------------------------------------------------- /tools/logos/linux_logo_ttcontrol.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/linux_logo_ttcontrol.bmp -------------------------------------------------------------------------------- /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/gtxaspec/ingenic-u-boot-xburst1/HEAD/tools/logos/linux_logo_ttcontrol_palfin.bmp -------------------------------------------------------------------------------- /include/asm-offsets.h: -------------------------------------------------------------------------------- 1 | #ifndef DO_DEPS_ONLY 2 | 3 | #include 4 | /* #include */ 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsalOsUtilitySymbols.h: -------------------------------------------------------------------------------- 1 | #ifndef IxOsalOsUtilitySymbols_H 2 | #define IxOsalOsUtilitySymbols_H 3 | 4 | #endif /* IxOsalOsUtilitySymbols_H */ 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | uboot_build/ 2 | .idea 3 | .vscode 4 | *boards.depend 5 | System.map 6 | include/generated 7 | .depend* 8 | u-boot* 9 | *.s 10 | *.o 11 | *.su 12 | *.log 13 | -------------------------------------------------------------------------------- /arch/mips/include/asm/arch-jz4740/jzsoc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Ingenic JZ4740 SoC support 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #include 8 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/string.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #include 8 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #include 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/ingenic-tools/security/Makefile: -------------------------------------------------------------------------------- 1 | crypy:crypy.c aes.c md5.c sha1_1.c sha1_2.c 2 | gcc crypy.c aes.c md5.c sha1_1.c sha1_2.c rsa.c rsa.h -o crypy 3 | clean: 4 | rm result.h aa *.hex crypy -rf 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/security/Makefile: -------------------------------------------------------------------------------- 1 | crypy:crypy.c aes.c md5.c sha1_1.c sha1_2.c 2 | gcc crypy.c aes.c md5.c sha1_1.c sha1_2.c rsa.c rsa.h -o crypy 3 | clean: 4 | rm result.h aa *.hex crypy -rf 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips32/au1x00/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2011 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | PLATFORM_CPPFLAGS += -mtune=4kc 9 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips32/incaip/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2011 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | PLATFORM_CPPFLAGS += -mtune=4kc 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/mips/include/asm/config.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Copyright 2009 Freescale Semiconductor, Inc. 4 | */ 5 | 6 | #ifndef _ASM_CONFIG_H_ 7 | #define _ASM_CONFIG_H_ 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/initcall.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | typedef int (*init_fnc_t)(void); 8 | 9 | int initcall_run_list(init_fnc_t init_sequence[]); 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef _ASM_CONFIG_H_ 8 | #define _ASM_CONFIG_H_ 9 | 10 | #define CONFIG_SANDBOX_ARCH 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/ddr_debug.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef CONFIG_DWC_DEBUG 3 | #define dwc_debug(fmt, args...) \ 4 | do { \ 5 | printf(fmt, ##args); \ 6 | } while (0) 7 | #else 8 | #define dwc_debug(fmt, args...) \ 9 | do { \ 10 | } while (0) 11 | #endif 12 | -------------------------------------------------------------------------------- /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 | ................................................................................................................................................................................................................................................................ -------------------------------------------------------------------------------- /arch/mips/include/asm/sections.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Copyright (c) 2012 The Chromium OS Authors. 4 | */ 5 | 6 | #ifndef __ASM_MIPS_SECTIONS_H 7 | #define __ASM_MIPS_SECTIONS_H 8 | 9 | #include 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /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/nand/driver/hw/transadaptor/dma_trans.c: -------------------------------------------------------------------------------- 1 | /* dma trans function will be done later, now it's not be used, but only be compiled */ 2 | /* in order to avoid be deleted when make distclean in kernel */ 3 | #include 4 | #include 5 | #include "transadaptor.h" 6 | -------------------------------------------------------------------------------- /include/MCD_progCheck.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2004-2007 Freescale Semiconductor, Inc. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | /* This file is autogenerated. Do not change */ 8 | #define CURRBD 4 9 | #define DCOUNT 6 10 | #define DESTPTR 5 11 | #define SRCPTR 7 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/ddr/ddr_common.h: -------------------------------------------------------------------------------- 1 | #ifndef __DDR_COMMON_H__ 2 | #define __DDR_COMMON_H__ 3 | 4 | #include 5 | #include 6 | 7 | #ifdef CONFIG_CPU_XBURST 8 | #include 9 | #include 10 | #include 11 | #endif 12 | 13 | #endif /* __DDR_COMMON_H__ */ 14 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/Makefile: -------------------------------------------------------------------------------- 1 | 2 | SRCS := $(shell find . -name "*.c") 3 | #OBJS := $(patsubst %.c,%.o,${AIENGINE_SRC}) 4 | CFLAGS:= $(HOSTCFLAGS) -std=c99 5 | 6 | 7 | sfc_nand_params: $(SRCS) 8 | ./deal_nand.sh 9 | $(HOSTCC) $(CFLAGS) $(HOSTLDFLAGS) -o $@ $^ 10 | $(HOSTSTRIP) $@ 11 | mv $@ ../ 12 | 13 | -------------------------------------------------------------------------------- /tools/gdb/error.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * (C) Copyright 2000 4 | * Murray Jensen 5 | */ 6 | 7 | #include 8 | 9 | extern char *pname; 10 | 11 | extern void Warning(char *, ...); 12 | extern void Error(char *, ...); 13 | extern void Perror(char *, ...); 14 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/Makefile: -------------------------------------------------------------------------------- 1 | 2 | SRCS := $(shell find . -name "*.c") 3 | #OBJS := $(patsubst %.c,%.o,${AIENGINE_SRC}) 4 | CFLAGS:= $(HOSTCFLAGS) -std=c99 5 | 6 | 7 | sfc_nand_params: $(SRCS) 8 | ./deal_nand.sh 9 | $(HOSTCC) $(CFLAGS) $(HOSTLDFLAGS) -o $@ $^ 10 | $(HOSTSTRIP) $@ 11 | mv $@ ../ 12 | 13 | -------------------------------------------------------------------------------- /arch/mips/include/asm/reboot.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* 3 | * Copyright (C) 1997, 1999, 2001, 06 by Ralf Baechle 4 | * Copyright (C) 2001 MIPS Technologies, Inc. 5 | */ 6 | #ifndef _ASM_REBOOT_H 7 | #define _ASM_REBOOT_H 8 | 9 | extern void _machine_restart(void); 10 | 11 | #endif /* _ASM_REBOOT_H */ 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 | -------------------------------------------------------------------------------- /include/ingenic_soft_spi.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __INCLUDE__GPIO__SPI__ 3 | #define __INCLUDE__GPIO__SPI__ 4 | 5 | struct spi { 6 | unsigned int clk ; 7 | unsigned int data_in ; 8 | unsigned int data_out ; 9 | unsigned int enable ; 10 | unsigned int rate ; 11 | }; 12 | 13 | void spi_init_jz(struct spi *spi); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /post/drivers/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0+ 2 | # 3 | # (C) Copyright 2002-2006 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 | include $(TOPDIR)/config.mk 6 | 7 | LIB = libpostdrivers.o 8 | 9 | COBJS-$(CONFIG_HAS_POST) += flash.o i2c.o memory.o rtc.o 10 | 11 | include $(TOPDIR)/post/rules.mk 12 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips32/interrupts.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2003 3 | * Wolfgang Denk, DENX Software Engineering, 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | 10 | void enable_interrupts(void) 11 | { 12 | } 13 | 14 | int disable_interrupts(void) 15 | { 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /include/timestamp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2008 Extreme Engineering Solutions, Inc. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef __TIMESTAMP_H__ 8 | #define __TIMESTAMP_H__ 9 | 10 | #ifndef DO_DEPS_ONLY 11 | #include "generated/timestamp_autogenerated.h" 12 | #endif 13 | 14 | #endif /* __TIMESTAMP_H__ */ 15 | -------------------------------------------------------------------------------- /drivers/nand/manager/inc/os/NandDebug.h: -------------------------------------------------------------------------------- 1 | #ifndef _NANDDEBUG_H_ 2 | #define _NANDDEBUG_H_ 3 | 4 | extern int nm_dbg_level; 5 | extern int utils_dbg_level; 6 | extern int libops_dbg_level; 7 | 8 | void nd_dump_stack(void); 9 | int __ndprint(const char *s, ...) __attribute__ ((format(printf, 1, 2))); 10 | 11 | #endif /* _NANDDEBUG_H_ */ 12 | -------------------------------------------------------------------------------- /tools/gdb/remote.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * (C) Copyright 2000 4 | * Murray Jensen 5 | */ 6 | 7 | extern int remote_desc, remote_timeout; 8 | 9 | extern void remote_reset(void); 10 | extern void remote_continue(void); 11 | extern int remote_write_bytes(unsigned long, char *, int); 12 | -------------------------------------------------------------------------------- /doc/README.imx6: -------------------------------------------------------------------------------- 1 | U-Boot for Freescale i.MX6 2 | 3 | This file contains information for the port of U-Boot to the Freescale i.MX6 4 | SoC. 5 | 6 | 1. CONVENTIONS FOR FUSE ASSIGNMENTS 7 | ----------------------------------- 8 | 9 | 1.1 MAC Address: It is stored in fuse bank 4, with the 32 lsbs in word 2 and the 10 | 16 msbs in word 3. 11 | -------------------------------------------------------------------------------- /include/libtizen.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2012 Samsung Electronics 3 | * Donghwa Lee 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef _LIBTIZEN_H_ 9 | #define _LIBTIZEN_H_ 10 | 11 | #define HD_RESOLUTION 0 12 | 13 | void get_tizen_logo_info(vidinfo_t *vid); 14 | 15 | #endif /* _LIBTIZEN_H_ */ 16 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /post/cpu/mpc83xx/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0+ 2 | # 3 | # (C) Copyright 2002-2007 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 | include $(OBJTREE)/include/autoconf.mk 6 | 7 | LIB = libpostmpc83xx.o 8 | 9 | AOBJS-$(CONFIG_HAS_POST) += 10 | COBJS-$(CONFIG_HAS_POST) += ecc.o 11 | 12 | include $(TOPDIR)/post/rules.mk 13 | -------------------------------------------------------------------------------- /doc/README.vf610: -------------------------------------------------------------------------------- 1 | U-Boot for Freescale Vybrid VF610 2 | 3 | This file contains information for the port of U-Boot to the Freescale Vybrid 4 | VF610 SoC. 5 | 6 | 1. CONVENTIONS FOR FUSE ASSIGNMENTS 7 | ----------------------------------- 8 | 9 | 1.1 MAC Address: It is stored in fuse bank 4, with the 16 msbs in word 2 and the 10 | 32 lsbs in word 3. 11 | -------------------------------------------------------------------------------- /tools/fdt_host.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * (C) Copyright 2008 Semihalf 4 | */ 5 | 6 | #ifndef __FDT_HOST_H__ 7 | #define __FDT_HOST_H__ 8 | 9 | /* Make sure to include u-boot version of libfdt include files */ 10 | #include "../include/libfdt.h" 11 | #include "../include/fdt_support.h" 12 | 13 | #endif /* __FDT_HOST_H__ */ 14 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips64/interrupts.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2003 3 | * Wolfgang Denk, DENX Software Engineering, 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | void enable_interrupts(void) 12 | { 13 | } 14 | 15 | int disable_interrupts(void) 16 | { 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /doc/README.imx25: -------------------------------------------------------------------------------- 1 | U-Boot for Freescale i.MX25 2 | 3 | This file contains information for the port of U-Boot to the Freescale i.MX25 4 | SoC. 5 | 6 | 1. CONVENTIONS FOR FUSE ASSIGNMENTS 7 | ----------------------------------- 8 | 9 | 1.1 MAC Address: It is stored in the words 26 to 31 of fuse bank 0, using the 10 | natural MAC byte order (i.e. MSB first). 11 | -------------------------------------------------------------------------------- /doc/README.imx27: -------------------------------------------------------------------------------- 1 | U-Boot for Freescale i.MX27 2 | 3 | This file contains information for the port of U-Boot to the Freescale i.MX27 4 | SoC. 5 | 6 | 1. CONVENTIONS FOR FUSE ASSIGNMENTS 7 | ----------------------------------- 8 | 9 | 1.1 MAC Address: It is stored in the words 4 to 9 of fuse bank 0, using the 10 | reversed MAC byte order (i.e. LSB first). 11 | -------------------------------------------------------------------------------- /arch/sandbox/config.mk: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 The Chromium OS Authors. 2 | # SPDX-License-Identifier: GPL-2.0+ 3 | 4 | PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE 5 | PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD 6 | PLATFORM_LIBS += -lrt 7 | 8 | # Support generic board on sandbox 9 | __HAVE_ARCH_GENERIC_BOARD := y 10 | -------------------------------------------------------------------------------- /drivers/nand/manager/inc/blocklist.h: -------------------------------------------------------------------------------- 1 | #ifndef __BLOCKLIST_H__ 2 | #define __BLOCKLIST_H__ 3 | 4 | #include "singlelist.h" 5 | 6 | typedef struct _BlockList BlockList; 7 | struct _BlockList { 8 | struct singlelist head;//must be the first member of the struct 9 | int startBlock; 10 | int _startBlock; 11 | int BlockCount; 12 | int retVal; 13 | }; 14 | #endif 15 | -------------------------------------------------------------------------------- /drivers/nand/manager/inc/os/NandAlloc.h: -------------------------------------------------------------------------------- 1 | #ifndef _NANDALLOC_H_ 2 | #define _NANDALLOC_H_ 3 | void* Nand_MemoryInit(void *h,int size,int type); 4 | void Nand_MemoryDeinit(void); 5 | void *Nand_VirtualAlloc(int size); 6 | void Nand_VirtualFree(void *val); 7 | void *Nand_ContinueAlloc(int size); 8 | void Nand_ContinueFree(void *val); 9 | 10 | #endif /* _NANDALLOC_H_ */ 11 | -------------------------------------------------------------------------------- /include/lzma/LzmaDec.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Fake include for LzmaDec.h 4 | * 5 | * Copyright (C) 2007-2009 Industrie Dial Face S.p.A. 6 | * Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com) 7 | * 8 | */ 9 | 10 | #ifndef __LZMADEC_H__FAKE__ 11 | #define __LZMADEC_H__FAKE__ 12 | 13 | #include "../../lib/lzma/LzmaDec.h" 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /include/lzma/LzmaTools.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Fake include for LzmaTools.h 4 | * 5 | * Copyright (C) 2007-2009 Industrie Dial Face S.p.A. 6 | * Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com) 7 | */ 8 | 9 | #ifndef __LZMATOOLS_H__FAKE__ 10 | #define __LZMATOOLS_H__FAKE__ 11 | 12 | #include "../../lib/lzma/LzmaTools.h" 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /include/ld9040.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ld9040 AMOLED LCD panel driver. 3 | * 4 | * Copyright (C) 2012 Samsung Electronics 5 | * Donghwa Lee 6 | * 7 | * SPDX-License-Identifier: GPL-2.0+ 8 | */ 9 | 10 | #ifndef __LD9040_H_ 11 | #define __LD9040_H_ 12 | 13 | void ld9040_cfg_ldo(void); 14 | void ld9040_enable_ldo(unsigned int onoff); 15 | 16 | #endif /* __LD9040_H_ */ 17 | -------------------------------------------------------------------------------- /include/linux/bitrev.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _LINUX_BITREV_H 3 | #define _LINUX_BITREV_H 4 | 5 | #include 6 | 7 | extern u8 const byte_rev_table[256]; 8 | 9 | static inline u8 bitrev8(u8 byte) 10 | { 11 | return byte_rev_table[byte]; 12 | } 13 | 14 | u16 bitrev16(u16 in); 15 | u32 bitrev32(u32 in); 16 | 17 | #endif /* _LINUX_BITREV_H */ 18 | -------------------------------------------------------------------------------- /tools/ingenic-tools/mkpalladium.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | mipsel-linux-android-objdump -D ../../spl/u-boot-spl > ../../palladium.dump 3 | ./btow ../../spl/u-boot-spl.bin ../../palladium.txt 4 | cd ../../ 5 | ls palladium.txt palladium.dump 6 | #myscp paladin.dump /home/user/work/paladin 7 | #myscp paladin.txt /home/user/work/paladin 8 | #upload paladin.dump paladin 9 | #upload paladin.txt paladin 10 | -------------------------------------------------------------------------------- /include/ds1722.h: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: GPL-2.0+ 3 | */ 4 | 5 | #ifndef _DS1722_H_ 6 | #define _DS1722_H_ 7 | 8 | #define DS1722_RESOLUTION_8BIT 0x0 9 | #define DS1722_RESOLUTION_9BIT 0x1 10 | #define DS1722_RESOLUTION_10BIT 0x2 11 | #define DS1722_RESOLUTION_11BIT 0x3 12 | #define DS1722_RESOLUTION_12BIT 0x4 13 | 14 | int ds1722_probe(int dev); 15 | 16 | #endif /* _DS1722_H_ */ 17 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/mkpalladium.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | mipsel-linux-android-objdump -D ../../spl/u-boot-spl > ../../palladium.dump 3 | ./btow ../../spl/u-boot-spl.bin ../../palladium.txt 4 | cd ../../ 5 | ls palladium.txt palladium.dump 6 | #myscp paladin.dump /home/user/work/paladin 7 | #myscp paladin.txt /home/user/work/paladin 8 | #upload paladin.dump paladin 9 | #upload paladin.txt paladin 10 | -------------------------------------------------------------------------------- /board/ingenic/pawscan/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 32m, LINUX_FS 11 | data = 48m, 448m, LINUX_FS 12 | 13 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/k1mbv01/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 7181m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 256m, LINUX_FS 11 | data = 230m, 6138m, LINUX_FS 12 | 13 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 14 | -------------------------------------------------------------------------------- /board/ingenic/k1mbv02/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 7181m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 256m, LINUX_FS 11 | data = 230m, 6138m, LINUX_FS 12 | 13 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 14 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/bad_block.h: -------------------------------------------------------------------------------- 1 | #ifndef __BAD_BLOCK_H 2 | #define __BAD_BLOCK_H 3 | 4 | #include "nand_debug.h" 5 | #include "ndmessage.h" 6 | #include "nand_ops.h" 7 | #include "nand_io.h" 8 | #include "nand_info.h" 9 | #include "ndcommand.h" 10 | 11 | int is_bad_block(struct nandops_info *ops, Nand_Task *nandtask); 12 | int mark_bad_block(struct nandops_info *ops, Nand_Task *nandtask); 13 | #endif 14 | -------------------------------------------------------------------------------- /include/rle_logo.h: -------------------------------------------------------------------------------- 1 | #ifndef _RLE_LOGO_H 2 | #define _RLE_LOGO_H 3 | #include 4 | #define RLE_LOGO_DEFAULT_ADDR rle_default_logo_addr //need to fixed! 5 | #if !defined(CONFIG_LCD_INFO_BELOW_LOGO) 6 | #define BMP_LOGO_HEIGHT panel_info.vl_row 7 | #define BMP_LOGO_WIDTH panel_info.vl_col 8 | #else 9 | #define BMP_LOGO_HEIGHT 0 10 | #define BMP_LOGO_WIDTH 0 11 | #endif 12 | #endif 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/tizen/tizen_hd_logo_data.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2012 Samsung Electronics 3 | * Donghwa Lee 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef _TIZEN_HD_LOGO_DATA_H_ 9 | #define _TIZEN_HD_LOGO_DATA_H_ 10 | 11 | #define TIZEN_HD_LOGO_WIDTH 520 12 | #define TIZEN_HD_LOGO_HEIGHT 120 13 | #define TIZEN_HD_LOGO_BPP 32 14 | 15 | #endif /* _TIZEN_HD_LOGO_DATA_H_ */ 16 | -------------------------------------------------------------------------------- /post/board/lwmon/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002-2006 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # See file CREDITS for list of people who contributed to this 6 | # project. 7 | # 8 | # SPDX-License-Identifier: GPL-2.0+ 9 | include $(OBJTREE)/include/autoconf.mk 10 | 11 | LIB = libpostlwmon.o 12 | 13 | COBJS-$(CONFIG_HAS_POST) += sysmon.o 14 | 15 | include $(TOPDIR)/post/rules.mk 16 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/os_config.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef CONFIG_JZ4780 4 | #define CONFIG_SOC_4780 5 | #elif defined(CONFIG_JZ4775) 6 | #define CONFIG_SOC_4775 7 | #elif defined(CONFIG_M150) 8 | #define CONFIG_SOC_M150 9 | #elif defined(CONFIG_M200) 10 | #define CONFIG_SOC_M200 11 | #elif defined(CONFIG_T15) 12 | #define CONFIG_SOC_T15 13 | #elif defined(CONFIG_T10) 14 | #define CONFIG_SOC_T10 15 | #endif 16 | -------------------------------------------------------------------------------- /post/board/netta/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002-2006 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # See file CREDITS for list of people who contributed to this 6 | # project. 7 | # 8 | # SPDX-License-Identifier: GPL-2.0+ 9 | include $(OBJTREE)/include/autoconf.mk 10 | 11 | LIB = libpostnetta.o 12 | 13 | COBJS-$(CONFIG_HAS_POST) += codec.o dsp.o 14 | 15 | include $(TOPDIR)/post/rules.mk 16 | -------------------------------------------------------------------------------- /tools/os_support.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0+ 2 | /* 3 | * Copyright 2009 Extreme Engineering Solutions, Inc. 4 | */ 5 | 6 | /* 7 | * Include additional files required for supporting different operating systems 8 | */ 9 | #include "compiler.h" 10 | #ifdef __MINGW32__ 11 | #include "mingw_support.c" 12 | #endif 13 | #if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L 14 | #include "getline.c" 15 | #endif 16 | -------------------------------------------------------------------------------- /board/ingenic/bootes/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/fornax/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 3632m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 64m, LINUX_FS 11 | data = 80m, 3552m, LINUX_FS 12 | 13 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 14 | # emcp: H9TP32A4GDCCPR -------------------------------------------------------------------------------- /board/ingenic/isvp_t10/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/isvp_t20/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/isvp_t21/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/isvp_t23/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/isvp_t30/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/isvp_t31/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/mango/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /board/ingenic/musca/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /post/board/pdm360ng/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2010 DENX Software Engineering 3 | # Anatolij Gustschin, agust@denx.de. 4 | # 5 | # See file CREDITS for list of people who contributed to this 6 | # project. 7 | # 8 | # SPDX-License-Identifier: GPL-2.0+ 9 | include $(OBJTREE)/include/autoconf.mk 10 | 11 | LIB = libpostpdm360ng.o 12 | 13 | COBJS-$(CONFIG_HAS_POST) += coproc_com.o 14 | 15 | include $(TOPDIR)/post/rules.mk 16 | -------------------------------------------------------------------------------- /board/ingenic/isvp_c100/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 512m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | system = 12m, 128m, LINUX_FS 11 | data = 140m, 256m, LINUX_FS 12 | vfat = 396m, 64m, 13 | 14 | #fstype could be: LINUX_FS, FAT_FS, EMPTY -------------------------------------------------------------------------------- /include/cmd_spl.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2011 2 | * Corscience GmbH & Co. KG - Simon Schwarz 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | #ifndef _NAND_SPL_H_ 7 | #define _NAND_SPL_H_ 8 | 9 | #define SPL_EXPORT (0x00000001) 10 | 11 | #define SPL_EXPORT_FDT (0x00000001) 12 | #define SPL_EXPORT_ATAGS (0x00000002) 13 | #define SPL_EXPORT_LAST SPL_EXPORT_ATAGS 14 | 15 | #endif /* _NAND_SPL_H_ */ 16 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/ndmath.h: -------------------------------------------------------------------------------- 1 | #ifndef _ND_MATH_H_ 2 | #define _ND_MATH_H_ 3 | 4 | static inline int div_s64_32(unsigned long long dividend, int divisor) 5 | { 6 | int result = 0; 7 | int i = 0; 8 | 9 | if(dividend >> 32 == 0) 10 | result = (unsigned int)dividend / divisor; 11 | else{ 12 | while( (divisor * (i++) + divisor -1) < dividend); 13 | result = i - 1; 14 | } 15 | 16 | return result; 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /include/configs/T4240QDS.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011-2012 Freescale Semiconductor, Inc. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | /* 8 | * T4240 QDS board configuration file 9 | */ 10 | #define CONFIG_T4240QDS 11 | #define CONFIG_PHYS_64BIT 12 | 13 | #define CONFIG_FSL_SATA_V2 14 | #define CONFIG_PCIE4 15 | 16 | #define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ 17 | 18 | #include "t4qds.h" 19 | -------------------------------------------------------------------------------- /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/pblimage.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Copyright 2012 Freescale Semiconductor, Inc. 4 | */ 5 | 6 | #ifndef PBLIMAGE_H 7 | #define PBLIMAGE_H 8 | 9 | #define RCW_BYTES 64 10 | #define RCW_PREAMBLE 0xaa55aa55 11 | #define RCW_HEADER 0x010e0100 12 | 13 | struct pbl_header { 14 | uint32_t preamble; 15 | uint32_t rcwheader; 16 | uint8_t rcw_data[RCW_BYTES]; 17 | }; 18 | 19 | #endif /* PBLIMAGE_H */ 20 | -------------------------------------------------------------------------------- /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/mips/cpu/xburst/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 Xiangfu Liu 3 | # 4 | # SPDX-License-Identifier: GPL-2.0+ 5 | # 6 | 7 | PLATFORM_CPPFLAGS += -march=mips32 8 | PLATFORM_CPPFLAGS += -mabi=32 -DCONFIG_32BIT 9 | ifdef CONFIG_SYS_BIG_ENDIAN 10 | PLATFORM_LDFLAGS += -m elf32btsmip 11 | else 12 | PLATFORM_LDFLAGS += -m elf32ltsmip 13 | endif 14 | 15 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds 16 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t10/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic T10 configuration 3 | # 4 | # Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t15/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic T15 configuration 3 | # 4 | # Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t20/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic T20 configuration 3 | # 4 | # Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t21/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic T21 configuration 3 | # 4 | # Copyright (c) 2017 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t23/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic T23 configuration 3 | # 4 | # Copyright (c) 2017 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t30/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic T30 configuration 3 | # 4 | # Copyright (c) 2017 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t31/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic T31 configuration 3 | # 4 | # Copyright (c) 2017 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /include/systemace.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYSTEMACE_H 2 | #define __SYSTEMACE_H 3 | /* 4 | * Copyright (c) 2004 Picture Elements, Inc. 5 | * Stephen Williams (steve@picturel.com) 6 | * 7 | * SPDX-License-Identifier: GPL-2.0+ 8 | */ 9 | #ident "$Id:$" 10 | 11 | #ifdef CONFIG_SYSTEMACE 12 | 13 | # include 14 | 15 | block_dev_desc_t * systemace_get_dev(int dev); 16 | 17 | #endif /* CONFIG_SYSTEMACE */ 18 | #endif /* __SYSTEMACE_H */ 19 | -------------------------------------------------------------------------------- /include/video_font.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * (C) Copyright 2000 4 | * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it 5 | */ 6 | 7 | #ifndef _VIDEO_FONT_ 8 | #define _VIDEO_FONT_ 9 | 10 | #define VIDEO_FONT_CHARS 256 11 | #define VIDEO_FONT_WIDTH 8 12 | #define VIDEO_FONT_HEIGHT 16 13 | #define VIDEO_FONT_SIZE (VIDEO_FONT_CHARS * VIDEO_FONT_HEIGHT) 14 | 15 | #endif /* _VIDEO_FONT_ */ 16 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/m150/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic JZ4775 configuration 3 | # 4 | # Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/m200/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic M200 configuration 3 | # 4 | # Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/transadaptor.h: -------------------------------------------------------------------------------- 1 | #ifndef __TRANSADAPTOR_H__ 2 | #define __TRANSADAPTOR_H__ 3 | 4 | #define SRCADD 0 5 | #define DSTADD 1 6 | #define SRC_AND_DST_ADD 2 7 | 8 | typedef struct __TransAdaptor transadaptor; 9 | struct __TransAdaptor{ 10 | int (*prepare_memcpy) (int context, unsigned char *src, unsigned char *dst, unsigned int len, unsigned short flag); 11 | int (*finish_memcpy) (int context); 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /include/configs/snow.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 Samsung Electronics 3 | * 4 | * Configuration settings for the SAMSUNG EXYNOS5 Snow board. 5 | * 6 | * SPDX-License-Identifier: GPL-2.0+ 7 | */ 8 | 9 | #ifndef __CONFIG_SNOW_H 10 | #define __CONFIG_SNOW_H 11 | 12 | #include 13 | 14 | #undef CONFIG_DEFAULT_DEVICE_TREE 15 | #define CONFIG_DEFAULT_DEVICE_TREE exynos5250-snow 16 | 17 | #endif /* __CONFIG_SNOW_H */ 18 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips32/au1x00/au1x00_ide.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2000-2011 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | /* AU1X00 swaps data in big-endian mode, enforce little-endian function */ 12 | void ide_input_swap_data(int dev, ulong *sect_buf, int words) 13 | { 14 | ide_input_data(dev, sect_buf, words); 15 | } 16 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/jz4775/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic JZ4775 configuration 3 | # 4 | # Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/jz4780/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Ingenic JZ4780 configuration 3 | # 4 | # Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | # Author: Zoro 6 | # Based on: arch/mips/cpu/xburst/jz4780/config.mk 7 | # Written by Paul Burton 8 | # 9 | # SPDX-License-Identifier: GPL-2.0+ 10 | 11 | # branch likely triggers a reserved instruction exception 12 | PLATFORM_CPPFLAGS += -mno-branch-likely 13 | -------------------------------------------------------------------------------- /include/configs/smdk5250.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Samsung Electronics 3 | * 4 | * Configuration settings for the SAMSUNG SMDK5250 board. 5 | * 6 | * SPDX-License-Identifier: GPL-2.0+ 7 | */ 8 | 9 | #ifndef __CONFIG_SMDK_H 10 | #define __CONFIG_SMDK_H 11 | 12 | #include 13 | 14 | #undef CONFIG_DEFAULT_DEVICE_TREE 15 | #define CONFIG_DEFAULT_DEVICE_TREE exynos5250-smdk5250 16 | 17 | #endif /* __CONFIG_SMDK_H */ 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/stratixII.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2007 3 | * Eran Liberty, Extricom, eran.liberty@gmail.com 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | #ifndef _STRATIXII_H_ 8 | #define _STRATIXII_H_ 9 | 10 | extern int StratixII_load (Altera_desc * desc, void *image, size_t size); 11 | extern int StratixII_dump (Altera_desc * desc, void *buf, size_t bsize); 12 | extern int StratixII_info (Altera_desc * desc); 13 | 14 | #endif /* _STRATIXII_H_ */ 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/sandbox/lib/interrupts.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | * 6 | * SPDX-License-Identifier: GPL-2.0+ 7 | */ 8 | 9 | #include 10 | 11 | int interrupt_init(void) 12 | { 13 | return 0; 14 | } 15 | 16 | void enable_interrupts(void) 17 | { 18 | return; 19 | } 20 | int disable_interrupts(void) 21 | { 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /include/lzma/LzmaTypes.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Fake include for Types.h 4 | * 5 | * Copyright (C) 2007-2009 Industrie Dial Face S.p.A. 6 | * Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com) 7 | */ 8 | 9 | #ifndef __TYPES_H__FAKE__ 10 | #define __TYPES_H__FAKE__ 11 | 12 | /* 13 | *This avoids the collition with zlib.h Byte definition 14 | */ 15 | #define Byte LZByte 16 | 17 | #include "../../lib/lzma/Types.h" 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /include/pwm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * header file for pwm driver. 3 | * 4 | * Copyright (c) 2011 samsung electronics 5 | * Donghwa Lee 6 | * 7 | * SPDX-License-Identifier: GPL-2.0+ 8 | */ 9 | 10 | #ifndef _pwm_h_ 11 | #define _pwm_h_ 12 | 13 | int pwm_init (int pwm_id, int div, int invert); 14 | int pwm_config (int pwm_id, int duty_ns, int period_ns); 15 | int pwm_enable (int pwm_id); 16 | void pwm_disable (int pwm_id); 17 | 18 | #endif /* _pwm_h_ */ 19 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/nderrno.h: -------------------------------------------------------------------------------- 1 | #ifndef _NAND_ERRNO_H_ 2 | #define _NAND_ERRNO_H_ 3 | 4 | #include "pagelist.h" 5 | 6 | #define BLOCK_MOVE ND_ECC_TOOLARGE 7 | #define SUCCESS 0 8 | #define ENAND ND_ERROR_ARGS 9 | #define DMA_AR ND_ERROR_MEMORY 10 | #define IO_ERROR ND_ERROR_IO 11 | #define TIMEOUT ND_TIMEOUT 12 | #define ECC_ERROR ND_ERROR_ECC 13 | #define ALL_FF ND_ERROR_NOWRITE 14 | #define WRITE_PROTECT -7 15 | 16 | #endif /*_NAND_ERRNO_H_*/ 17 | -------------------------------------------------------------------------------- /include/video_ad7179.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2003 Wolfgang Grandegger 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef _VIDEO_AD7179_H_ 8 | #define _VIDEO_AD7179_H_ 9 | 10 | /* 11 | * The video encoder data are board specific now! 12 | */ 13 | 14 | #if defined(CONFIG_RRVISION) 15 | #include "../board/RRvision/video_ad7179.h" 16 | #else 17 | #error "Please provide a board-specific video_ad7179.h" 18 | #endif 19 | 20 | #endif /* _VIDEO_AD7179_H_ */ 21 | -------------------------------------------------------------------------------- /post/cpu/mpc8xx/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002-2007 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # See file CREDITS for list of people who contributed to this 6 | # project. 7 | # 8 | # SPDX-License-Identifier: GPL-2.0+ 9 | include $(OBJTREE)/include/autoconf.mk 10 | 11 | LIB = libpostmpc8xx.o 12 | 13 | AOBJS-$(CONFIG_HAS_POST) += cache_8xx.o 14 | COBJS-$(CONFIG_HAS_POST) += cache.o ether.o spr.o uart.o usb.o watchdog.o 15 | 16 | include $(TOPDIR)/post/rules.mk 17 | -------------------------------------------------------------------------------- /include/configs/xilinx-ppc440.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2008 3 | * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es 4 | * This work has been supported by: QTechnology http://qtec.com/ 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __CONFIG_GEN_H 9 | #define __CONFIG_GEN_H 10 | 11 | /*CPU*/ 12 | #define CONFIG_4xx 1 13 | #define CONFIG_440 1 14 | #define CONFIG_XILINX_440 1 15 | 16 | #include 17 | 18 | #endif /* __CONFIG_H */ 19 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/ptrace.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef __ASM_SANDBOX_PTRACE_H 8 | #define __ASM_SANDBOX_PTRACE_H 9 | 10 | #ifndef __ASSEMBLY__ 11 | /* This is not used in the sandbox architecture, but required by U-Boot */ 12 | struct pt_regs { 13 | }; 14 | 15 | #ifdef __KERNEL__ 16 | extern void show_regs(struct pt_regs *); 17 | 18 | #endif 19 | 20 | #endif /* __ASSEMBLY__ */ 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/strmhz.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2002-2006 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | #include 8 | 9 | char *strmhz (char *buf, unsigned long hz) 10 | { 11 | long l, n; 12 | long m; 13 | 14 | n = DIV_ROUND(hz, 1000) / 1000L; 15 | l = sprintf (buf, "%ld", n); 16 | 17 | hz -= n * 1000000L; 18 | m = DIV_ROUND(hz, 1000L); 19 | if (m != 0) 20 | sprintf (buf + l, ".%03ld", m); 21 | return (buf); 22 | } 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /doc/README.splashprepare: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------- 2 | Splash Screen 3 | --------------------------------------------------------------------- 4 | The splash_screen_prepare() function is a weak function defined in 5 | common/splash.c. It is called as part of the splash screen display 6 | sequence. It gives the board an opportunity to prepare the splash 7 | image data before it is processed and sent to the frame buffer by 8 | U-Boot. Define your own version to use this feature. 9 | -------------------------------------------------------------------------------- /drivers/i2c/s3c24x0_i2c.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Samsung Electronics 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef _S3C24X0_I2C_H 8 | #define _S3C24X0_I2C_H 9 | 10 | struct s3c24x0_i2c { 11 | u32 iiccon; 12 | u32 iicstat; 13 | u32 iicadd; 14 | u32 iicds; 15 | u32 iiclc; 16 | }; 17 | 18 | struct s3c24x0_i2c_bus { 19 | int node; /* device tree node */ 20 | int bus_num; /* i2c bus number */ 21 | struct s3c24x0_i2c *regs; 22 | int id; 23 | }; 24 | #endif /* _S3C24X0_I2C_H */ 25 | -------------------------------------------------------------------------------- /include/dm9000.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NOTE: DAVICOM DM9000 ethernet driver interface 3 | * 4 | * Authors: Remy Bohmer 5 | * 6 | * SPDX-License-Identifier: GPL-2.0+ 7 | */ 8 | #ifndef __DM9000_H__ 9 | #define __DM9000_H__ 10 | 11 | /****************** function prototypes **********************/ 12 | #if !defined(CONFIG_DM9000_NO_SROM) 13 | void dm9000_write_srom_word(int offset, u16 val); 14 | void dm9000_read_srom_word(int offset, u8 *to); 15 | #endif 16 | 17 | #endif /* __DM9000_H__ */ 18 | -------------------------------------------------------------------------------- /board/ingenic/box/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 7181m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | test = 12m, 16m, LINUX_FS 11 | system = 32m, 256m, LINUX_FS 12 | data = 288m, 32m, LINUX_FS 13 | misc = 320m, 6860m, LINUX_FS 14 | 15 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 16 | # emcp: H9TP32A4GDCCPR 17 | -------------------------------------------------------------------------------- /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 | /proftool 13 | /ubsha1 14 | /xway-swap-bytes 15 | /*.exe 16 | /easylogo/easylogo 17 | /env/crc32.c 18 | /env/fw_printenv 19 | /gdb/gdbcont 20 | /gdb/gdbsend 21 | /kernel-doc/docproc 22 | /ingenic-tools/ddr_params_creator 23 | /ingenic-tools/mbr_creator 24 | /ingenic-tools/gpt_creator 25 | /ingenic-tools/spi_checksum 26 | /ingenic-tools/spl_params_fixer 27 | -------------------------------------------------------------------------------- /tools/gdb/serial.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * (C) Copyright 2000 4 | * Murray Jensen 5 | */ 6 | 7 | #include 8 | 9 | #define SERIAL_ERROR -1 /* General error, see errno for details */ 10 | #define SERIAL_TIMEOUT -2 11 | #define SERIAL_EOF -3 12 | 13 | extern speed_t cvtspeed(char *); 14 | extern int serialopen(char *, speed_t); 15 | extern int serialreadchar(int, int); 16 | extern int serialwrite(int, char *, int); 17 | extern int serialclose(int); 18 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/system.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef __ASM_SANDBOX_SYSTEM_H 8 | #define __ASM_SANDBOX_SYSTEM_H 9 | 10 | /* Define this as nops for sandbox architecture */ 11 | static inline void local_irq_save(unsigned flags __attribute__((unused))) 12 | { 13 | } 14 | 15 | #define local_irq_enable() 16 | #define local_irq_disable() 17 | #define local_save_flags(x) 18 | #define local_irq_restore(x) 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /board/ingenic/columba/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 7181m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | test = 12m, 16m, LINUX_FS 11 | system = 32m, 256m, LINUX_FS 12 | data = 288m, 32m, LINUX_FS 13 | misc = 320m, 6860m, LINUX_FS 14 | 15 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 16 | # emcp: H9TP32A4GDCCPR 17 | -------------------------------------------------------------------------------- /board/ingenic/hercules/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 7181m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | test = 12m, 16m, LINUX_FS 11 | system = 32m, 256m, LINUX_FS 12 | data = 288m, 32m, LINUX_FS 13 | misc = 320m, 6860m, LINUX_FS 14 | 15 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 16 | # emcp: H9TP32A4GDCCPR 17 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/emc_nand_timing.h: -------------------------------------------------------------------------------- 1 | #ifndef _EMC_NAND_TIMING_H_ 2 | #define _EMC_NAND_TIMING_H_ 3 | typedef struct __emc_toggle_timing { 4 | unsigned int tRPRE; /* ... duration/width/time */ 5 | unsigned int tDS; /* ... duration/width/time */ 6 | unsigned int tWPRE; /* ... duration/width/time */ 7 | unsigned int tDQSRE; /* ... duration/width/time */ 8 | unsigned int tWPST; /* ... duration/width/time */ 9 | } emc_toggle_timing; 10 | 11 | 12 | #endif /* _EMC_NAND_TIMING_H_ */ 13 | -------------------------------------------------------------------------------- /common/cmd_exit.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2000-2009 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | static int do_exit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) 12 | { 13 | int r; 14 | 15 | r = 0; 16 | if (argc > 1) 17 | r = simple_strtoul(argv[1], NULL, 10); 18 | 19 | return -r - 2; 20 | } 21 | 22 | U_BOOT_CMD( 23 | exit, 2, 1, do_exit, 24 | "exit script", 25 | "" 26 | ); 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/tws.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2009 3 | * Detlev Zundel, DENX Software Engineering, dzu@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef _TWS_H_ 9 | #define _TWS_H_ 10 | 11 | /* 12 | * Read/Write interface: 13 | * buffer: Where to read/write the data 14 | * len: How many bits to read/write 15 | * 16 | * Returns: 0 on success, not 0 on failure 17 | */ 18 | int tws_read(uchar *buffer, int len); 19 | int tws_write(uchar *buffer, int len); 20 | 21 | #endif /* _TWS_H_ */ 22 | -------------------------------------------------------------------------------- /include/ingenic_soft_i2c.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __INCLUDE__GPIO__I2C__ 3 | #define __INCLUDE__GPIO__I2C__ 4 | 5 | struct i2c { 6 | unsigned int scl; 7 | unsigned int sda; 8 | }; 9 | 10 | void i2c_init(struct i2c *i2c); 11 | int i2c_write(struct i2c *i2c,unsigned char chip, 12 | unsigned int addr, int alen, unsigned char *buffer, int len); 13 | int i2c_read(struct i2c *i2c,unsigned char chip, 14 | unsigned int addr, int alen, unsigned char *buffer, int len); 15 | 16 | int i2c_probe(struct i2c *i2c, unsigned char addr); 17 | #endif 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/ato_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define ATO_MID 0x9B 5 | #define ATO_NAND_DEVICD_COUNT 1 6 | 7 | 8 | static struct device_struct device[] = { 9 | DEVICE_STRUCT(0x12, 2048, 2, 0, 0, 0, NULL), 10 | }; 11 | 12 | static struct nand_desc ato_nand = { 13 | 14 | .id_manufactory = ATO_MID, 15 | .device_counts = ATO_NAND_DEVICD_COUNT, 16 | .device = device, 17 | }; 18 | 19 | int ato_nand_register_func(void) { 20 | return nand_register(&ato_nand); 21 | } 22 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/ato_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define ATO_MID 0x9B 5 | #define ATO_NAND_DEVICD_COUNT 1 6 | 7 | 8 | static struct device_struct device[] = { 9 | DEVICE_STRUCT(0x12, 2048, 2, 0, 0, 0, NULL), 10 | }; 11 | 12 | static struct nand_desc ato_nand = { 13 | 14 | .id_manufactory = ATO_MID, 15 | .device_counts = ATO_NAND_DEVICD_COUNT, 16 | .device = device, 17 | }; 18 | 19 | int ato_nand_register_func(void) { 20 | return nand_register(&ato_nand); 21 | } 22 | -------------------------------------------------------------------------------- /tools/os_support.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.0+ */ 2 | /* 3 | * Copyright 2009 Extreme Engineering Solutions, Inc. 4 | */ 5 | 6 | #ifndef __OS_SUPPORT_H_ 7 | #define __OS_SUPPORT_H_ 8 | 9 | #include "compiler.h" 10 | 11 | /* 12 | * Include additional files required for supporting different operating systems 13 | */ 14 | #ifdef __MINGW32__ 15 | #include "mingw_support.h" 16 | #endif 17 | 18 | #if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L 19 | #include "getline.h" 20 | #endif 21 | 22 | #endif /* __OS_SUPPORT_H_ */ 23 | -------------------------------------------------------------------------------- /include/power/power_chrg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Samsung Electronics 3 | * Lukasz Majewski 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __POWER_CHARGER_H_ 9 | #define __POWER_CHARGER_H_ 10 | 11 | /* Type of available chargers */ 12 | enum { 13 | CHARGER_NO = 0, 14 | CHARGER_TA, 15 | CHARGER_USB, 16 | CHARGER_TA_500, 17 | CHARGER_UNKNOWN, 18 | }; 19 | 20 | enum { 21 | UNKNOWN, 22 | EXT_SOURCE, 23 | CHARGE, 24 | NORMAL, 25 | }; 26 | 27 | #endif /* __POWER_CHARGER_H_ */ 28 | -------------------------------------------------------------------------------- /include/configs/vexpress_ca5x2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2011 Linaro 3 | * Ryan Harkin, 4 | * 5 | * Configuration for Versatile Express. Parts were derived from other ARM 6 | * configurations. 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #ifndef __VEXPRESS_CA5X2_h 12 | #define __VEXPRESS_CA5X2_h 13 | 14 | #define CONFIG_VEXPRESS_EXTENDED_MEMORY_MAP 15 | #include "vexpress_common.h" 16 | #define CONFIG_BOOTP_VCI_STRING "U-boot.armv7.vexpress_ca5x2" 17 | 18 | #endif /* __VEXPRESS_CA5X2_h */ 19 | -------------------------------------------------------------------------------- /include/fdc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2002 3 | * Stäubli Faverges - 4 | * Pierre AUBERT p.aubert@staubli.com 5 | * 6 | * SPDX-License-Identifier: GPL-2.0+ 7 | */ 8 | 9 | #ifndef _FDC_H_ 10 | #define _FDC_H_ 11 | 12 | /* Functions prototype */ 13 | int fdc_fdos_init (int drive); 14 | int fdc_fdos_seek (int where); 15 | int fdc_fdos_read (void *buffer, int len); 16 | 17 | int dos_open(char *name); 18 | int dos_read (ulong addr); 19 | int dos_dir (void); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/power/battery.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Samsung Electronics 3 | * Lukasz Majewski 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __POWER_BATTERY_H_ 9 | #define __POWER_BATTERY_H_ 10 | 11 | struct battery { 12 | unsigned int version; 13 | unsigned int state_of_chrg; 14 | unsigned int time_to_empty; 15 | unsigned int capacity; 16 | unsigned int voltage_uV; 17 | 18 | unsigned int state; 19 | }; 20 | 21 | int power_bat_init(unsigned char bus); 22 | #endif /* __POWER_BATTERY_H_ */ 23 | -------------------------------------------------------------------------------- /include/s6e63d6.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 3 | * Guennadi Liakhovetski, DENX Software Engineering, 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | #ifndef _S6E63D6_H_ 8 | #define _S6E63D6_H_ 9 | 10 | struct s6e63d6 { 11 | unsigned int bus; 12 | unsigned int cs; 13 | unsigned int id; 14 | struct spi_slave *slave; 15 | }; 16 | 17 | extern int s6e63d6_init(struct s6e63d6 *data); 18 | extern int s6e63d6_index(struct s6e63d6 *data, u8 idx); 19 | extern int s6e63d6_param(struct s6e63d6 *data, u16 param); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /api/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0+ 2 | # 3 | # (C) Copyright 2007 Semihalf 4 | 5 | include $(TOPDIR)/config.mk 6 | 7 | LIB = $(obj)libapi.o 8 | 9 | COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \ 10 | api_platform-$(ARCH).o 11 | 12 | COBJS := $(COBJS-y) 13 | SRCS := $(COBJS:.o=.c) 14 | OBJS := $(addprefix $(obj),$(COBJS)) 15 | 16 | $(LIB): $(obj).depend $(OBJS) 17 | $(call cmd_link_o_target, $(OBJS)) 18 | 19 | # defines $(obj).depend target 20 | include $(SRCTREE)/rules.mk 21 | 22 | sinclude $(obj).depend 23 | -------------------------------------------------------------------------------- /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_PLAN9 1 16 | #define CONFIG_BOOTM_RTEMS 1 17 | 18 | #define CONFIG_GZIP 1 19 | #define CONFIG_ZLIB 1 20 | #define CONFIG_PARTITIONS 1 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /include/fsl_diu_fb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007, 2011 Freescale Semiconductor, Inc. 3 | * Authors: York Sun 4 | * Timur Tabi 5 | * 6 | * FSL DIU Framebuffer driver 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | int fsl_diu_init(u16 xres, u16 yres, u32 pixel_format, int gamma_fix); 12 | 13 | /* Prototypes for external board-specific functions */ 14 | int platform_diu_init(unsigned int xres, unsigned int yres, const char *port); 15 | void diu_set_pixel_clock(unsigned int pixclock); 16 | -------------------------------------------------------------------------------- /include/led-display.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2005-2010 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * (C) Copyright 2010 6 | * Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com. 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | #ifndef _led_display_h_ 11 | #define _led_display_h_ 12 | 13 | /* Display Commands */ 14 | #define DISPLAY_CLEAR 0x1 /* Clear the display */ 15 | #define DISPLAY_HOME 0x2 /* Set cursor at home position */ 16 | 17 | void display_set(int cmd); 18 | int display_putc(char c); 19 | #endif 20 | -------------------------------------------------------------------------------- /doc/DocBook/stylesheet.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | ansi 5 | 80 6 | 0 7 | 8 | 2 9 | 1 10 | ../docbook.css 11 | 12 | -------------------------------------------------------------------------------- /include/g_dnl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Samsung Electronics 3 | * Lukasz Majewski 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __G_DOWNLOAD_H_ 9 | #define __G_DOWNLOAD_H_ 10 | 11 | #include 12 | #include 13 | int g_dnl_bind_fixup(struct usb_device_descriptor *); 14 | int g_dnl_register(const char *s); 15 | void g_dnl_unregister(void); 16 | 17 | /* USB initialization declaration - board specific */ 18 | void board_usb_init(void); 19 | #endif /* __G_DOWNLOAD_H_ */ 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /drivers/spi/spi.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | void *spi_do_alloc_slave(int offset, int size, unsigned int bus, 12 | unsigned int cs) 13 | { 14 | struct spi_slave *slave; 15 | void *ptr; 16 | 17 | ptr = malloc(size); 18 | if (ptr) { 19 | memset(ptr, '\0', size); 20 | slave = (struct spi_slave *)(ptr + offset); 21 | slave->bus = bus; 22 | slave->cs = cs; 23 | } 24 | 25 | return ptr; 26 | } 27 | -------------------------------------------------------------------------------- /include/configs/woodburn.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2011, Stefano Babic 3 | * 4 | * (C) Copyright 2008-2010 Freescale Semiconductor, Inc. 5 | * 6 | * Configuration for the woodburn board. 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #ifndef __CONFIG_H 12 | #define __CONFIG_H 13 | 14 | #include 15 | #include "woodburn_common.h" 16 | 17 | /* Set TEXT at the beginning of the NOR flash */ 18 | #define CONFIG_SYS_TEXT_BASE 0xA0000000 19 | #define CONFIG_BOARD_EARLY_INIT_F 20 | 21 | #endif /* __CONFIG_H */ 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/configs/xilinx-ppc405.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * (C) Copyright 2008 4 | * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es 5 | * This work has been supported by: QTechnology http://qtec.com/ 6 | * 7 | * (C) Copyright 2008 8 | * Georg Schardt 9 | * 10 | * SPDX-License-Identifier: GPL-2.0+ 11 | */ 12 | 13 | #ifndef __CONFIG_H 14 | #define __CONFIG_H 15 | 16 | /* cpu parameter */ 17 | #define CONFIG_405 1 18 | #define CONFIG_4xx 1 19 | #define CONFIG_XILINX_405 1 20 | 21 | #include 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /net/cdp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* 3 | * Copied from Linux Monitor (LiMon) - Networking. 4 | * 5 | * Copyright 1994 - 2000 Neil Russell. 6 | * (See License) 7 | * Copyright 2000 Roland Borde 8 | * Copyright 2000 Paolo Scaffardi 9 | * Copyright 2000-2002 Wolfgang Denk, wd@denx.de 10 | */ 11 | 12 | #if defined(CONFIG_CMD_CDP) 13 | 14 | #ifndef __CDP_H__ 15 | #define __CDP_H__ 16 | 17 | void CDPStart(void); 18 | /* Process a received CDP packet */ 19 | void cdp_receive(const uchar *pkt, unsigned len); 20 | 21 | #endif /* __CDP_H__ */ 22 | #endif 23 | -------------------------------------------------------------------------------- /arch/sandbox/cpu/u-boot.lds: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011-2012 The Chromium OS Authors. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | * 6 | * SPDX-License-Identifier: GPL-2.0+ 7 | */ 8 | 9 | SECTIONS 10 | { 11 | 12 | . = ALIGN(4); 13 | .u_boot_list : { 14 | KEEP(*(SORT(.u_boot_list*))); 15 | } 16 | 17 | __u_boot_sandbox_option_start = .; 18 | _u_boot_sandbox_getopt : { *(.u_boot_sandbox_getopt) } 19 | __u_boot_sandbox_option_end = .; 20 | 21 | __bss_start = .; 22 | } 23 | 24 | INSERT BEFORE .data; 25 | -------------------------------------------------------------------------------- /drivers/nand/manager/inc/sectorlist.h: -------------------------------------------------------------------------------- 1 | #ifndef __SECTORLIST_H__ 2 | #define __SECTORLIST_H__ 3 | 4 | #include "singlelist.h" 5 | 6 | typedef struct _SectorList SectorList; 7 | struct _SectorList { 8 | struct singlelist head;//must be the first member of the struct 9 | unsigned int startSector; 10 | int sectorCount; 11 | void *pData; 12 | }; 13 | 14 | #define copysectorlist(src,tar) \ 15 | do{ \ 16 | src->startSector = tar->startSector; \ 17 | src->sectorCount = tar->sectorCount; \ 18 | src->pData = tar->pData; \ 19 | }while(0) 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef __ASM_SANDBOX_BYTEORDER_H 8 | #define __ASM_SANDBOX_BYTEORDER_H 9 | 10 | 11 | #include 12 | 13 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) 14 | # define __BYTEORDER_HAS_U64__ 15 | # define __SWAB_64_THRU_32__ 16 | #endif 17 | 18 | #ifdef CONFIG_SANDBOX_BIG_ENDIAN 19 | #include 20 | #else 21 | #include 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /board/ingenic/halley/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 2m 4 | 5 | partition: 6 | #name = start, size, fstype 7 | uboot = 0m, 3m, EMPTY 8 | boot = 3m, 8m, EMPTY 9 | recovery = 11m, 8m, EMPTY 10 | misc = 19m, 4m, EMPTY 11 | battery = 23m, 1m, EMPTY 12 | cache = 24m, 30m, LINUX_FS 13 | device_id = 54m, 2m, EMPTY 14 | system = 56m, 512m, LINUX_FS 15 | data = 568m, 3072m, LINUX_FS 16 | 17 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 18 | -------------------------------------------------------------------------------- /board/ingenic/mensa/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 2m 4 | 5 | partition: 6 | #name = start, size, fstype 7 | uboot = 0m, 3m, EMPTY 8 | boot = 3m, 8m, EMPTY 9 | recovery = 11m, 8m, EMPTY 10 | misc = 19m, 4m, EMPTY 11 | battery = 23m, 1m, EMPTY 12 | cache = 24m, 30m, LINUX_FS 13 | device_id = 54m, 2m, EMPTY 14 | system = 56m, 512m, LINUX_FS 15 | data = 568m, 3072m, LINUX_FS 16 | 17 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 18 | -------------------------------------------------------------------------------- /board/ingenic/newton/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 2m 4 | 5 | partition: 6 | #name = start, size, fstype 7 | uboot = 0m, 3m, EMPTY 8 | boot = 3m, 8m, EMPTY 9 | recovery = 11m, 8m, EMPTY 10 | misc = 19m, 4m, EMPTY 11 | battery = 23m, 1m, EMPTY 12 | cache = 24m, 30m, LINUX_FS 13 | device_id = 54m, 2m, EMPTY 14 | system = 56m, 512m, LINUX_FS 15 | data = 568m, 3072m, LINUX_FS 16 | 17 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /drivers/usb/gadget/ep0.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2003 3 | * Gerry Hamel, geh@ti.com, Texas Instruments 4 | * 5 | * Based on 6 | * linux/drivers/usbd/ep0.c 7 | * 8 | * Copyright (c) 2000, 2001, 2002 Lineo 9 | * Copyright (c) 2001 Hewlett Packard 10 | * 11 | * By: 12 | * Stuart Lynne , 13 | * Tom Rushworth , 14 | * Bruce Balden 15 | * 16 | * SPDX-License-Identifier: GPL-2.0+ 17 | */ 18 | 19 | #ifndef __USBDCORE_EP0_H__ 20 | #define __USBDCORE_EP0_H__ 21 | 22 | 23 | int ep0_recv_setup (struct urb *urb); 24 | 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /include/configs/vexpress_ca15_tc2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2013 Linaro 3 | * Andre Przywara, 4 | * 5 | * Configuration for Versatile Express. Parts were derived from other ARM 6 | * configurations. 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #ifndef __VEXPRESS_CA15X2_TC2_h 12 | #define __VEXPRESS_CA15X2_TC2_h 13 | 14 | #define CONFIG_VEXPRESS_EXTENDED_MEMORY_MAP 15 | #include "vexpress_common.h" 16 | #define CONFIG_BOOTP_VCI_STRING "U-boot.armv7.vexpress_ca15x2_tc2" 17 | 18 | #define CONFIG_SYS_CLK_FREQ 24000000 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /lib/initcall.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | int initcall_run_list(init_fnc_t init_sequence[]) 11 | { 12 | init_fnc_t *init_fnc_ptr; 13 | 14 | for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) { 15 | debug("initcall: %p\n", *init_fnc_ptr); 16 | if ((*init_fnc_ptr)()) { 17 | debug("initcall sequence %p failed at call %p\n", 18 | init_sequence, *init_fnc_ptr); 19 | return -1; 20 | } 21 | } 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/dosilicon_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define DS_MID 0xE5 5 | #define DS_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char ds_q1ga[] = {0x2}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0x71, 2048, 2, 4, 2, 1, ds_q1ga), 11 | }; 12 | 13 | static struct nand_desc dosilicon_nand = { 14 | 15 | .id_manufactory = DS_MID, 16 | .device_counts = DS_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int dosilicon_nand_register_func(void) 21 | { 22 | return nand_register(&dosilicon_nand); 23 | } 24 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/sky_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define SKY_MID 0x01 5 | #define SKY_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char sky_errstat[]= {0x3}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0x15, 2048, 2, 4, 2, 1, sky_errstat), 11 | }; 12 | 13 | static struct nand_desc sky_nand = { 14 | 15 | .id_manufactory = SKY_MID, 16 | .device_counts = SKY_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int sky_nand_register_func(void) { 21 | return nand_register(&sky_nand); 22 | } 23 | 24 | -------------------------------------------------------------------------------- /tools/ingenic-tools/security/README: -------------------------------------------------------------------------------- 1 | Note: 2 | 1, This app need to be compiled with a 32 bit operating system host 3 | 2, see useage run "crypy -h" 4 | 3, aesckey is a chipkey burned on dorasov1.0 #13 board 5 | You need to create and use a new key according to your board 6 | 4, aesukey is a userkey burned on dorasov1.0 #13 board 7 | You need to create and use a new key according to your board 8 | 5, rsakey is a test key 9 | You need to create and use a new key according if you wanted 10 | Example: 11 | crypy -i splsrcbin -o spl_lpddr2.bin -r rsakey -a aesukey -l 992 -s 2 -t 1 -m 1 12 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/global_data.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * (C) Copyright 2002-2010 5 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 6 | * 7 | * SPDX-License-Identifier: GPL-2.0+ 8 | */ 9 | 10 | #ifndef __ASM_GBL_DATA_H 11 | #define __ASM_GBL_DATA_H 12 | 13 | /* Architecture-specific global data */ 14 | struct arch_global_data { 15 | u8 *ram_buf; /* emulated RAM buffer */ 16 | }; 17 | 18 | #include 19 | 20 | #define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd 21 | 22 | #endif /* __ASM_GBL_DATA_H */ 23 | -------------------------------------------------------------------------------- /lib/lzma/LzmaTools.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Usefuls routines based on the LzmaTest.c file from LZMA SDK 4.65 3 | * 4 | * Copyright (C) 2007-2008 Industrie Dial Face S.p.A. 5 | * Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com) 6 | * 7 | * Copyright (C) 1999-2005 Igor Pavlov 8 | * 9 | * SPDX-License-Identifier: GPL-2.0+ 10 | */ 11 | 12 | #ifndef __LZMA_TOOL_H__ 13 | #define __LZMA_TOOL_H__ 14 | 15 | #include 16 | 17 | extern int lzmaBuffToBuffDecompress (unsigned char *outStream, SizeT *uncompressedSize, 18 | unsigned char *inStream, SizeT length); 19 | #endif 20 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/dosilicon_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define DS_MID 0xE5 5 | #define DS_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char ds_q1ga[] = {0x2}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0x71, 2048, 2, 4, 2, 1, ds_q1ga), 11 | }; 12 | 13 | static struct nand_desc dosilicon_nand = { 14 | 15 | .id_manufactory = DS_MID, 16 | .device_counts = DS_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int dosilicon_nand_register_func(void) 21 | { 22 | return nand_register(&dosilicon_nand); 23 | } 24 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/sky_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define SKY_MID 0x01 5 | #define SKY_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char sky_errstat[]= {0x3}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0x15, 2048, 2, 4, 2, 1, sky_errstat), 11 | }; 12 | 13 | static struct nand_desc sky_nand = { 14 | 15 | .id_manufactory = SKY_MID, 16 | .device_counts = SKY_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int sky_nand_register_func(void) { 21 | return nand_register(&sky_nand); 22 | } 23 | 24 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/security/README: -------------------------------------------------------------------------------- 1 | Note: 2 | 1, This app need to be compiled with a 32 bit operating system host 3 | 2, see useage run "crypy -h" 4 | 3, aesckey is a chipkey burned on dorasov1.0 #13 board 5 | You need to create and use a new key according to your board 6 | 4, aesukey is a userkey burned on dorasov1.0 #13 board 7 | You need to create and use a new key according to your board 8 | 5, rsakey is a test key 9 | You need to create and use a new key according if you wanted 10 | Example: 11 | crypy -i splsrcbin -o spl_lpddr2.bin -r rsakey -a aesukey -l 992 -s 2 -t 1 -m 1 12 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/cache.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | #ifndef __SANDBOX_CACHE_H__ 8 | #define __SANDBOX_CACHE_H__ 9 | 10 | /* 11 | * For native compilation of the sandbox we should still align 12 | * the contents of stack buffers to something reasonable. The 13 | * GCC macro __BIGGEST_ALIGNMENT__ is defined to be the maximum 14 | * required alignment for any basic type. This seems reasonable. 15 | */ 16 | #define ARCH_DMA_MINALIGN __BIGGEST_ALIGNMENT__ 17 | 18 | #endif /* __SANDBOX_CACHE_H__ */ 19 | -------------------------------------------------------------------------------- /include/pca9698.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2011 3 | * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __PCA9698_H_ 9 | #define __PCA9698_H_ 10 | 11 | int pca9698_request(unsigned gpio, const char *label); 12 | void pca9698_free(unsigned gpio); 13 | int pca9698_direction_input(u8 addr, unsigned gpio); 14 | int pca9698_direction_output(u8 addr, unsigned gpio, int value); 15 | int pca9698_get_value(u8 addr, unsigned gpio); 16 | int pca9698_set_value(u8 addr, unsigned gpio, int value); 17 | 18 | #endif /* __PCA9698_H_ */ 19 | -------------------------------------------------------------------------------- /include/configs/P5040DS.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2011 Freescale Semiconductor, Inc. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | /* 8 | * P5040 DS board configuration file 9 | * 10 | */ 11 | #define CONFIG_P5040DS 12 | #define CONFIG_PHYS_64BIT 13 | #define CONFIG_PPC_P5040 14 | 15 | #define CONFIG_FSL_NGPIXIS /* use common ngPIXIS code */ 16 | 17 | #define CONFIG_MMC 18 | #define CONFIG_NAND_FSL_ELBC 19 | #define CONFIG_PCIE3 20 | #define CONFIG_SYS_FSL_RAID_ENGINE 21 | 22 | #define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ 23 | 24 | #include "corenet_ds.h" 25 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/alliance_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define AS_MID 0x52 5 | #define AS_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char as5f_errstat[] = {0x2}; 8 | 9 | static struct device_struct device[AS_NAND_DEVICD_COUNT] = { 10 | DEVICE_STRUCT(0x2d, 4096, 2, 4, 2, 1, as5f_errstat), 11 | }; 12 | 13 | static struct nand_desc as_nand = { 14 | .id_manufactory = AS_MID, 15 | .device_counts = AS_NAND_DEVICD_COUNT, 16 | .device = device, 17 | }; 18 | 19 | int alliance_nand_register_func(void) { 20 | return nand_register(&as_nand); 21 | } 22 | -------------------------------------------------------------------------------- /arch/mips/include/asm/cache.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Copyright (c) 2011 The Chromium OS Authors. 4 | */ 5 | 6 | #ifndef __MIPS_CACHE_H__ 7 | #define __MIPS_CACHE_H__ 8 | 9 | /* 10 | * The maximum L1 data cache line size on MIPS seems to be 128 bytes. We use 11 | * that as a default for aligning DMA buffers unless the board config has 12 | * specified another cache line size. 13 | */ 14 | #ifdef CONFIG_SYS_CACHELINE_SIZE 15 | #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE 16 | #else 17 | #define ARCH_DMA_MINALIGN 128 18 | #endif 19 | 20 | #endif /* __MIPS_CACHE_H__ */ 21 | -------------------------------------------------------------------------------- /board/ingenic/dorado/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | recovery = 12m, 16m, EMPTY 11 | pretest = 28m, 16m, EMPTY 12 | reserved = 44m, 52m, EMPTY 13 | misc = 96m, 4m, EMPTY 14 | cache = 100m, 100m, LINUX_FS 15 | system = 200m, 700m, LINUX_FS 16 | data = 900m, 2048m, LINUX_FS 17 | 18 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 19 | -------------------------------------------------------------------------------- /board/ingenic/icam01m/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | recovery = 12m, 16m, EMPTY 11 | pretest = 28m, 16m, EMPTY 12 | reserved = 44m, 52m, EMPTY 13 | misc = 96m, 4m, EMPTY 14 | cache = 100m, 100m, LINUX_FS 15 | system = 200m, 700m, LINUX_FS 16 | data = 900m, 2048m, LINUX_FS 17 | 18 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 19 | -------------------------------------------------------------------------------- /board/ingenic/newton2/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | recovery = 12m, 16m, EMPTY 11 | pretest = 28m, 16m, EMPTY 12 | reserved = 44m, 52m, EMPTY 13 | misc = 96m, 4m, EMPTY 14 | cache = 100m, 100m, LINUX_FS 15 | system = 200m, 700m, LINUX_FS 16 | data = 900m, 2048m, LINUX_FS 17 | 18 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 19 | -------------------------------------------------------------------------------- /board/ingenic/pictor/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | recovery = 12m, 16m, EMPTY 11 | pretest = 28m, 16m, EMPTY 12 | reserved = 44m, 52m, EMPTY 13 | misc = 96m, 4m, EMPTY 14 | cache = 100m, 100m, LINUX_FS 15 | system = 200m, 700m, LINUX_FS 16 | data = 900m, 2048m, LINUX_FS 17 | 18 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 19 | -------------------------------------------------------------------------------- /examples/standalone/test_burst.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2005 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef _TEST_BURST_H 9 | #define _TEST_BURST_H 10 | 11 | /* Cache line size */ 12 | #define CACHE_LINE_SIZE 16 13 | /* Binary logarithm of the cache line size */ 14 | #define LG_CACHE_LINE_SIZE 4 15 | 16 | #ifndef __ASSEMBLY__ 17 | extern void mmu_init(void); 18 | extern void caches_init(void); 19 | extern void flush_dcache_range(unsigned long start, unsigned long stop); 20 | #endif 21 | 22 | #endif /* _TEST_BURST_H */ 23 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/alliance_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define AS_MID 0x52 5 | #define AS_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char as5f_errstat[] = {0x2}; 8 | 9 | static struct device_struct device[AS_NAND_DEVICD_COUNT] = { 10 | DEVICE_STRUCT(0x2d, 4096, 2, 4, 2, 1, as5f_errstat), 11 | }; 12 | 13 | static struct nand_desc as_nand = { 14 | .id_manufactory = AS_MID, 15 | .device_counts = AS_NAND_DEVICD_COUNT, 16 | .device = device, 17 | }; 18 | 19 | int alliance_nand_register_func(void) { 20 | return nand_register(&as_nand); 21 | } 22 | -------------------------------------------------------------------------------- /tools/kernel-doc/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012 Marek Vasut 3 | # 4 | # SPDX-License-Identifier: GPL-2.0+ 5 | 6 | include $(TOPDIR)/config.mk 7 | 8 | all: $(obj)docproc 9 | 10 | $(obj)docproc: docproc.c 11 | $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ 12 | $(HOSTSTRIP) $@ 13 | 14 | clean: 15 | rm -rf docproc 16 | 17 | ######################################################################### 18 | 19 | # defines $(obj).depend target 20 | include $(SRCTREE)/rules.mk 21 | 22 | sinclude $(obj).depend 23 | 24 | ######################################################################### 25 | -------------------------------------------------------------------------------- /board/ingenic/palladium_m200/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 4096m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | recovery = 12m, 16m, EMPTY 11 | pretest = 28m, 16m, EMPTY 12 | reserved = 44m, 52m, EMPTY 13 | misc = 96m, 4m, EMPTY 14 | cache = 100m, 100m, LINUX_FS 15 | system = 200m, 700m, LINUX_FS 16 | data = 900m, 2048m, LINUX_FS 17 | 18 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/speed_dug.h: -------------------------------------------------------------------------------- 1 | #ifndef _SPEED_DUG_H_ 2 | #define _SPEED_DUG_H_ 3 | 4 | #include 5 | #include 6 | 7 | #define NDD_READ 1 8 | #define NDD_WRITE 0 9 | #define DEBUG_TIME_BYTES (10 * 1024 *1024) //10MB 10 | 11 | void __speed_dug_begin(int mode, PageList *pl); 12 | void __speed_dug_end(int mode); 13 | 14 | #ifdef DEBUG_SPEED 15 | #define speed_dug_begin(mode, pl) __speed_dug_begin(mode, pl) 16 | #define speed_dug_end(mode) __speed_dug_end(mode) 17 | #else 18 | #define speed_dug_begin(mode, pl) 19 | #define speed_dug_end(mode) 20 | #endif 21 | 22 | #endif /* _SPEED_DUG_H_ */ 23 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/spl_rw.h: -------------------------------------------------------------------------------- 1 | #ifndef _SPL_RW_H 2 | #define _SPL_RW_H 3 | 4 | #include "nand_ops.h" 5 | #include "nddata.h" 6 | #include "ndcommand.h" 7 | #include "pagelist.h" 8 | #include "nand_io.h" 9 | #include "nand_bch.h" 10 | 11 | #define SPL_BAK_NUM 1 12 | #define SPL_BCH_SIZE 256 13 | #define SPL_BCH_BIT 64 14 | #define SPL_PAR_SIZE (SPL_BCH_BIT * 14 / 8) 15 | #define SPL_BCH_ID 0 16 | #define SPL_CS 0 17 | 18 | int spl_write(int handle, PageList *pl); 19 | int spl_read(int handle, PageList *pl); 20 | int spl_init(nand_data *data); 21 | void spl_deinit(int handle); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsBuffMgt.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file (Replaced by OSAL) 3 | * 4 | * @brief This file includes the OS dependant MBUF header files. 5 | * 6 | * 7 | * @par 8 | * IXP400 SW Release version 2.0 9 | * 10 | * -- Copyright Notice -- 11 | * 12 | * @par 13 | * Copyright 2001-2005, Intel Corporation. 14 | * All rights reserved. 15 | * 16 | * @par 17 | * SPDX-License-Identifier: BSD-3-Clause 18 | * @par 19 | * -- End of Copyright Notice -- 20 | */ 21 | 22 | 23 | #ifndef IxOsBuffMgt_inc 24 | #define IxOsBuffMgt_inc 25 | 26 | #include "IxOsalBackward.h" 27 | 28 | #endif /* ndef IxOsBuffMgt_inc */ 29 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/tizen/tizen.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2012 Samsung Electronics 3 | * Donghwa Lee 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #include "tizen_hd_logo.h" 13 | #include "tizen_hd_logo_data.h" 14 | 15 | void get_tizen_logo_info(vidinfo_t *vid) 16 | { 17 | switch (vid->resolution) { 18 | case HD_RESOLUTION: 19 | vid->logo_width = TIZEN_HD_LOGO_WIDTH; 20 | vid->logo_height = TIZEN_HD_LOGO_HEIGHT; 21 | vid->logo_addr = (ulong)tizen_hd_logo; 22 | break; 23 | default: 24 | break; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/os_boot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | int spl_start_uboot(void) 9 | { 10 | printf("mach spl_start_uboot ? no\n"); 11 | return 0; 12 | } 13 | 14 | void spl_board_prepare_for_linux(void) 15 | { 16 | #ifdef CONFIG_PALLADIUM 17 | printf("mach spl_board_prepare_for_linux\n"); 18 | void (*uboot)(void); 19 | uboot = (void (*)(void))0x80020000; 20 | (*uboot)(); 21 | #endif 22 | } 23 | 24 | int cleanup_before_linux (void) 25 | { 26 | printf("mach cleanup_before_linux\n"); 27 | } 28 | -------------------------------------------------------------------------------- /lib/rand.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Simple xorshift PRNG 3 | * see http://www.jstatsoft.org/v08/i14/paper 4 | * 5 | * Copyright (c) 2012 Michael Walle 6 | * Michael Walle 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #include 12 | 13 | static unsigned int y = 1U; 14 | 15 | unsigned int rand_r(unsigned int *seedp) 16 | { 17 | *seedp ^= (*seedp << 13); 18 | *seedp ^= (*seedp >> 17); 19 | *seedp ^= (*seedp << 5); 20 | 21 | return *seedp; 22 | } 23 | 24 | unsigned int rand(void) 25 | { 26 | return rand_r(&y); 27 | } 28 | 29 | void srand(unsigned int seed) 30 | { 31 | y = seed; 32 | } 33 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/wodposit_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define WODPOSIT_MID 0xA5 5 | #define WODPOSIT_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char wodposit_xaw[] = {0x2}; 8 | 9 | static struct device_struct device[1] = { 10 | DEVICE_STRUCT(0xA0, 2048, 2, 4, 2, 1, wodposit_xaw), 11 | }; 12 | 13 | static struct nand_desc wodposit_nand = { 14 | 15 | .id_manufactory = WODPOSIT_MID, 16 | .device_counts = WODPOSIT_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int wodposit_nand_register_func(void) { 21 | return nand_register(&wodposit_nand); 22 | } 23 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/xtx_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define XTX_MID 0xA1 5 | #define XTX_NAND_DEVICD_COUNT 2 6 | 7 | static unsigned char xtx_xaw[] = {0x2}; 8 | 9 | static struct device_struct device[2] = { 10 | DEVICE_STRUCT(0xE1, 2048, 2, 4, 2, 1, xtx_xaw), 11 | DEVICE_STRUCT(0xE2, 2048, 2, 4, 2, 1, xtx_xaw), 12 | }; 13 | 14 | static struct nand_desc xtx_nand = { 15 | 16 | .id_manufactory = XTX_MID, 17 | .device_counts = XTX_NAND_DEVICD_COUNT, 18 | .device = device, 19 | }; 20 | 21 | int xtx_nand_register_func(void) { 22 | return nand_register(&xtx_nand); 23 | } 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/wodposit_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define WODPOSIT_MID 0xA5 5 | #define WODPOSIT_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char wodposit_xaw[] = {0x2}; 8 | 9 | static struct device_struct device[1] = { 10 | DEVICE_STRUCT(0xA0, 2048, 2, 4, 2, 1, wodposit_xaw), 11 | }; 12 | 13 | static struct nand_desc wodposit_nand = { 14 | 15 | .id_manufactory = WODPOSIT_MID, 16 | .device_counts = WODPOSIT_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int wodposit_nand_register_func(void) { 21 | return nand_register(&wodposit_nand); 22 | } 23 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/xtx_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define XTX_MID 0xA1 5 | #define XTX_NAND_DEVICD_COUNT 2 6 | 7 | static unsigned char xtx_xaw[] = {0x2}; 8 | 9 | static struct device_struct device[2] = { 10 | DEVICE_STRUCT(0xE1, 2048, 2, 4, 2, 1, xtx_xaw), 11 | DEVICE_STRUCT(0xE2, 2048, 2, 4, 2, 1, xtx_xaw), 12 | }; 13 | 14 | static struct nand_desc xtx_nand = { 15 | 16 | .id_manufactory = XTX_MID, 17 | .device_counts = XTX_NAND_DEVICD_COUNT, 18 | .device = device, 19 | }; 20 | 21 | int xtx_nand_register_func(void) { 22 | return nand_register(&xtx_nand); 23 | } 24 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/xtx_mid0b_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define XTX_MID0B_MID 0x0B 5 | #define XTX_MID0B_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char xtx_mid0b_xaw[] = {0xf}; 8 | 9 | static struct device_struct device[1] = { 10 | DEVICE_STRUCT(0x11, 2048, 2, 4, 4, 1, xtx_mid0b_xaw), 11 | }; 12 | 13 | static struct nand_desc xtx_mid0b_nand = { 14 | 15 | .id_manufactory = XTX_MID0B_MID, 16 | .device_counts = XTX_MID0B_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int xtx_mid0b_nand_register_func(void) { 21 | return nand_register(&xtx_mid0b_nand); 22 | } 23 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/xtx_mid2c_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define XTX_MID2C_MID 0x2C 5 | #define XTX_MID2C_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char xtx_mid2c_xaw[] = {0x2}; 8 | 9 | static struct device_struct device[1] = { 10 | DEVICE_STRUCT(0x24, 2048, 2, 4, 3, 1, xtx_mid2c_xaw), 11 | }; 12 | 13 | static struct nand_desc xtx_mid2c_nand = { 14 | 15 | .id_manufactory = XTX_MID2C_MID, 16 | .device_counts = XTX_MID2C_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int xtx_mid2c_nand_register_func(void) { 21 | return nand_register(&xtx_mid2c_nand); 22 | } 23 | -------------------------------------------------------------------------------- /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 | #include 13 | 14 | struct sb_cmdline_option; 15 | 16 | extern struct sb_cmdline_option *__u_boot_sandbox_option_start[], 17 | *__u_boot_sandbox_option_end[]; 18 | 19 | static inline size_t __u_boot_sandbox_option_count(void) 20 | { 21 | return __u_boot_sandbox_option_end - __u_boot_sandbox_option_start; 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/xtx_mid0b_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define XTX_MID0B_MID 0x0B 5 | #define XTX_MID0B_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char xtx_mid0b_xaw[] = {0xf}; 8 | 9 | static struct device_struct device[1] = { 10 | DEVICE_STRUCT(0x11, 2048, 2, 4, 4, 1, xtx_mid0b_xaw), 11 | }; 12 | 13 | static struct nand_desc xtx_mid0b_nand = { 14 | 15 | .id_manufactory = XTX_MID0B_MID, 16 | .device_counts = XTX_MID0B_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int xtx_mid0b_nand_register_func(void) { 21 | return nand_register(&xtx_mid0b_nand); 22 | } 23 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/xtx_mid2c_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define XTX_MID2C_MID 0x2C 5 | #define XTX_MID2C_NAND_DEVICD_COUNT 1 6 | 7 | static unsigned char xtx_mid2c_xaw[] = {0x2}; 8 | 9 | static struct device_struct device[1] = { 10 | DEVICE_STRUCT(0x24, 2048, 2, 4, 3, 1, xtx_mid2c_xaw), 11 | }; 12 | 13 | static struct nand_desc xtx_mid2c_nand = { 14 | 15 | .id_manufactory = XTX_MID2C_MID, 16 | .device_counts = XTX_MID2C_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int xtx_mid2c_nand_register_func(void) { 21 | return nand_register(&xtx_mid2c_nand); 22 | } 23 | -------------------------------------------------------------------------------- /post/lib_powerpc/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002-2006 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # See file CREDITS for list of people who contributed to this 6 | # project. 7 | # 8 | # SPDX-License-Identifier: GPL-2.0+ 9 | include $(TOPDIR)/config.mk 10 | 11 | LIB = libpost$(ARCH).o 12 | 13 | AOBJS-$(CONFIG_HAS_POST) += asm.o 14 | COBJS-$(CONFIG_HAS_POST) += cpu.o cmp.o cmpi.o two.o twox.o three.o threex.o 15 | COBJS-$(CONFIG_HAS_POST) += threei.o andi.o srawi.o rlwnm.o rlwinm.o rlwimi.o 16 | COBJS-$(CONFIG_HAS_POST) += store.o load.o cr.o b.o multi.o string.o complex.o 17 | 18 | include $(TOPDIR)/post/rules.mk 19 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/fm25s_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define FM25S_MID 0xA1 5 | #define FM25S_NAND_DEVICD_COUNT 2 6 | 7 | static unsigned char fm25s_02a[] = {0x2, 0x3}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0xE4, 2048, 2, 4, 2, 2, fm25s_02a), 11 | DEVICE_STRUCT(0xE5, 2048, 2, 4, 2, 2, fm25s_02a), 12 | }; 13 | 14 | static struct nand_desc fm25s_nand = { 15 | .id_manufactory = FM25S_MID, 16 | .device_counts = FM25S_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int fm25s_nand_register_func(void) { 21 | return nand_register(&fm25s_nand); 22 | } 23 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsalUtilitySymbols.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * 4 | * @brief OSAL Configuration header file 5 | * 6 | * 7 | * @par 8 | * IXP400 SW Release version 2.0 9 | * 10 | * -- Copyright Notice -- 11 | * 12 | * @par 13 | * Copyright 2001-2005, Intel Corporation. 14 | * All rights reserved. 15 | * 16 | * @par 17 | * SPDX-License-Identifier: BSD-3-Clause 18 | * @par 19 | * -- End of Copyright Notice -- 20 | */ 21 | 22 | #ifndef IxOsalUtilitySymbols_H 23 | #define IxOsalUtilitySymbols_H 24 | 25 | #include "IxOsalOsUtilitySymbols.h" /* OS-specific utility symbol definitions */ 26 | 27 | #endif /* IxOsalUtilitySymbols_H */ 28 | -------------------------------------------------------------------------------- /drivers/watchdog/bfin_wdt.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 | #include 13 | 14 | void hw_watchdog_reset(void) 15 | { 16 | bfin_write_WDOG_STAT(0); 17 | } 18 | 19 | void hw_watchdog_init(void) 20 | { 21 | bfin_write_WDOG_CTL(WDDIS); 22 | SSYNC(); 23 | bfin_write_WDOG_CNT(CONFIG_WATCHDOG_TIMEOUT_MSECS / 1000 * get_sclk()); 24 | hw_watchdog_reset(); 25 | bfin_write_WDOG_CTL(WDEN); 26 | } 27 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/fm25s_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define FM25S_MID 0xA1 5 | #define FM25S_NAND_DEVICD_COUNT 2 6 | 7 | static unsigned char fm25s_02a[] = {0x2, 0x3}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0xE4, 2048, 2, 4, 2, 2, fm25s_02a), 11 | DEVICE_STRUCT(0xE5, 2048, 2, 4, 2, 2, fm25s_02a), 12 | }; 13 | 14 | static struct nand_desc fm25s_nand = { 15 | .id_manufactory = FM25S_MID, 16 | .device_counts = FM25S_NAND_DEVICD_COUNT, 17 | .device = device, 18 | }; 19 | 20 | int fm25s_nand_register_func(void) { 21 | return nand_register(&fm25s_nand); 22 | } 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips32/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2003 3 | # Wolfgang Denk, DENX Software Engineering, 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | # 9 | # Default optimization level for MIPS32 10 | # 11 | # Note: Toolchains with binutils prior to v2.16 12 | # are no longer supported by U-Boot MIPS tree! 13 | # 14 | MIPSFLAGS := -march=mips32r2 15 | 16 | PLATFORM_CPPFLAGS += $(MIPSFLAGS) 17 | PLATFORM_CPPFLAGS += -mabi=32 -DCONFIG_32BIT 18 | ifdef CONFIG_SYS_BIG_ENDIAN 19 | PLATFORM_LDFLAGS += -m elf32btsmip 20 | else 21 | PLATFORM_LDFLAGS += -m elf32ltsmip 22 | endif 23 | 24 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds 25 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsServicesMemAccess.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IxOsServicesMemAccess.h (Replaced by OSAL) 3 | * 4 | * @brief Header file for memory access 5 | * 6 | * @par 7 | * 8 | * @par 9 | * IXP400 SW Release version 2.0 10 | * 11 | * -- Copyright Notice -- 12 | * 13 | * @par 14 | * Copyright 2001-2005, Intel Corporation. 15 | * All rights reserved. 16 | * 17 | * @par 18 | * SPDX-License-Identifier: BSD-3-Clause 19 | * @par 20 | * -- End of Copyright Notice -- 21 | */ 22 | 23 | #ifndef IxOsServicesMemAccess_H 24 | #define IxOsServicesMemAccess_H 25 | 26 | #include "IxOsalBackward.h" 27 | 28 | #endif /* IxOsServicesMemAccess_H */ 29 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/jz_lcd/truly_tft240240_2_e.h: -------------------------------------------------------------------------------- 1 | /* 2 | * M200 common routines 3 | * 4 | * Copyright (c) 2014 Ingenic Semiconductor Co.,Ltd 5 | * Author: Huddy 6 | * Based on: xboot/boot/lcd/jz4775_android_lcd.h 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #ifndef __TRULY_TFT240240_2_E_H__ 12 | #define __TRULY_TFT240240_2_E_H__ 13 | 14 | struct truly_tft240240_2_e_data { 15 | unsigned int gpio_lcd_rd; 16 | unsigned int gpio_lcd_rst; 17 | unsigned int gpio_lcd_cs; 18 | unsigned int gpio_lcd_bl; 19 | }; 20 | 21 | extern struct truly_tft240240_2_e_data truly_tft240240_2_e_pdata; 22 | 23 | #endif /* __TRULY_TFT240240_2_E_H__ */ 24 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsBufLib.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IxOsBufLib.h (Replaced by OSAL) 3 | * 4 | * @date 9 Oct 2002 5 | * 6 | * @brief This file contains the mbuf pool initialisation entry point 7 | * 8 | * 9 | * @par 10 | * IXP400 SW Release version 2.0 11 | * 12 | * -- Copyright Notice -- 13 | * 14 | * @par 15 | * Copyright 2001-2005, Intel Corporation. 16 | * All rights reserved. 17 | * 18 | * @par 19 | * SPDX-License-Identifier: BSD-3-Clause 20 | * @par 21 | * -- End of Copyright Notice -- 22 | * 23 | */ 24 | 25 | #ifndef IXOSBUFLIB_H 26 | #define IXOSBUFLIB_H 27 | 28 | #include "IxOsalBackward.h" 29 | 30 | #endif /* IXOSBUFLIB_H */ 31 | 32 | -------------------------------------------------------------------------------- /include/lynxkdi.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2003 3 | * Orbacom Systems, Inc. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __LYNXKDI_H__ 9 | #define __LYNXKDI_H__ 10 | 11 | 12 | /* Boot parameter struct passed to kernel 13 | */ 14 | typedef struct lynxos_bootparms_t { 15 | uint8_t rsvd1[2]; /* Reserved */ 16 | uint8_t ethaddr[6]; /* Ethernet address */ 17 | uint16_t flags; /* Boot flags */ 18 | uint32_t rate; /* System frequency */ 19 | uint32_t clock_ref; /* Time reference */ 20 | uint32_t dramsz; /* DRAM size */ 21 | uint32_t rsvd2; /* Reserved */ 22 | } lynxos_bootparms_t; 23 | 24 | 25 | #endif /* __LYNXKDI_H__ */ 26 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips64/config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2003 3 | # Wolfgang Denk, DENX Software Engineering, 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | # 9 | # Default optimization level for MIPS64 10 | # 11 | # Note: Toolchains with binutils prior to v2.16 12 | # are no longer supported by U-Boot MIPS tree! 13 | # 14 | MIPSFLAGS = -march=mips64 15 | 16 | PLATFORM_CPPFLAGS += $(MIPSFLAGS) 17 | PLATFORM_CPPFLAGS += -mabi=64 -DCONFIG_64BIT 18 | ifdef CONFIG_SYS_BIG_ENDIAN 19 | PLATFORM_LDFLAGS += -m elf64btsmip 20 | else 21 | PLATFORM_LDFLAGS += -m elf64ltsmip 22 | endif 23 | 24 | CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 -T mips64.lds 25 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/zfs/sa_impl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | /* 8 | * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 9 | * Use is subject to license terms. 10 | */ 11 | #ifndef _SYS_SA_IMPL_H 12 | #define _SYS_SA_IMPL_H 13 | 14 | typedef struct sa_hdr_phys { 15 | uint32_t sa_magic; 16 | uint16_t sa_layout_info; 17 | uint16_t sa_lengths[1]; 18 | } sa_hdr_phys_t; 19 | 20 | #define SA_HDR_SIZE(hdr) BF32_GET_SB(hdr->sa_layout_info, 10, 16, 3, 0) 21 | #define SA_SIZE_OFFSET 0x8 22 | 23 | #endif /* _SYS_SA_IMPL_H */ 24 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/winbond_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define WINBOND_MID 0xEF 5 | #define WINBOND_NAND_DEVICD_COUNT 2 6 | 7 | static unsigned char winbond_xgv[] = {0x2, 0x3}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0xAA, 2048, 2, 4, 2, 2, winbond_xgv), 11 | DEVICE_STRUCT(0xAB, 2048, 2, 4, 2, 2, winbond_xgv), 12 | }; 13 | 14 | static struct nand_desc winbond_nand = { 15 | 16 | .id_manufactory = WINBOND_MID, 17 | .device_counts = WINBOND_NAND_DEVICD_COUNT, 18 | .device = device, 19 | }; 20 | 21 | int winbond_nand_register_func(void) { 22 | return nand_register(&winbond_nand); 23 | } 24 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsServicesEndianess.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IxOsServicesEndianess.h (Replaced by OSAL) 3 | * 4 | * @brief Header file for determining system endianess and OS 5 | * 6 | * @par 7 | * 8 | * @par 9 | * IXP400 SW Release version 2.0 10 | * 11 | * -- Copyright Notice -- 12 | * 13 | * @par 14 | * Copyright 2001-2005, Intel Corporation. 15 | * All rights reserved. 16 | * 17 | * @par 18 | * SPDX-License-Identifier: BSD-3-Clause 19 | * @par 20 | * -- End of Copyright Notice -- 21 | */ 22 | 23 | #ifndef IxOsServicesEndianess_H 24 | #define IxOsServicesEndianess_H 25 | 26 | #include "IxOsalBackward.h" 27 | 28 | #endif /* IxOsServicesEndianess_H */ 29 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/winbond_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define WINBOND_MID 0xEF 5 | #define WINBOND_NAND_DEVICD_COUNT 2 6 | 7 | static unsigned char winbond_xgv[] = {0x2, 0x3}; 8 | 9 | static struct device_struct device[] = { 10 | DEVICE_STRUCT(0xAA, 2048, 2, 4, 2, 2, winbond_xgv), 11 | DEVICE_STRUCT(0xAB, 2048, 2, 4, 2, 2, winbond_xgv), 12 | }; 13 | 14 | static struct nand_desc winbond_nand = { 15 | 16 | .id_manufactory = WINBOND_MID, 17 | .device_counts = WINBOND_NAND_DEVICD_COUNT, 18 | .device = device, 19 | }; 20 | 21 | int winbond_nand_register_func(void) { 22 | return nand_register(&winbond_nand); 23 | } 24 | -------------------------------------------------------------------------------- /arch/mips/include/asm/u-boot-mips.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Copyright (C) 2003 Wolfgang Denk, DENX Software Engineering, wd@denx.de 4 | */ 5 | 6 | static inline unsigned long bss_start(void) 7 | { 8 | extern char __bss_start[]; 9 | return (unsigned long) &__bss_start; 10 | } 11 | 12 | static inline unsigned long bss_end(void) 13 | { 14 | extern ulong __bss_end; 15 | return (unsigned long) &__bss_end; 16 | } 17 | 18 | static inline unsigned long image_copy_end(void) 19 | { 20 | extern char __image_copy_end[]; 21 | return (unsigned long) &__image_copy_end; 22 | } 23 | 24 | extern int incaip_set_cpuclk(void); 25 | 26 | int cleanup_before_linux (void); 27 | -------------------------------------------------------------------------------- /include/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2000-2006 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __VERSION_H__ 9 | #define __VERSION_H__ 10 | 11 | #include 12 | 13 | #ifndef DO_DEPS_ONLY 14 | #include "generated/version_autogenerated.h" 15 | #endif 16 | 17 | #ifndef CONFIG_IDENT_STRING 18 | #define CONFIG_IDENT_STRING "" 19 | #endif 20 | 21 | #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \ 22 | U_BOOT_TIME ")" CONFIG_IDENT_STRING 23 | 24 | #ifndef __ASSEMBLY__ 25 | extern const char version_string[]; 26 | #endif /* __ASSEMBLY__ */ 27 | #endif /* __VERSION_H__ */ 28 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsServices.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file (Replaced by OSAL) 3 | * 4 | * @brief this file contains the API of the @ref IxOsServices component 5 | * 6 | * 7 | * @par 8 | * IXP400 SW Release version 2.0 9 | * 10 | * -- Copyright Notice -- 11 | * 12 | * @par 13 | * Copyright 2001-2005, Intel Corporation. 14 | * All rights reserved. 15 | * 16 | * @par 17 | * SPDX-License-Identifier: BSD-3-Clause 18 | * @par 19 | * -- End of Copyright Notice -- 20 | */ 21 | #ifndef IxOsServices_H 22 | 23 | #ifndef __doxygen_hide 24 | #define IxOsServices_H 25 | #endif /* __doxygen_hide */ 26 | 27 | #include "IxOsalBackward.h" 28 | 29 | #endif /* IxOsServices_H */ 30 | 31 | 32 | -------------------------------------------------------------------------------- /include/config_uncmd_spl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2012 3 | * Ilya Yanok, ilya.yanok@gmail.com 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __CONFIG_UNCMD_SPL_H__ 9 | #define __CONFIG_UNCMD_SPL_H__ 10 | 11 | #ifdef CONFIG_SPL_BUILD 12 | /* SPL needs only BOOTP + TFTP so undefine other stuff to save space */ 13 | #undef CONFIG_CMD_CDP 14 | #undef CONFIG_CMD_DHCP 15 | #undef CONFIG_CMD_DNS 16 | #undef CONFIG_CMD_LINK_LOCAL 17 | #undef CONFIG_CMD_NFS 18 | #undef CONFIG_CMD_PING 19 | #undef CONFIG_CMD_RARP 20 | #undef CONFIG_CMD_SNTP 21 | #undef CONFIG_CMD_TFTPPUT 22 | #undef CONFIG_CMD_TFTPSRV 23 | #endif /* CONFIG_SPL_BUILD */ 24 | #endif /* __CONFIG_UNCMD_SPL_H__ */ 25 | -------------------------------------------------------------------------------- /include/linux/mtd/concat.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * MTD device concatenation layer definitions 4 | * 5 | * Copyright © 2002 Robert Kaiser 6 | * 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 | #ifndef __UBOOT__ 16 | const char *name); /* name for the new device */ 17 | #else 18 | char *name); /* name for the new device */ 19 | #endif 20 | 21 | void mtd_concat_destroy(struct mtd_info *mtd); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /include/sed156x.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2004 3 | * 4 | * Pantelis Antoniou 5 | * Intracom S.A. 6 | * 7 | * SPDX-License-Identifier: GPL-2.0+ 8 | */ 9 | 10 | /* Video support for Epson SED156x chipset(s) */ 11 | 12 | #ifndef SED156X_H 13 | #define SED156X_H 14 | 15 | void sed156x_init(void); 16 | void sed156x_clear(void); 17 | void sed156x_output_at(int x, int y, const char *str, int size); 18 | void sed156x_reverse_at(int x, int y, int size); 19 | void sed156x_sync(void); 20 | void sed156x_scroll(int dx, int dy); 21 | 22 | /* export display */ 23 | extern const int sed156x_text_width; 24 | extern const int sed156x_text_height; 25 | 26 | #endif /* SED156X_H */ 27 | -------------------------------------------------------------------------------- /board/ingenic/f4785/partitions.tab: -------------------------------------------------------------------------------- 1 | property: 2 | disk_size = 7300m 3 | gpt_header_lba = 512 4 | custom_signature = 0 5 | 6 | partition: 7 | #name = start, size, fstype 8 | #xboot = 0m, 3m, 9 | boot = 3m, 8m, EMPTY 10 | recovery = 12m, 16m, EMPTY 11 | pretest = 28m, 16m, EMPTY 12 | reserved = 44m, 52m, EMPTY 13 | misc = 96m, 4m, EMPTY 14 | cache = 100m, 100m, LINUX_FS 15 | system = 200m, 700m, LINUX_FS 16 | data = 900m, 1024m, LINUX_FS 17 | storage1 = 1924m, 800m, FAT_FS 18 | storage2 = 2724m, 4576m, FAT_FS 19 | 20 | #fstype could be: LINUX_FS, FAT_FS, EMPTY 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/sandbox/include/asm/u-boot-sandbox.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The Chromium OS Authors. 3 | * 4 | * (C) Copyright 2002 5 | * Sysgo Real-Time Solutions, GmbH 6 | * Marius Groeger 7 | * 8 | * (C) Copyright 2002 9 | * Sysgo Real-Time Solutions, GmbH 10 | * Alex Zuepke 11 | * 12 | * SPDX-License-Identifier: GPL-2.0+ 13 | */ 14 | 15 | #ifndef _U_BOOT_SANDBOX_H_ 16 | #define _U_BOOT_SANDBOX_H_ 17 | 18 | /* board/.../... */ 19 | int board_init(void); 20 | int dram_init(void); 21 | 22 | /* start.c */ 23 | int sandbox_early_getopt_check(void); 24 | int sandbox_main_loop_init(void); 25 | 26 | #endif /* _U_BOOT_SANDBOX_H_ */ 27 | -------------------------------------------------------------------------------- /drivers/nand/driver/inc/ref_info.h: -------------------------------------------------------------------------------- 1 | #ifndef __REFINFO_H__ 2 | #define __REFINFO_H__ 3 | 4 | #include 5 | 6 | /*device type*/ 7 | #define BCH_TYPE 0 8 | #define NEMC_TYPE 1 9 | 10 | /*init flag*/ 11 | #define OPEN_FLAG 0 12 | #define CLOSE_FLAG OPEN_FLAG 13 | #define INIT_FLAG 1 14 | #define DEINIT_FLAG INIT_FLAG 15 | 16 | typedef struct __RefInfo ref_info; 17 | struct __RefInfo{ 18 | struct list_head head; 19 | int dev_type; 20 | int dev_id; 21 | unsigned int refcount; 22 | unsigned int clk; 23 | int current_mode; 24 | }; 25 | 26 | ref_info *add_ref_info(int dev_type, int dev_id, int init_flag); 27 | void reduce_ref_info(int dev_type, int dev_id, int init_flag); 28 | #endif 29 | -------------------------------------------------------------------------------- /include/efuse.h: -------------------------------------------------------------------------------- 1 | #ifndef __EFUSE_H__ 2 | #define __EFUSE_H__ 3 | 4 | #ifdef CONFIG_CMD_EFUSE 5 | int efuse_write(void *buf, int length, off_t offset); 6 | int efuse_read(void *buf, int length, off_t offset); 7 | int efuse_init(int gpio_pin); 8 | void efuse_deinit(void); 9 | void efuse_debug_enable(int enable); 10 | #else 11 | static int inline efuse_write(void *buf, int length, off_t offset) {return 0;} 12 | static int inline efuse_read(void *buf, int length, off_t offset) {return 0;} 13 | static int inline efuse_init(int gpio_pin) {return 0;} 14 | static void inline efuse_deinit(void) {;} 15 | static void inline efuse_debug_enable(int enable) {;} 16 | #endif /*CONFIG_CMD_EFUSE_N*/ 17 | #endif /*EFUSE_H*/ 18 | -------------------------------------------------------------------------------- /fs/cbfs/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2 | # 3 | # SPDX-License-Identifier: GPL-2.0+ 4 | # 5 | 6 | include $(TOPDIR)/config.mk 7 | 8 | LIB = $(obj)libcbfs.o 9 | 10 | COBJS-$(CONFIG_CMD_CBFS) := cbfs.o 11 | 12 | SRCS := $(COBJS-y:.o=.c) 13 | OBJS := $(addprefix $(obj),$(COBJS-y)) 14 | 15 | all: $(LIB) 16 | 17 | $(LIB): $(obj).depend $(OBJS) 18 | $(call cmd_link_o_target, $(OBJS)) 19 | 20 | 21 | ######################################################################### 22 | 23 | # defines $(obj).depend target 24 | include $(SRCTREE)/rules.mk 25 | 26 | sinclude $(obj).depend 27 | 28 | ######################################################################### 29 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/mxic_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define MXIC_MID 0xC2 5 | #define MXIC_NAND_DEVICE_COUNT 3 6 | 7 | static unsigned char mxic_xge4ab[] = {0x2}; 8 | 9 | 10 | static struct device_struct device[] = { 11 | DEVICE_STRUCT(0x12, 2048, 2, 4, 2, 1, mxic_xge4ab), 12 | DEVICE_STRUCT(0x22, 2048, 2, 4, 2, 1, mxic_xge4ab), 13 | DEVICE_STRUCT(0x20, 2048, 2, 0, 0, 0, NULL), 14 | }; 15 | 16 | static struct nand_desc mxic_nand = { 17 | 18 | .id_manufactory = MXIC_MID, 19 | .device_counts = MXIC_NAND_DEVICE_COUNT, 20 | .device = device, 21 | }; 22 | 23 | int mxic_nand_register_func(void) { 24 | return nand_register(&mxic_nand); 25 | } 26 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0+ 2 | # 3 | # (C) Copyright 2012 The Chromium Authors 4 | 5 | include $(TOPDIR)/config.mk 6 | 7 | LIB = $(obj)libtest.o 8 | 9 | COBJS-$(CONFIG_SANDBOX) += command_ut.o 10 | 11 | COBJS := $(sort $(COBJS-y)) 12 | SRCS := $(COBJS:.o=.c) 13 | OBJS := $(addprefix $(obj),$(COBJS)) 14 | 15 | all: $(LIB) $(XOBJS) 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 | -------------------------------------------------------------------------------- /tools/ingenic-tools-fpag/nand_device/mxic_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define MXIC_MID 0xC2 5 | #define MXIC_NAND_DEVICE_COUNT 3 6 | 7 | static unsigned char mxic_xge4ab[] = {0x2}; 8 | 9 | 10 | static struct device_struct device[] = { 11 | DEVICE_STRUCT(0x12, 2048, 2, 4, 2, 1, mxic_xge4ab), 12 | DEVICE_STRUCT(0x22, 2048, 2, 4, 2, 1, mxic_xge4ab), 13 | DEVICE_STRUCT(0x20, 2048, 2, 0, 0, 0, NULL), 14 | }; 15 | 16 | static struct nand_desc mxic_nand = { 17 | 18 | .id_manufactory = MXIC_MID, 19 | .device_counts = MXIC_NAND_DEVICE_COUNT, 20 | .device = device, 21 | }; 22 | 23 | int mxic_nand_register_func(void) { 24 | return nand_register(&mxic_nand); 25 | } 26 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/configs/P4080DS.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2011 Freescale Semiconductor, Inc. 3 | * 4 | * SPDX-License-Identifier: GPL-2.0+ 5 | */ 6 | 7 | /* 8 | * P4080 DS board configuration file 9 | * Also supports P4040 DS 10 | */ 11 | #define CONFIG_P4080DS 12 | #define CONFIG_PHYS_64BIT 13 | #define CONFIG_PPC_P4080 14 | 15 | #define CONFIG_FSL_NGPIXIS /* use common ngPIXIS code */ 16 | 17 | #define CONFIG_MMC 18 | #define CONFIG_PCIE3 19 | 20 | #define CONFIG_SYS_SRIO 21 | #define CONFIG_SRIO1 /* SRIO port 1 */ 22 | #define CONFIG_SRIO2 /* SRIO port 2 */ 23 | #define CONFIG_SRIO_PCIE_BOOT_MASTER 24 | #define CONFIG_ICS307_REFCLK_HZ 33333000 /* ICS307 ref clk freq */ 25 | 26 | #include "corenet_ds.h" 27 | -------------------------------------------------------------------------------- /include/bus_vcxk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2005-2009 3 | * Jens Scharsig @ BuS Elektronik GmbH & Co. KG, 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef __BUS_VCXK_H_ 9 | #define __BUS_VCXK_H_ 10 | 11 | extern int vcxk_init(unsigned long width, unsigned long height); 12 | extern void vcxk_setpixel(int x, int y, unsigned long color); 13 | extern int vcxk_acknowledge_wait(void); 14 | extern int vcxk_request(void); 15 | extern void vcxk_loadimage(ulong source); 16 | extern int vcxk_display_bitmap(ulong addr, int x, int y); 17 | extern void vcxk_setbrightness(unsigned int side, short brightness); 18 | extern int video_display_bitmap(ulong addr, int x, int y); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /lib/zlib/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2000-2006 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = $(obj)libz.o 11 | 12 | COBJS-$(CONFIG_ZLIB) += zlib.o 13 | 14 | COBJS := $(COBJS-y) 15 | SRCS := $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(COBJS)) 17 | 18 | $(LIB): $(obj).depend $(OBJS) 19 | $(call cmd_link_o_target, $(OBJS)) 20 | 21 | ######################################################################### 22 | 23 | # defines $(obj).depend target 24 | include $(SRCTREE)/rules.mk 25 | 26 | sinclude $(obj).depend 27 | 28 | ######################################################################### 29 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/omapimage.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * (C) Copyright 2010 4 | * Linaro LTD, www.linaro.org 5 | * Author John Rigby 6 | * Based on TI's signGP.c 7 | */ 8 | 9 | #ifndef _OMAPIMAGE_H_ 10 | #define _OMAPIMAGE_H_ 11 | 12 | struct ch_toc { 13 | uint32_t section_offset; 14 | uint32_t section_size; 15 | uint8_t unused[12]; 16 | uint8_t section_name[12]; 17 | }; 18 | 19 | struct ch_settings { 20 | uint32_t section_key; 21 | uint8_t valid; 22 | uint8_t version; 23 | uint16_t reserved; 24 | uint32_t flags; 25 | }; 26 | 27 | struct gp_header { 28 | uint32_t size; 29 | uint32_t load_addr; 30 | }; 31 | 32 | #define KEY_CHSETTINGS 0xC0C0C0C1 33 | #endif /* _OMAPIMAGE_H_ */ 34 | -------------------------------------------------------------------------------- /arch/mips/include/asm/cachectl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* 3 | * Copyright (C) 1994, 1995, 1996 by Ralf Baechle 4 | */ 5 | #ifndef _ASM_CACHECTL 6 | #define _ASM_CACHECTL 7 | 8 | /* 9 | * Options for cacheflush system call 10 | */ 11 | #define ICACHE (1<<0) /* flush instruction cache */ 12 | #define DCACHE (1<<1) /* writeback and flush data cache */ 13 | #define BCACHE (ICACHE|DCACHE) /* flush both caches */ 14 | 15 | /* 16 | * Caching modes for the cachectl(2) call 17 | * 18 | * cachectl(2) is currently not supported and returns ENOSYS. 19 | */ 20 | #define CACHEABLE 0 /* make pages cacheable */ 21 | #define UNCACHEABLE 1 /* make pages uncacheable */ 22 | 23 | #endif /* _ASM_CACHECTL */ 24 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxQMgrDefines_p.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IxQMgrDefines_p.h 3 | * 4 | * @author Intel Corporation 5 | * @date 19-Jul-2002 6 | * 7 | * @brief IxQMgr Defines and tuneable constants 8 | * 9 | * 10 | * @par 11 | * IXP400 SW Release version 2.0 12 | * 13 | * -- Copyright Notice -- 14 | * 15 | * @par 16 | * Copyright 2001-2005, Intel Corporation. 17 | * All rights reserved. 18 | * 19 | * @par 20 | * SPDX-License-Identifier: BSD-3-Clause 21 | * @par 22 | * -- End of Copyright Notice -- 23 | */ 24 | 25 | #ifndef IXQMGRDEFINES_P_H 26 | #define IXQMGRDEFINES_P_H 27 | 28 | #define IX_QMGR_PARM_CHECKS_ENABLED 1 29 | #define IX_QMGR_STATS_UPDATE_ENABLED 1 30 | 31 | #endif /* IXQMGRDEFINES_P_H */ 32 | -------------------------------------------------------------------------------- /post/cpu/ppc4xx/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2002-2007 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # See file CREDITS for list of people who contributed to this 6 | # project. 7 | # 8 | # SPDX-License-Identifier: GPL-2.0+ 9 | include $(OBJTREE)/include/autoconf.mk 10 | 11 | LIB = libpostppc4xx.o 12 | 13 | AOBJS-$(CONFIG_HAS_POST) += cache_4xx.o 14 | COBJS-$(CONFIG_HAS_POST) += cache.o 15 | COBJS-$(CONFIG_HAS_POST) += denali_ecc.o 16 | COBJS-$(CONFIG_HAS_POST) += ether.o 17 | COBJS-$(CONFIG_HAS_POST) += fpu.o 18 | COBJS-$(CONFIG_HAS_POST) += ocm.o 19 | COBJS-$(CONFIG_HAS_POST) += spr.o 20 | COBJS-$(CONFIG_HAS_POST) += uart.o 21 | COBJS-$(CONFIG_HAS_POST) += watchdog.o 22 | 23 | include $(TOPDIR)/post/rules.mk 24 | -------------------------------------------------------------------------------- /net/rarp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * (C) Copyright 2000 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 | */ 6 | 7 | #if defined(CONFIG_CMD_RARP) 8 | 9 | #ifndef __RARP_H__ 10 | #define __RARP_H__ 11 | 12 | #include 13 | 14 | /**********************************************************************/ 15 | /* 16 | * Global functions and variables. 17 | */ 18 | 19 | extern int RarpTry; 20 | 21 | /* Process the receipt of a RARP packet */ 22 | extern void rarp_receive(struct ip_udp_hdr *ip, unsigned len); 23 | extern void RarpRequest(void); /* Send a RARP request */ 24 | 25 | /**********************************************************************/ 26 | 27 | #endif /* __RARP_H__ */ 28 | #endif 29 | -------------------------------------------------------------------------------- /arch/mips/include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* 3 | * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org) 4 | */ 5 | #ifndef _ASM_MIPS_UNALIGNED_H 6 | #define _ASM_MIPS_UNALIGNED_H 7 | 8 | #include 9 | #if defined(__MIPSEB__) 10 | #define get_unaligned __get_unaligned_be 11 | #define put_unaligned __put_unaligned_be 12 | #elif defined(__MIPSEL__) 13 | #define get_unaligned __get_unaligned_le 14 | #define put_unaligned __put_unaligned_le 15 | #else 16 | #error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???" 17 | #endif 18 | 19 | #include 20 | #include 21 | #include 22 | 23 | #endif /* _ASM_MIPS_UNALIGNED_H */ 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /drivers/qe/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006 Freescale Semiconductor, Inc. 3 | # 4 | # SPDX-License-Identifier: GPL-2.0+ 5 | # 6 | 7 | include $(TOPDIR)/config.mk 8 | 9 | LIB := $(obj)libqe.o 10 | 11 | COBJS-$(and $(CONFIG_QE),$(CONFIG_OF_LIBFDT)) += fdt.o 12 | COBJS-$(CONFIG_QE) += qe.o uccf.o uec.o uec_phy.o 13 | 14 | COBJS := $(COBJS-y) 15 | SRCS := $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(COBJS)) 17 | 18 | all: $(LIB) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | ######################################################################### 24 | 25 | include $(SRCTREE)/rules.mk 26 | 27 | sinclude $(obj).depend 28 | 29 | ######################################################################### 30 | -------------------------------------------------------------------------------- /drivers/twserial/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2009 3 | # Detlev Zundel, DENX Software Engineering, dzu@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB := $(obj)libtws.o 11 | 12 | COBJS-$(CONFIG_SOFT_TWS) += soft_tws.o 13 | 14 | COBJS := $(COBJS-y) 15 | SRCS := $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(COBJS)) 17 | 18 | all: $(LIB) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | ######################################################################### 24 | 25 | # defines $(obj).depend target 26 | include $(SRCTREE)/rules.mk 27 | 28 | sinclude $(obj).depend 29 | 30 | ######################################################################### 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/time.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2000-2009 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | #ifndef CONFIG_WD_PERIOD 12 | # define CONFIG_WD_PERIOD (10 * 1000 * 1000) /* 10 seconds default*/ 13 | #endif 14 | 15 | /* ------------------------------------------------------------------------- */ 16 | 17 | void udelay(unsigned long usec) 18 | { 19 | ulong kv; 20 | 21 | do { 22 | WATCHDOG_RESET(); 23 | kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec; 24 | __udelay (kv); 25 | usec -= kv; 26 | } while(usec); 27 | } 28 | 29 | void mdelay(unsigned long msec) 30 | { 31 | while (msec--) 32 | udelay(1000); 33 | } 34 | -------------------------------------------------------------------------------- /Licenses/Exceptions: -------------------------------------------------------------------------------- 1 | 2 | GPL License Exception: 3 | 4 | Even though U-Boot in general is covered by the GPL-2.0/GPL-2.0+, 5 | this does *not* cover the so-called "standalone" applications that 6 | use U-Boot services by means of the jump table provided by U-Boot 7 | exactly for this purpose - this is merely considered normal use of 8 | U-Boot, and does *not* fall under the heading of "derived work". 9 | 10 | The following files define interfaces to U-Boot: 11 | * include/image.h 12 | * include/export.h 13 | * arch/*/include/asm/u-boot.h 14 | * examples/standalone/stubs.c 15 | 16 | Including these (unmodified) files in another file is considered normal 17 | use of U-Boot, and does *not* fall under the heading of "derived work". 18 | -- Wolfgang Denk 19 | 20 | -------------------------------------------------------------------------------- /drivers/crypto/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2013 Samsung Electronics Co., Ltd. 3 | # http://www.samsung.com 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB := $(obj)libcrypto.o 11 | 12 | COBJS-$(CONFIG_EXYNOS_ACE_SHA) += ace_sha.o 13 | 14 | COBJS := $(COBJS-y) 15 | SRCS := $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(COBJS)) 17 | 18 | all: $(LIB) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | 24 | ######################################################################### 25 | 26 | # defines $(obj).depend target 27 | include $(SRCTREE)/rules.mk 28 | 29 | sinclude $(obj).depend 30 | 31 | ######################################################################## 32 | -------------------------------------------------------------------------------- /drivers/usb/phy/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2009 Wind River Systems, Inc. 3 | # Tom Rix 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB := $(obj)libusb_phy.o 11 | 12 | COBJS-$(CONFIG_TWL4030_USB) += twl4030.o 13 | 14 | COBJS := $(COBJS-y) 15 | SRCS := $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(COBJS)) 17 | 18 | all: $(LIB) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | ######################################################################### 24 | 25 | # defines $(obj).depend target 26 | include $(SRCTREE)/rules.mk 27 | 28 | sinclude $(obj).depend 29 | 30 | ######################################################################### 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/lzo/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2008 3 | # Stefan Roese, DENX Software Engineering, sr@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = $(obj)liblzo.o 11 | 12 | SOBJS = 13 | 14 | COBJS-$(CONFIG_LZO) += lzo1x_decompress.o 15 | 16 | COBJS = $(COBJS-y) 17 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 18 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | ######################################################################### 24 | 25 | # defines $(obj).depend target 26 | include $(SRCTREE)/rules.mk 27 | 28 | sinclude $(obj).depend 29 | 30 | ######################################################################### 31 | -------------------------------------------------------------------------------- /lib/net_utils.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Generic network code. Moved from net.c 3 | * 4 | * Copyright 1994 - 2000 Neil Russell. 5 | * Copyright 2000 Roland Borde 6 | * Copyright 2000 Paolo Scaffardi 7 | * Copyright 2000-2002 Wolfgang Denk, wd@denx.de 8 | * Copyright 2009 Dirk Behme, dirk.behme@googlemail.com 9 | * 10 | * SPDX-License-Identifier: GPL-2.0+ 11 | */ 12 | 13 | #include 14 | 15 | IPaddr_t string_to_ip(const char *s) 16 | { 17 | IPaddr_t addr; 18 | char *e; 19 | int i; 20 | 21 | if (s == NULL) 22 | return(0); 23 | 24 | for (addr=0, i=0; i<4; ++i) { 25 | ulong val = s ? simple_strtoul(s, &e, 10) : 0; 26 | addr <<= 8; 27 | addr |= (val & 0xFF); 28 | if (s) { 29 | s = (*e) ? e+1 : e; 30 | } 31 | } 32 | 33 | return (htonl(addr)); 34 | } 35 | -------------------------------------------------------------------------------- /post/board/netta/dsp.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2004 3 | * Pantelis Antoniou, Intracom S.A. , panto@intracom.gr 4 | * 5 | * See file CREDITS for list of people who contributed to this 6 | * project. 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #include 12 | 13 | /* 14 | * DSP test 15 | * 16 | * This test verifies the connection and performs a memory test 17 | * on any connected DSP(s). The meat of the work is done 18 | * in the board specific function. 19 | */ 20 | 21 | #include 22 | 23 | #if CONFIG_POST & CONFIG_SYS_POST_DSP 24 | 25 | extern int board_post_dsp(int flags); 26 | 27 | int dsp_post_test (int flags) 28 | { 29 | return board_post_dsp(flags); 30 | } 31 | 32 | #endif /* CONFIG_POST & CONFIG_SYS_POST_DSP */ 33 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips32/au1x00/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2011 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = $(obj)lib$(SOC).o 11 | 12 | COBJS = au1x00_eth.o au1x00_serial.o au1x00_usb_ohci.o au1x00_ide.o 13 | 14 | SRCS := $(COBJS:.o=.c) 15 | OBJS := $(addprefix $(obj),$(COBJS)) 16 | 17 | all: $(obj).depend $(LIB) 18 | 19 | $(LIB): $(OBJS) 20 | $(call cmd_link_o_target, $(OBJS)) 21 | 22 | ######################################################################### 23 | 24 | # defines $(obj).depend target 25 | include $(SRCTREE)/rules.mk 26 | 27 | sinclude $(obj).depend 28 | 29 | ######################################################################### 30 | -------------------------------------------------------------------------------- /drivers/nand/manager/inc/os/NandThread.h: -------------------------------------------------------------------------------- 1 | #ifndef _NANDTHREAD_H_ 2 | #define _NANDTHREAD_H_ 3 | 4 | #define NAND_MIN_PRIO 0 //IDLE 5 | #define NAND_MAX_PRIO 1 //NORMAL 6 | 7 | enum nd_thread_state { 8 | ND_THREAD_RUNNING, 9 | ND_THREAD_INTERRUPTIBLE, 10 | ND_THREAD_UNINTERRUPTIBLE, 11 | }; 12 | 13 | #ifdef __KERNEL__ 14 | typedef int RESULT; 15 | #else 16 | typedef void* RESULT; 17 | #endif 18 | 19 | typedef int PNandThread; 20 | typedef RESULT (*PThreadFunction)(void *data); 21 | 22 | PNandThread CreateThread(PThreadFunction fn,void *data,int prio,char *name); 23 | int ExitThread(PNandThread *thread); 24 | void SetThreadPrio(PNandThread *thread,int prio); 25 | void SetThreadState(PNandThread *thread, enum nd_thread_state state); 26 | 27 | #endif /* _NANDTHREAD_H_ */ 28 | -------------------------------------------------------------------------------- /lib/tizen/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2012 Samsung Electronics 3 | # Donghwa Lee 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = $(obj)libtizen.o 11 | 12 | SOBJS = 13 | 14 | COBJS-$(CONFIG_TIZEN) += tizen.o 15 | 16 | COBJS := $(sort $(COBJS-y)) 17 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 18 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | ######################################################################### 24 | 25 | # defines $(obj).depend target 26 | include $(SRCTREE)/rules.mk 27 | 28 | sinclude $(obj).depend 29 | 30 | ######################################################################### 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips64/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2003-2006 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = $(obj)lib$(CPU).o 11 | 12 | START = start.o 13 | COBJS-y = cpu.o interrupts.o time.o cache.o 14 | 15 | SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) 16 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) 17 | START := $(addprefix $(obj),$(START)) 18 | 19 | all: $(obj).depend $(START) $(LIB) 20 | 21 | $(LIB): $(OBJS) 22 | $(call cmd_link_o_target, $(OBJS)) 23 | 24 | ######################################################################### 25 | 26 | # defines $(obj).depend target 27 | include $(SRCTREE)/rules.mk 28 | 29 | sinclude $(obj).depend 30 | -------------------------------------------------------------------------------- /drivers/power/power_dialog.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 Samsung Electronics 3 | * Lukasz Majewski 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | int pmic_dialog_init(unsigned char bus) 14 | { 15 | static const char name[] = "DIALOG_PMIC"; 16 | struct pmic *p = pmic_alloc(); 17 | 18 | if (!p) { 19 | printf("%s: POWER allocation error!\n", __func__); 20 | return -ENOMEM; 21 | } 22 | 23 | p->name = name; 24 | p->number_of_regs = DIALOG_NUM_OF_REGS; 25 | 26 | p->interface = PMIC_I2C; 27 | p->hw.i2c.addr = CONFIG_SYS_DIALOG_PMIC_I2C_ADDR; 28 | p->hw.i2c.tx_num = 1; 29 | p->bus = bus; 30 | 31 | return 0; 32 | } 33 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/hush.h: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2001 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #ifndef _HUSH_H_ 9 | #define _HUSH_H_ 10 | 11 | #define FLAG_EXIT_FROM_LOOP 1 12 | #define FLAG_PARSE_SEMICOLON (1 << 1) /* symbol ';' is special for parser */ 13 | #define FLAG_REPARSING (1 << 2) /* >=2nd pass */ 14 | 15 | extern int u_boot_hush_start(void); 16 | extern int parse_string_outer(const char *, int); 17 | extern int parse_file_outer(void); 18 | 19 | int set_local_var(const char *s, int flg_export); 20 | void unset_local_var(const char *name); 21 | char *get_local_var(const char *s); 22 | 23 | #if defined(CONFIG_HUSH_INIT_VAR) 24 | extern int hush_init_var (void); 25 | #endif 26 | #endif 27 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/jz4775/ddr_set_dll.c: -------------------------------------------------------------------------------- 1 | /* 2 | * DDR driver for Synopsys DWC DDR PHY. 3 | * Used by Jz4775, JZ4780... 4 | * 5 | * Copyright (C) 2013 Ingenic Semiconductor Co.,Ltd 6 | * Author: Zoro 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | /* #define DEBUG */ 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | #ifndef CONFIG_FPGA 18 | void reset_dll(void) 19 | { 20 | /* 21 | * WARNING: 2015-01-08 22 | * DDR CLK GATE(CPM_DRCG 0xB00000D0), BIT6 must set to 1 (or 0x40). 23 | * If clear BIT6, chip memory will not stable, gpu hang occur. 24 | */ 25 | writel(3 | (1<<6), CPM_DRCG); 26 | mdelay(5); 27 | writel(0x11 | (1<<6), CPM_DRCG); 28 | mdelay(5); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/jz4780/ddr_set_dll.c: -------------------------------------------------------------------------------- 1 | /* 2 | * DDR driver for Synopsys DWC DDR PHY. 3 | * Used by Jz4775, JZ4780... 4 | * 5 | * Copyright (C) 2013 Ingenic Semiconductor Co.,Ltd 6 | * Author: Zoro 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | /* #define DEBUG */ 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | #ifndef CONFIG_FPGA 18 | void reset_dll(void) 19 | { 20 | /* 21 | * WARNING: 2015-01-08 22 | * DDR CLK GATE(CPM_DRCG 0xB00000D0), BIT6 must set to 1 (or 0x40). 23 | * If clear BIT6, chip memory will not stable, gpu hang occur. 24 | */ 25 | writel(3 | (1<<6), CPM_DRCG); 26 | mdelay(5); 27 | writel(0x11 | (1<<6), CPM_DRCG); 28 | mdelay(5); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/m150/ddr_set_dll.c: -------------------------------------------------------------------------------- 1 | /* 2 | * DDR driver for Synopsys DWC DDR PHY. 3 | * Used by Jz4775, JZ4780... 4 | * 5 | * Copyright (C) 2013 Ingenic Semiconductor Co.,Ltd 6 | * Author: Zoro 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | /* #define DEBUG */ 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | #ifndef CONFIG_FPGA 18 | void reset_dll(void) 19 | { 20 | /* 21 | * WARNING: 2015-01-08 22 | * DDR CLK GATE(CPM_DRCG 0xB00000D0), BIT6 must set to 1 (or 0x40). 23 | * If clear BIT6, chip memory will not stable, gpu hang occur. 24 | */ 25 | writel(3 | (1<<6), CPM_DRCG); 26 | mdelay(5); 27 | writel(0x11 | (1<<6), CPM_DRCG); 28 | mdelay(5); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/m200/ddr_set_dll.c: -------------------------------------------------------------------------------- 1 | /* 2 | * DDR driver for Synopsys DWC DDR PHY. 3 | * Used by Jz4775, JZ4780... 4 | * 5 | * Copyright (C) 2013 Ingenic Semiconductor Co.,Ltd 6 | * Author: Zoro 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | /* #define DEBUG */ 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | #ifndef CONFIG_FPGA 18 | void reset_dll(void) 19 | { 20 | /* 21 | * WARNING: 2015-01-08 22 | * DDR CLK GATE(CPM_DRCG 0xB00000D0), BIT6 must set to 1 (or 0x40). 23 | * If clear BIT6, chip memory will not stable, gpu hang occur. 24 | */ 25 | writel(3 | (1<<6), CPM_DRCG); 26 | mdelay(5); 27 | writel(0x7d | (1<<6), CPM_DRCG); 28 | mdelay(5); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/t15/ddr_set_dll.c: -------------------------------------------------------------------------------- 1 | /* 2 | * DDR driver for Synopsys DWC DDR PHY. 3 | * Used by Jz4775, JZ4780... 4 | * 5 | * Copyright (C) 2013 Ingenic Semiconductor Co.,Ltd 6 | * Author: Zoro 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | /* #define DEBUG */ 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | #ifndef CONFIG_FPGA 18 | void reset_dll(void) 19 | { 20 | /* 21 | * WARNING: 2015-01-08 22 | * DDR CLK GATE(CPM_DRCG 0xB00000D0), BIT6 must set to 1 (or 0x40). 23 | * If clear BIT6, chip memory will not be stable, gpu hang occur. 24 | */ 25 | writel(3 | (1<<6), CPM_DRCG); 26 | mdelay(5); 27 | writel(0x7d | (1<<6), CPM_DRCG); 28 | mdelay(5); 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /arch/mips/include/asm/isadep.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* 3 | * Various ISA level dependent constants. 4 | * Most of the following constants reflect the different layout 5 | * of Coprocessor 0 registers. 6 | * 7 | * Copyright (c) 1998 Harald Koerfgen 8 | */ 9 | 10 | #ifndef __ASM_ISADEP_H 11 | #define __ASM_ISADEP_H 12 | 13 | #if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX) 14 | /* 15 | * R2000 or R3000 16 | */ 17 | 18 | /* 19 | * kernel or user mode? (CP0_STATUS) 20 | */ 21 | #define KU_MASK 0x08 22 | #define KU_USER 0x08 23 | #define KU_KERN 0x00 24 | 25 | #else 26 | /* 27 | * kernel or user mode? 28 | */ 29 | #define KU_MASK 0x18 30 | #define KU_USER 0x10 31 | #define KU_KERN 0x00 32 | 33 | #endif 34 | 35 | #endif /* __ASM_ISADEP_H */ 36 | -------------------------------------------------------------------------------- /common/env_nowhere.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2000-2010 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | * 5 | * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH 6 | * Andreas Heppel 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | DECLARE_GLOBAL_DATA_PTR; 17 | 18 | env_t *env_ptr; 19 | 20 | void env_relocate_spec(void) 21 | { 22 | } 23 | 24 | /* 25 | * Initialize Environment use 26 | * 27 | * We are still running from ROM, so data use is limited 28 | */ 29 | int env_init(void) 30 | { 31 | gd->env_addr = (ulong)&default_environment[0]; 32 | gd->env_valid = 0; 33 | 34 | return 0; 35 | } 36 | -------------------------------------------------------------------------------- /drivers/nand/manager/inc/lpartition.h: -------------------------------------------------------------------------------- 1 | #ifndef __LPARTITION_H__ 2 | #define __LPARTITION_H__ 3 | 4 | #define LPARTITION(OBJ) ((LPartition*)OBJ) 5 | 6 | #ifndef String 7 | #define String char* 8 | #endif 9 | 10 | #include "singlelist.h" 11 | typedef struct _LPartition LPartition; 12 | #define MUL_PARTS 4 13 | typedef struct _lmul_parts lmul_parts; 14 | struct _lmul_parts{ 15 | int startSector; 16 | int sectorCount; 17 | char *name; 18 | }; 19 | struct _LPartition { 20 | struct singlelist head; 21 | int startSector; 22 | int sectorCount; 23 | const char* name; 24 | int mode; 25 | int pc; /*partcontext*/ 26 | 27 | int hwsector; 28 | unsigned int segmentsize; 29 | lmul_parts lparts[MUL_PARTS]; 30 | int parts_num; 31 | }; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /post/board/netta/codec.c: -------------------------------------------------------------------------------- 1 | /* 2 | * (C) Copyright 2004 3 | * Pantelis Antoniou, Intracom S.A. , panto@intracom.gr 4 | * 5 | * See file CREDITS for list of people who contributed to this 6 | * project. 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #include 12 | 13 | /* 14 | * CODEC test 15 | * 16 | * This test verifies the connection and performs a memory test 17 | * on any connected codec(s). The meat of the work is done 18 | * in the board specific function. 19 | */ 20 | 21 | #include 22 | 23 | #if CONFIG_POST & CONFIG_SYS_POST_CODEC 24 | 25 | extern int board_post_codec(int flags); 26 | 27 | int codec_post_test (int flags) 28 | { 29 | return board_post_codec(flags); 30 | } 31 | 32 | #endif /* CONFIG_POST & CONFIG_SYS_POST_CODEC */ 33 | -------------------------------------------------------------------------------- /arch/mips/cpu/mips32/incaip/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2011 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = $(obj)lib$(SOC).o 11 | 12 | SOBJS = incaip_wdt.o 13 | COBJS = incaip_clock.o asc_serial.o 14 | 15 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) 17 | 18 | all: $(obj).depend $(LIB) 19 | 20 | $(LIB): $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | ######################################################################### 24 | 25 | # defines $(obj).depend target 26 | include $(SRCTREE)/rules.mk 27 | 28 | sinclude $(obj).depend 29 | 30 | ######################################################################### 31 | -------------------------------------------------------------------------------- /drivers/power/battery/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012 Samsung Electronics 3 | # Lukasz Majewski 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB := $(obj)libbattery.o 11 | 12 | COBJS-$(CONFIG_POWER_BATTERY_TRATS) += bat_trats.o 13 | 14 | COBJS := $(COBJS-y) 15 | SRCS := $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(COBJS)) 17 | 18 | all: $(LIB) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | 24 | ######################################################################### 25 | 26 | # defines $(obj).depend target 27 | include $(SRCTREE)/rules.mk 28 | 29 | sinclude $(obj).depend 30 | 31 | ######################################################################## 32 | -------------------------------------------------------------------------------- /include/cros_ec_message.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Chromium OS Matrix Keyboard Message Protocol definitions 3 | * 4 | * Copyright (c) 2012 The Chromium OS Authors. 5 | * 6 | * SPDX-License-Identifier: GPL-2.0+ 7 | */ 8 | 9 | #ifndef _CROS_MESSAGE_H 10 | #define _CROS_MESSAGE_H 11 | 12 | /* 13 | * Command interface between EC and AP, for LPC, I2C and SPI interfaces. 14 | * 15 | * This is copied from the Chromium OS Open Source Embedded Controller code. 16 | */ 17 | enum { 18 | /* The header byte, which follows the preamble */ 19 | MSG_HEADER = 0xec, 20 | 21 | MSG_HEADER_BYTES = 3, 22 | MSG_TRAILER_BYTES = 2, 23 | MSG_PROTO_BYTES = MSG_HEADER_BYTES + MSG_TRAILER_BYTES, 24 | 25 | /* Max length of messages */ 26 | MSG_BYTES = EC_HOST_PARAM_SIZE + MSG_PROTO_BYTES, 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /drivers/net/npe/include/IxOsCacheMMU.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IxOsCacheMMU.h 3 | * 4 | * @brief this file contains the API of the @ref IxCacheMMU component 5 | * 6 | *
7 | * 8 | * @par 9 | * IXP400 SW Release version 2.0 10 | * 11 | * -- Copyright Notice -- 12 | * 13 | * @par 14 | * Copyright 2001-2005, Intel Corporation. 15 | * All rights reserved. 16 | * 17 | * @par 18 | * SPDX-License-Identifier: BSD-3-Clause 19 | * @par 20 | * -- End of Copyright Notice -- 21 | */ 22 | 23 | #ifndef IxOsCacheMMU_H 24 | 25 | #ifndef __doxygen_hide 26 | #define IxOsCacheMMU_H 27 | #endif /* __doxygen_hide */ 28 | 29 | #ifdef __doxygen_HIDE 30 | #define IX_OS_CACHE_DOXYGEN 31 | #endif /* __doxygen_HIDE */ 32 | 33 | #include "IxOsalBackward.h" 34 | 35 | #endif /* IxOsCacheMMU_H */ 36 | 37 | -------------------------------------------------------------------------------- /drivers/power/fuel_gauge/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012 Samsung Electronics 3 | # Lukasz Majewski 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB := $(obj)libfuel_gauge.o 11 | 12 | COBJS-$(CONFIG_POWER_FG_MAX17042) += fg_max17042.o 13 | 14 | COBJS := $(COBJS-y) 15 | SRCS := $(COBJS:.o=.c) 16 | OBJS := $(addprefix $(obj),$(COBJS)) 17 | 18 | all: $(LIB) 19 | 20 | $(LIB): $(obj).depend $(OBJS) 21 | $(call cmd_link_o_target, $(OBJS)) 22 | 23 | 24 | ######################################################################### 25 | 26 | # defines $(obj).depend target 27 | include $(SRCTREE)/rules.mk 28 | 29 | sinclude $(obj).depend 30 | 31 | ######################################################################## 32 | -------------------------------------------------------------------------------- /fs/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # (C) Copyright 2000-2006 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 | # Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. 5 | # 6 | # SPDX-License-Identifier: GPL-2.0+ 7 | # 8 | 9 | include $(TOPDIR)/config.mk 10 | 11 | LIB = $(obj)libfs.o 12 | 13 | COBJS-y += fs.o 14 | 15 | COBJS := $(COBJS-y) 16 | SRCS := $(COBJS:.o=.c) 17 | OBJS := $(addprefix $(obj),$(COBJS)) 18 | 19 | all: $(LIB) 20 | 21 | $(LIB): $(obj).depend $(OBJS) 22 | $(call cmd_link_o_target, $(OBJS)) 23 | 24 | ######################################################################### 25 | 26 | # defines $(obj).depend target 27 | include $(SRCTREE)/rules.mk 28 | 29 | sinclude $(obj).depend 30 | 31 | ######################################################################### 32 | -------------------------------------------------------------------------------- /include/jz_lcd/auo_x163.h: -------------------------------------------------------------------------------- 1 | #ifndef _AUO_X163_H_ 2 | #define _AUO_X163_H_ 3 | 4 | #include 5 | 6 | struct auo_x163_platform_data { 7 | int gpio_rst; 8 | }; 9 | 10 | extern struct auo_x163_platform_data auo_x163_pdata; 11 | extern void auo_x163_sleep_in(struct dsi_device *dsi); 12 | extern void auo_x163_sleep_out(struct dsi_device *dsi); 13 | extern void auo_x163_display_on(struct dsi_device *dsi); 14 | extern void auo_x163_display_off(struct dsi_device *dsi); 15 | extern void auo_x163_set_pixel_off(struct dsi_device *dsi); /* set_pixels_off */ 16 | extern void auo_x163_set_pixel_on(struct dsi_device *dsi); /* set_pixels_on */ 17 | extern void auo_x163_set_brightness(struct dsi_device *dsi, unsigned int brightness); /* set brightness */ 18 | 19 | 20 | #endif /* _AUO_X163_H_ */ 21 | -------------------------------------------------------------------------------- /include/jz_lcd/ili_6122.h: -------------------------------------------------------------------------------- 1 | /* 2 | * JZ4775 common routines 3 | * 4 | * Copyright (c) 2013 Ingenic Semiconductor Co.,Ltd 5 | * Author: Huddy 6 | * Based on: xboot/boot/lcd/jz4775_android_lcd.h 7 | * 8 | * SPDX-License-Identifier: GPL-2.0+ 9 | */ 10 | 11 | #ifndef __ILI_6122_H__ 12 | #define __ILI_6122_H__ 13 | /* 14 | * @gpio_lcd_vsync: vertical sync input 15 | * @gpio_lcd_hsync: horizontal sync input 16 | * @gpio_lcd_disp: display on/off 17 | * @gpio_lcd_de: 1: select DE mode, 0: select SYNC mode 18 | */ 19 | struct ili_6122_data { 20 | unsigned int gpio_lcd_disp; 21 | unsigned int gpio_lcd_vsync; 22 | unsigned int gpio_lcd_hsync; 23 | unsigned int gpio_lcd_de; 24 | }; 25 | 26 | extern struct ili_6122_data ili_6122_pdata; 27 | 28 | #endif /* __ILI_6122_H__ */ 29 | -------------------------------------------------------------------------------- /tools/ingenic-tools/nand_device/foresee_nand.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "nand_common.h" 3 | 4 | #define ATO_MID 0xCD 5 | #define ATO_NAND_DEVICD_COUNT 3 6 | 7 | static unsigned char fw_xaw[] = {0x02}; 8 | static unsigned char fw_xbw[] = {0x02}; 9 | static unsigned char fs_xaw[] = {0x01, 0x02}; 10 | 11 | 12 | static struct device_struct device[] = { 13 | DEVICE_STRUCT(0xB1, 2048, 2, 4, 3, 1, fw_xaw), 14 | DEVICE_STRUCT(0xEB, 2048, 2, 4, 2, 1, fw_xaw), 15 | DEVICE_STRUCT(0x71, 2048, 2, 4, 2, 2, fs_xaw), 16 | }; 17 | 18 | static struct nand_desc foresee_nand = { 19 | 20 | .id_manufactory = ATO_MID, 21 | .device_counts = ATO_NAND_DEVICD_COUNT, 22 | .device = device, 23 | }; 24 | 25 | int foresee_nand_register_func(void) { 26 | return nand_register(&foresee_nand); 27 | } 28 | -------------------------------------------------------------------------------- /arch/mips/cpu/xburst/param_manage.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | DECLARE_GLOBAL_DATA_PTR; 4 | struct ddr_registers *g_ddr_param = 0; 5 | struct param_info 6 | { 7 | unsigned int magic_id; 8 | unsigned int size; 9 | unsigned int data; 10 | }; 11 | void *find_param(unsigned int magic_id) 12 | { 13 | struct param_info *p = (struct param_info *)CONFIG_SPL_GINFO_BASE; 14 | do { 15 | if(magic_id == p->magic_id) 16 | { 17 | break; 18 | } 19 | p = (struct param_info *)((char *)p + p->size + 8); 20 | 21 | }while(p->magic_id != 0); 22 | return (void*)&p->data; 23 | } 24 | void burner_param_info(void) 25 | { 26 | gd->arch.gi = find_param(('B' << 24) | ('D' << 16) | ('I' << 8) | ('F' << 0)); 27 | g_ddr_param = find_param(('D' << 24) | ('D' << 16) | ('R' << 8) | 0); 28 | } 29 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /drivers/dfu/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012 Samsung Electronics 3 | # Lukasz Majewski 4 | # 5 | # SPDX-License-Identifier: GPL-2.0+ 6 | # 7 | 8 | include $(TOPDIR)/config.mk 9 | 10 | LIB = $(obj)libdfu.o 11 | 12 | COBJS-$(CONFIG_DFU_FUNCTION) += dfu.o 13 | COBJS-$(CONFIG_DFU_MMC) += dfu_mmc.o 14 | COBJS-$(CONFIG_DFU_NAND) += dfu_nand.o 15 | 16 | SRCS := $(COBJS-y:.o=.c) 17 | OBJS := $(addprefix $(obj),$(COBJS-y)) 18 | 19 | $(LIB): $(obj).depend $(OBJS) 20 | $(call cmd_link_o_target, $(OBJS)) 21 | 22 | ######################################################################### 23 | 24 | # defines $(obj).depend target 25 | include $(SRCTREE)/rules.mk 26 | 27 | sinclude $(obj).depend 28 | 29 | ######################################################################### 30 | -------------------------------------------------------------------------------- /drivers/power/pmic/pmic_max8998.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 Samsung Electronics 3 | * Lukasz Majewski 4 | * 5 | * SPDX-License-Identifier: GPL-2.0+ 6 | */ 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | int pmic_init(unsigned char bus) 14 | { 15 | static const char name[] = "MAX8998_PMIC"; 16 | struct pmic *p = pmic_alloc(); 17 | 18 | if (!p) { 19 | printf("%s: POWER allocation error!\n", __func__); 20 | return -ENOMEM; 21 | } 22 | 23 | puts("Board PMIC init\n"); 24 | 25 | p->name = name; 26 | p->interface = PMIC_I2C; 27 | p->number_of_regs = PMIC_NUM_OF_REGS; 28 | p->hw.i2c.addr = MAX8998_I2C_ADDR; 29 | p->hw.i2c.tx_num = 1; 30 | p->bus = bus; 31 | 32 | return 0; 33 | } 34 | --------------------------------------------------------------------------------