Skip to content
Snippets Groups Projects
  1. Apr 15, 2014
  2. Apr 07, 2014
    • David Feng's avatar
      arm64 patch: gicv3 support · c71645ad
      David Feng authored
      
      This patch add gicv3 support to uboot armv8 platform.
      
      Changes for v2:
        - rename arm/cpu/armv8/gic.S with arm/lib/gic_64.S
        - move smp_kick_all_cpus() from gic.S to start.S, it would be
          implementation dependent.
        - Each core initialize it's own ReDistributor instead of master
          initializeing all ReDistributors. This is advised by arnab.basu
          <arnab.basu@freescale.com>.
      
      Signed-off-by: default avatarDavid Feng <fenghua@phytium.com.cn>
      c71645ad
    • Marcel Ziswiler's avatar
      arm: vf610: add enet1 support · 6c81a93d
      Marcel Ziswiler authored
      
      This patch contains several changes required for second Ethernet
      (enet1/RMII1) port on vf610
      - ANADIG PLL5 control definitions required for Ethernet RMII1 clock
      - Secondary Ethernet (enet1) MAC RMII1 base address definition
      - RMII1 iomux definitions
      - VF610_PAD_PTA6__RMII0_CLKOUT iomux definition required for
        internal (e.g. crystal-less) Ethernet clocking.
      
      Signed-off-by: default avatarMarcel Ziswiler <marcel@ziswiler.com>
      [stefan@agner.ch: regrouped patch]
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      6c81a93d
    • Marcel Ziswiler's avatar
      arm: vf610: add uart0 clock/iomux definitions · c7098965
      Marcel Ziswiler authored
      
      Add CCM_CCGR0_UART0_CTRL_MASK clock definition and add TX/RX iomux
      definitions for UART0 (aka. SCI0).
      
      Signed-off-by: default avatarMarcel Ziswiler <marcel@ziswiler.com>
      [stefan@agner.ch: regrouped patch]
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      c7098965
    • Marcel Ziswiler's avatar
      arm: vf610: fix anadig register struct · 25839c01
      Marcel Ziswiler authored
      
      The anadig_reg structure started at the wrong offset (fixed by adding
      reserved_0x000[4]), was missing some reserved field required for
      alignment purpose (reserved_0x094[3] between pll4_denom and pll6_ctrl)
      and further contained a too short reserved field causing further miss-
      alignment (reserved_0x0C4[7]). Also, rename all the reserved fields
      and using a memory offset based scheme for.
      
      Discovered and tested by temporarily putting the following debug
      instrumentation into board_init():
          struct anadig_reg *anadig = (struct anadig_reg *)ANADIG_BASE_ADDR;
          printf("&anadig->pll3_ctrl=0x%p\n", &anadig->pll3_ctrl);
          printf("&anadig->pll5_ctrl=0x%p\n", &anadig->pll5_ctrl);
      
      Signed-off-by: default avatarMarcel Ziswiler <marcel@ziswiler.com>
      [stefan@agner.ch: regrouped patch]
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      25839c01
    • York Sun's avatar
      armv8/cache: Change cache invalidate and flush function · 1e6ad55c
      York Sun authored
      
      When SoC first boots up, we should invalidate the cache but not flush it.
      We can use the same function for invalid and flush mostly, with a wrapper.
      
      Invalidating large cache can ben slow on emulator, so we postpone doing
      so until I-cache is enabled, and before enabling D-cache.
      
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      CC: David Feng <fenghua@phytium.com.cn>
      1e6ad55c
    • Chin Liang See's avatar
      socfpga: Adding Clock Manager driver · ddfeb0aa
      Chin Liang See authored
      
      Clock Manager driver will be called to reconfigure all the
      clocks setting based on user input. The input are passed to
      Preloader through handoff files
      
      Signed-off-by: default avatarChin Liang See <clsee@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      CC: Pavel Machek <pavel@denx.de>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      ddfeb0aa
  3. Mar 28, 2014
  4. Mar 24, 2014
    • Pantelis Antoniou's avatar
      mmc: Split mmc struct, rework mmc initialization (v2) · 93bfd616
      Pantelis Antoniou authored
      
      The way that struct mmc was implemented was a bit of a mess;
      configuration and internal state all jumbled up in a single structure.
      
      On top of that the way initialization is done with mmc_register leads
      to a lot of duplicated code in drivers.
      
      Typically the initialization got something like this in every driver.
      
      	struct mmc *mmc = malloc(sizeof(struct mmc));
      	memset(mmc, 0, sizeof(struct mmc);
      	/* fill in fields of mmc struct */
      	/* store private data pointer */
      	mmc_register(mmc);
      
      By using the new mmc_create call one just passes an mmc config struct
      and an optional private data pointer like this:
      
      	struct mmc = mmc_create(&cfg, priv);
      
      All in tree drivers have been updated to the new form, and expect
      mmc_register to go away before long.
      
      Changes since v1:
      
      * Use calloc instead of manually calling memset.
      * Mark mmc_register as deprecated.
      
      Signed-off-by: default avatarPantelis Antoniou <panto@antoniou-consulting.com>
      93bfd616
  5. Mar 12, 2014
  6. Mar 09, 2014
  7. Mar 05, 2014
  8. Mar 04, 2014
    • pekon gupta's avatar
      mtd: nand: omap: move omap_elm.h from arch/arm/include/asm to drivers/mtd/nand · 2eda892f
      pekon gupta authored
      
      omap_elm.h is a generic header used by OMAP ELM driver for all TI platfoms.
      Hence this file should be present in generic folder instead of architecture
      specific include folder.
      Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
      
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
      2eda892f
    • pekon gupta's avatar
      mtd: nand: omap: move omap_gpmc.h from arch/arm/include/asm to drivers/mtd/nand · 6aff0509
      pekon gupta authored
      
      omap_gpmc.h is a generic header used by OMAP NAND driver for all TI platfoms.
      Hence this file should be present in generic folder instead of architecture
      specific include folder.
      Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
      
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
      6aff0509
    • pekon gupta's avatar
      mtd: nand: omap: merge duplicate GPMC data from different arch-xx headers into common omap_gpmc.h · 51d192c4
      pekon gupta authored
      
      Each SoC platform (AM33xx, OMAP3, OMAP4, OMAP5) has its own copy of GPMC related
      defines and declarations scattered in SoC platform specific header files
      like include/asm/arch-xx/cpu.h
      However, GPMC hardware remains same across all platforms thus this patch merges
      GPMC data scattered across different arch-xx specific header files into single
      header file include/asm/arch/omap_gpmc.h
      
      Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
      
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
      51d192c4
    • pekon gupta's avatar
      mtd: nand: omap: remove unused #defines from common omap_gpmc.h · a7e36fc9
      pekon gupta authored
      
      OMAP NAND driver can detect Page-size and OOB-size of NAND device from ONFI
      params or nand_id[] table. And based on that it defines ECC layout.
      This patch
      1) removes following board configs used for defining NAND ECC layout
      	- GPMC_NAND_ECC_LP_x16_LAYOUT (for large page x16 NAND)
      	- GPMC_NAND_ECC_LP_x8_LAYOUT  (for large page x8 NAND)
      	- GPMC_NAND_ECC_SP_x16_LAYOUT (for small page x16 NAND)
      	- GPMC_NAND_ECC_SP_x8_LAYOUT  (for small page x8 NAND)
      
      2) removes unused #defines in common omap_gpmc.h depending on above configs
      
      Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
      
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
      a7e36fc9
    • pekon gupta's avatar
      mtd: nand: omap: remove redundant platform specific header: arch-xx/omap_gpmc.h · 50899183
      pekon gupta authored
      
      Currently there are two sets of omap_gpmc.h header files
      (a) arch/arm/include/asm/omap_gpmc.h
       common header file for all platforms, containing defines and declarations used
       by GPMC NAND driver.
      
      (b) arch/arm/include/asm/arch-xx/omap_gpmc.h
       SoC platform specific header file containing defines like ECC layout.
      
      This patch removes platform specific arch-xx/omap_gpmc.c because:
       - GPMC hardware engine is common for all SoC platforms hence only (a) is enough
       - ECC layout is now defined in omap_nand.c driver itself based on ecc-scheme
         selected. Hence all ECC layout declarations in (b) are redundant.
      
      Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
      
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
      50899183
    • Alexey Brodkin's avatar
      sizes.h - consolidate for all architectures · 1ace4022
      Alexey Brodkin authored
      
      Copied from Linux sources "include/linux/sizes.h" commit
      413541dd66d51f791a0b169d9b9014e4f56be13c
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Acked-by: default avatarTom Rini <trini@ti.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      [trini: Add bcm Kona platforms to the patch]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      1ace4022
    • Michal Simek's avatar
      mmc: zynq: Add OF initialization support · 345d3c0f
      Michal Simek authored
      
      Enable initialize sdhci from DTB.
      
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      345d3c0f
    • pekon gupta's avatar
      mtd: nand: omap: optimize chip->ecc.hwctl() for H/W ECC schemes · f5f1f614
      pekon gupta authored
      
      chip->ecc.hwctl() is used for preparing the H/W controller before read/write
      NAND accesses (like assigning data-buf, enabling ECC scheme configs, etc.)
      
      Though all ECC schemes in OMAP NAND driver use GPMC controller for generating
      ECC syndrome (for both Read/Write accesses). But but in current code
      HAM1_ECC and BCHx_ECC schemes implement individual function to achieve this.
      This patch
      (1) removes omap_hwecc_init() and omap_hwecc_init_bch()
      as chip->ecc.hwctl will re-initializeGPMC before every read/write call.
      omap_hwecc_init_bch() -> omap_enable_ecc_bch()
      
      (2) merges the GPMC configuration code for all ECC schemes into
      single omap_enable_hwecc(), thus adding scalability for future ECC schemes.
      omap_enable_hwecc() + omap_enable_ecc_bch() -> omap_enable_hwecc()
      
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
      f5f1f614
  9. Feb 22, 2014
  10. Feb 21, 2014
  11. Feb 20, 2014
  12. Feb 19, 2014
Loading