/openbmc/linux/Documentation/bpf/ |
H A D | map_lru_hash_update.dot | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (C) 2022-2023 Isovalent, Inc. 4 node [colorscheme=accent4,style=filled] # Apply colorscheme to all nodes 39 from global -> local"] 50 (global LRU -> local)"] 66 style = dashed; 70 label="Steal a node from\nper-cpu freelist?"] 89 fn_htab_lru_map_update_elem_ENOMEM [shape=oval,label="return -ENOMEM"] 95 fn_htab_lru_map_update_elem_EBUSY [shape=oval,label="return -EBUSY"] 96 fn_htab_lru_map_update_elem_EEXIST [shape=oval,label="return -EEXIST"] [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio-mmio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/gpio-mmio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 11 - Bartosz Golaszewski <brgl@bgdev.pl> 15 of set/clear-bit registers. Such controllers are common for glue logic in 16 FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped 17 NAND-style parallel busses. 22 - brcm,bcm6345-gpio [all …]
|
/openbmc/u-boot/tools/ |
H A D | atmel_pmecc_params.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * header which in turn is required for NAND flash booting of Atmel AT91 style 38 ecc_offset = oob_size - in main()
|
/openbmc/u-boot/doc/ |
H A D | README.nand | 1 # SPDX-License-Identifier: GPL-2.0+ 2 NAND FLASH commands and notes 12 nand bad 15 nand device 16 Print information about the current NAND device. 18 nand device num 21 nand erase off|partition size 22 nand erase clean [off|partition size] 32 If `clean' is specified, a JFFS2-style clean marker is written to 40 nand info [all …]
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | doc2000.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Linux driver for Disk-On-Chip devices 6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> 7 * Copyright © 2002-2003 Greg Ungerer <gerg@snapgear.com> 8 * Copyright © 2002-2003 SnapGear Inc 79 * On ARM, it'll be mmap'd directly with 32-bit wide accesses. 80 * On PPC, it's mmap'd and 16-bit wide. 149 struct Nand { struct 176 unsigned long mfr; /* Flash IDs - only one type of flash per device */ 181 char interleave; /* Internal interleaving - Millennium Plus style */ [all …]
|
H A D | ndfc.h | 11 * Contains defines, datastructures for ndfc nand controller 38 #define NDFC_CCR_ARE 0x04000000 /* Auto-Read Enable */ 45 #define NDFC_CCR_ARAC_MASK 0x00003000 /* Auto-Read mode Addr Cycles */ 46 #define NDFC_CCR_RPG 0x0000C000 /* Auto-Read Page */ 51 #define NDFC_BxCFG_CED 0x40000000 /* nCE Style */
|
/openbmc/linux/include/linux/mtd/ |
H A D | ndfc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 6 * Contains defines, datastructures for ndfc nand controller 32 #define NDFC_CCR_ARE 0x04000000 /* Auto-Read Enable */ 39 #define NDFC_CCR_ARAC_MASK 0x00003000 /* Auto-Read mode Addr Cycles */ 40 #define NDFC_CCR_RPG 0x0000C000 /* Auto-Read Page */ 45 #define NDFC_BxCFG_CED 0x40000000 /* nCE Style */
|
H A D | doc2000.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Linux driver for Disk-On-Chip devices 6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> 7 * Copyright © 2002-2003 Greg Ungerer <gerg@snapgear.com> 8 * Copyright © 2002-2003 SnapGear Inc 76 * On ARM, it'll be mmap'd directly with 32-bit wide accesses. 77 * On PPC, it's mmap'd and 16-bit wide. 160 struct Nand { struct 187 unsigned long mfr; /* Flash IDs - only one type of flash per device */ 192 char interleave; /* Internal interleaving - Millennium Plus style */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/arm/ |
H A D | qcom-soc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/arm/qcom-soc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <andersson@kernel.org> 15 qcom,SoC-IP 18 qcom,sdm845-llcc-bwmon 26 pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" 28 - compatible 33 # Preferred naming style for compatibles of SoC components: [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | sunxi_nand_spl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2014-2015, Antmicro Ltd <www.antmicro.com> 4 * Copyright (c) 2015, AW-SOM Technologies <www.aw-som.com> 11 #include <nand.h> 46 #define NFC_CTL_PAGE_SIZE(a) ((fls(a) - 11) << 8) 95 /* minimal "boot0" style NAND support for Allwinner A20 */ 127 } while (--timeout_us); in check_value_inner() 148 printf("nand: timeout waiting for empty cmd FIFO\n"); in nand_wait_cmd_fifo_empty() 149 return -ETIMEDOUT; in nand_wait_cmd_fifo_empty() 159 printf("nand: timeout waiting for interruption\n"); in nand_wait_int() [all …]
|
H A D | nand_base.c | 3 * This is the generic MTD driver for NAND flash devices. It should be 4 * capable of working with almost all NAND chips currently available. 7 * http://www.linux-mtd.infradead.org/doc/nand.html 10 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 20 * Check, if mtd->ecctype should be set to MTD_ECC_HW 113 if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 115 ret = -EINVAL; in check_offs_len() 119 if (len & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 121 ret = -EINVAL; in check_offs_len() 128 * nand_release_device - [GENERIC] release chip [all …]
|
/openbmc/u-boot/include/configs/ |
H A D | corenet_ds.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright 2009-2012 Freescale Semiconductor, Inc. 7 * Corenet DS style board configuration file 58 #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ 80 #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 206 /* Nand Flash */ 219 /* NAND flash config */ 235 #define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_NAND_BR_PRELIM /* NAND Base Address */ 236 #define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_NAND_OR_PRELIM /* NAND Options */ 242 #define CONFIG_SYS_BR2_PRELIM CONFIG_SYS_NAND_BR_PRELIM /* NAND Base Address */ [all …]
|
/openbmc/linux/drivers/mtd/parsers/ |
H A D | ofpart_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Revised to handle newer style flash binding by: 60 if (!master->parent) { /* Master */ in parse_fixed_partitions() 69 master->name, mtd_node); in parse_fixed_partitions() 83 quirks = of_id ? of_id->data : NULL; in parse_fixed_partitions() 99 return -ENOMEM; in parse_fixed_partitions() 114 master->name, pp, in parse_fixed_partitions() 118 nr_parts--; in parse_fixed_partitions() 129 * partitions as direct children of the nand controller. in parse_fixed_partitions() 130 * This can happen in case the nand controller node has in parse_fixed_partitions() [all …]
|
/openbmc/u-boot/common/ |
H A D | board_r.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * (C) Copyright 2002-2006 8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 34 #include <nand.h> 63 * so provide a way to let U-Boot gracefully ignore write protected in board_flash_wp_on() 76 * after non-volatile devices & environment is setup and cpu code have in initr_secondary_cpu() 79 * from a non-volatile device in initr_secondary_cpu() 90 trace_init(gd->trace_buff, CONFIG_TRACE_BUFFER_SIZE); in initr_trace() 99 gd->flags |= GD_FLG_RELOC | GD_FLG_FULL_MALLOC_INIT; in initr_reloc() 125 monitor_flash_len = _end - __image_copy_start; in initr_reloc_global_data() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | Kconfig | 4 bool "Support U-Boot commands" 7 Enable U-Boot's command-line functions. This provides a means 8 to enter commands into U-Boot for a wide variety of purposes. It 12 substantially to the size of U-Boot. 71 U-Boot automatic booting process and bring the device 72 to the U-Boot prompt for user input. 103 autoboot starts booting, U-Boot gives a command prompt. The 104 U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is 116 U-Boot gives a command prompt. The U-Boot prompt never 120 bool "Enable Ctrl-C autoboot interruption" [all …]
|
/openbmc/u-boot/common/spl/ |
H A D | Kconfig | 25 supports MMC, NAND and YMODEM and other methods loading of U-Boot 29 bool "Pass hand-off information from SPL to U-Boot proper" 32 It is useful to be able to pass information from SPL to U-Boot 33 proper to preserve state that is known in SPL and is needed in U-Boot. 34 Enable this to locate the handoff information in U-Boot proper, early 35 in boot. It is available in gd->handoff. The state state is set up 44 This option can minilize the SPL size to compatible with AST2600-A0 48 bool "Pass hand-off information from SPL to U-Boot proper" 53 used to pass information like the size of SDRAM from SPL to U-Boot 59 default "arch/$(ARCH)/cpu/u-boot-spl.lds" [all …]
|
/openbmc/u-boot/ |
H A D | README | 1 # SPDX-License-Identifier: GPL-2.0+ 3 # (C) Copyright 2000 - 2013 9 This directory contains the source code for U-Boot, a boot loader for 15 The development of U-Boot is closely related to Linux: some parts of 37 scattered throughout the U-Boot source identifying the people or 41 actual U-Boot source tree; however, it can be created dynamically 51 U-Boot, you should send a message to the U-Boot mailing list at 52 <u-boot@lists.denx.de>. There is also an archive of previous traffic 53 on the mailing list - please search the archive before asking FAQ's. 54 Please see http://lists.denx.de/pipermail/u-boot and [all …]
|
/openbmc/linux/Documentation/driver-api/mtd/ |
H A D | nand_ecc.rst | 2 NAND Error-correction Code 8 Having looked at the linux mtd/nand Hamming software ECC engine driver 11 After that the speed was increased by 35-40%. 22 NAND flash (at least SLC one) typically has sectors of 256 bytes. 23 However NAND flash is not extremely reliable so some error detection 63 - cp0 is the parity that belongs to all bit0, bit2, bit4, bit6. 69 - cp2 is the parity over bit0, bit1, bit4 and bit5 70 - cp3 is the parity over bit2, bit3, bit6 and bit7. 71 - cp4 is the parity over bit0, bit1, bit2 and bit3. 72 - cp5 is the parity over bit4, bit5, bit6 and bit7. [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | pcic.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * pcic.c: MicroSPARC-IIep PCI controller support 11 * CP-1200 by Eric Brower. 48 * schematics. And this actually sucks. -- zaitcev 1999/05/12 73 * JavaEngine-1 apparently has different versions. 75 * According to communications with Sun folks, for P2 build 501-4628-03: 76 * pin 0 - parallel, audio; 77 * pin 1 - Ethernet; 78 * pin 2 - su; 79 * pin 3 - PS/2 kbd and mouse. [all …]
|
/openbmc/linux/drivers/clk/sunxi-ng/ |
H A D | ccu-sun8i-a23.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 25 #include "ccu-sun8i-a23-a33.h" 39 .hw.init = CLK_HW_INIT("pll-cpux", "osc24M", 50 * With sigma-delta modulation for fractional-N on the audio PLL, 64 static SUNXI_CCU_NM_WITH_SDM_GATE_LOCK(pll_audio_base_clk, "pll-audio-base", 74 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_video_clk, "pll-video", 86 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_ve_clk, "pll-ve", 98 static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr_clk, "pll-ddr", 107 static SUNXI_CCU_NK_WITH_GATE_LOCK_POSTDIV(pll_periph_clk, "pll-periph", [all …]
|
H A D | ccu-sun8i-a33.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 24 #include "ccu-sun8i-a23-a33.h" 37 .hw.init = CLK_HW_INIT("pll-cpux", "osc24M", 48 * With sigma-delta modulation for fractional-N on the audio PLL, 62 static SUNXI_CCU_NM_WITH_SDM_GATE_LOCK(pll_audio_base_clk, "pll-audio-base", 72 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_video_clk, "pll-video", 84 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_ve_clk, "pll-ve", 96 static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr0_clk, "pll-ddr0", 105 static SUNXI_CCU_NK_WITH_GATE_LOCK_POSTDIV(pll_periph_clk, "pll-periph", [all …]
|
/openbmc/linux/drivers/media/platform/marvell/ |
H A D | cafe-driver.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * Copyright 2006-11 One Laptop Per Child Association, Inc. 11 * Copyright 2006-11 Jonathan Corbet <corbet@lwn.net> 28 #include <media/v4l2-device.h> 36 #include "mcam-core.h" 57 * Most of the camera controller registers are defined in mcam-core.h, 82 #define TWSIC0_MODE 0x00000002 /* 1 = 16-bit, 0 = 8-bit */ 130 dev_err(&(cam)->pdev->dev, fmt, ##arg); 132 dev_warn(&(cam)->pdev->dev, fmt, ##arg); 134 /* -------------------------------------------------------------------- */ [all …]
|
/openbmc/linux/arch/mips/txx9/generic/ |
H A D | setup.c | 5 * 2003-2005 (c) MontaVista Software, Inc. 6 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007 18 #include <linux/clk-provider.h> 71 txx9_reg_res.end = (base & 0xfffffffffULL) + (size - 1); in txx9_reg_res_init() 102 if (strstr(board_vecs[i]->system, name)) in find_board_byname() 112 int i; /* Always ignore the "-c" at argv[0] */ in prom_init_cmdline() 188 pr_info("TX49XX I-Cache disabled.\n"); in txx9_cache_fixup() 190 pr_info("TX49XX D-Cache disabled.\n"); in txx9_cache_fixup() 273 strcpy(txx9_system_type, txx9_board_vec->system); in prom_init() 275 txx9_board_vec->prom_init(); in prom_init() [all …]
|
/openbmc/linux/fs/jffs2/ |
H A D | scan.c | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 31 (*(noise))--; \ 43 * Returning an error will abort the mount - bad checksums etc. should just mark the space 55 if (!jffs2_can_mark_obsolete(c) && min < c->wbuf_pagesize) in min_free() 56 return c->wbuf_pagesize; in min_free() 75 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) in file_dirty() 79 jeb->dirty_size += jeb->wasted_size; in file_dirty() 80 c->dirty_size += jeb->wasted_size; in file_dirty() 81 c->wasted_size -= jeb->wasted_size; in file_dirty() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_guts.c | 2 * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. 4 * Copyright (C) 2002-2011 Aleph One Ltd. 53 chunk = (u32) (addr >> dev->chunk_shift); in yaffs_addr_to_chunk() 55 if (dev->chunk_div == 1) { in yaffs_addr_to_chunk() 57 offset = (u32) (addr & dev->chunk_mask); in yaffs_addr_to_chunk() 59 /* Non power-of-2 case */ in yaffs_addr_to_chunk() 63 chunk /= dev->chunk_div; in yaffs_addr_to_chunk() 65 chunk_base = ((loff_t) chunk) * dev->data_bytes_per_chunk; in yaffs_addr_to_chunk() 66 offset = (u32) (addr - chunk_base); in yaffs_addr_to_chunk() 128 memset(dev->temp_buffer, 0, sizeof(dev->temp_buffer)); in yaffs_init_tmp_buffers() [all …]
|