20 Feb, 2014

1 commit

  • Now we are ready to switch over to real Kbuild.

    This commit disables temporary scripts:
    scripts/{Makefile.build.tmp, Makefile.host.tmp}
    and enables real Kbuild scripts:
    scripts/{Makefile.build,Makefile.host,Makefile.lib}.

    This switch is triggered by the line in scripts/Kbuild.include
    -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
    +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj

    We need to adjust some build scripts for U-Boot.
    But smaller amount of modification is preferable.

    Additionally, we need to fix compiler flags which are
    locally added or removed.

    In Kbuild, it is not allowed to change CFLAGS locally.
    Instead, ccflags-y, asflags-y, cppflags-y,
    CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
    are prepared for that purpose.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

11 Nov, 2013

1 commit


10 Nov, 2013

2 commits

  • Conflicts:
    arch/arm/cpu/arm926ejs/mxs/Makefile
    board/compulab/cm_t35/Makefile
    board/corscience/tricorder/Makefile
    board/ppcag/bg0900/Makefile
    drivers/bootcount/Makefile
    include/configs/omap4_common.h
    include/configs/pdnb3.h

    Makefile conflicts are due to additions/removals of
    object files on the ARM branch vs KBuild introduction
    on the main branch. Resolution consists in adjusting
    the list of object files in the main branch version.
    This also applies to two files which are not listed
    as conflicting but had to be modified:

    board/compulab/common/Makefile
    board/udoo/Makefile

    include/configs/omap4_common.h conflicts are due to
    the OMAP4 conversion to ti_armv7_common.h on the ARM
    side, and CONFIG_SYS_HZ removal on the main side.
    Resolution is to convert as this icludes removal of
    CONFIG_SYS_HZ.

    include/configs/pdnb3.h is due to a removal on ARM side.
    Trivial resolution is to remove the file.

    Note: 'git show' will also list two files just because
    they are new:

    include/configs/am335x_igep0033.h
    include/configs/omap3_igep00x0.h

    Albert ARIBAUD
     
  • This is actually required in order for a Linux kernel to boot
    successfully on a physical Malta board. Without enabling the RTC, a
    Malta Linux kernel will get stuck in its estimate_frequencies function
    on boot.

    Signed-off-by: Paul Burton

    Paul Burton
     

02 Nov, 2013

2 commits


01 Nov, 2013

1 commit


15 Oct, 2013

2 commits


19 Sep, 2013

1 commit


24 Jul, 2013

1 commit


02 Apr, 2013

1 commit

  • 'bool' is defined in random places. This patch consolidates them into a
    single header file include/linux/types.h, using stdbool.h introduced in C99.

    All other #define, typedef and enum are removed. They are all consistent with
    true = 1, false = 0.

    Replace FALSE, False with false. Replace TRUE, True with true.
    Skip *.py, *.php, lib/* files.

    Signed-off-by: York Sun

    York Sun
     

12 Mar, 2013

1 commit


14 Nov, 2012

1 commit

  • The PMIC framework has been extended to support multiple instances of
    the variety of devices responsible for power management.
    This change allows supporting of e.g. fuel gauge, charger, MUIC (Micro USB
    Interface Circuit).
    Power related includes have been moved to ./include/power directory.
    This is a first of a series of patches - in the future "pmic" will be
    replaced with "power".

    Two important issues:
    1. The PMIC needs to be initialized just after malloc is configured
    2. It uses list to hold information about available PMIC devices

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Kyungmin Park
    Cc: Stefano Babic

    Łukasz Majewski
     

02 Sep, 2012

1 commit

  • This driver uses the century bit of this RTC in the opposite way Linux does.
    From Linux's rtc-pcf8563.c:
    /*
    * The meaning of MO_C bit varies by the chip type.
    * From PCF8563 datasheet: this bit is toggled when the years
    * register overflows from 99 to 00
    * 0 indicates the century is 20xx
    * 1 indicates the century is 19xx
    * From RTC8564 datasheet: this bit indicates change of
    * century. When the year digit data overflows from 99 to 00,
    * this bit is set. By presetting it to 0 while still in the
    * 20th century, it will be set in year 2000, ...
    * There seems no reliable way to know how the system use this
    * bit. So let's do it heuristically, assuming we are live in
    * 1970...2069.
    */

    As U-Boot's PCF8563 driver does not say it is supposed to support the RTC8564,
    make this driver compatible with Linux's by giving the opposite meaning to the
    century bit.

    Signed-off-by: Benoît Thébaudeau
    Cc: Wolfgang Denk

    Benoît Thébaudeau
     

01 Sep, 2012

4 commits


11 Aug, 2012

1 commit

  • Support for DS1388 is added by extending the DS1337 driver. DS1388 is
    similar to DS1337. The time registers are offset by 1 (due to support
    for hundreds of seconds), and there is no century bit.
    The configuration and trickle charge registers are also different.
    Tested on hardware with Freescale P2010 and DS1388.

    Signed-off-by: Kenth Eriksson

    Kenth Eriksson
     

07 Jul, 2012

1 commit

  • Add support for the M41T82 RTC to the m41t62 driver. The only
    difference that needs to be handled by this driver, is to
    clear the HT (Halt Update) bit upon reset. This bit is not
    used on the M41T62, so its save to clear this bit always.

    The M41T82 support will be used by the X600 (SPEAr600)
    board support.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

07 Dec, 2011

1 commit


17 Nov, 2011

1 commit

  • Fix:
    s3c24x0_rtc.c: In function 'rtc_get':
    s3c24x0_rtc.c:67:53: warning: variable 'a_armed' set but not used
    s3c24x0_rtc.c:67:45: warning: variable 'a_year' set but not used
    s3c24x0_rtc.c:67:38: warning: variable 'a_mon' set but not used
    s3c24x0_rtc.c:67:30: warning: variable 'a_date' set but not used
    s3c24x0_rtc.c:67:22: warning: variable 'a_hour' set but not used
    s3c24x0_rtc.c:67:15: warning: variable 'a_min' set but not used
    s3c24x0_rtc.c:67:8: warning: variable 'a_sec' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     

11 Nov, 2011

1 commit


08 Nov, 2011

3 commits

  • * 'master' of git://git.denx.de/u-boot-arm:
    Arm: re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board
    arm: jadecpu: Readd MACH_TYPE_JADECPU
    at91: defined mach-types for otc570 board in board config file
    at91: defined mach-types for meesc board in board config file
    mx31pdk: Enable D and I caches
    ehci-mxc: remove incorrect comment
    README: Fix supported i.MX SoC list for CONFIG_MXC_SPI
    mx53: Turn off child clocks before reconfigure perclk_root
    qong: enable support for compressed images
    imx: imx31_phycore.h: fix checkpatch warnings
    vision2: Remove unused get_board_rev function
    mx53smd: Remove unused get_board_rev function
    mx53ard: Remove unused get_board_rev function
    mx53evk: Remove unused get_board_rev function
    mx53evk: Add RTC support
    mx53loco: Remove unused get_board_rev function
    mx53evk: Remove unneeded '1' from mx53evk.h
    OMAP3: mvblx: Initial support for mvBlueLYNX-X
    ARM: dig297: Define MACH_TYPE_OMAP3_CPS and CONFIG_MACH_TYPE
    omap3: mem: Move comments next to definitions
    omap3: mem: Clean-up whitespaces
    omap3: mem: Define and use common macros
    Davinci: ea20: added PREBOOT to configuration
    Davinci: ea20: added I2C support
    Davinci: ea20: added video support
    VIDEO: davinci: add framebuffer to da8xx
    ARM: Davinci: added missing registers to hardware.h
    Davinci: ea20: add gpios for LCD backlight control
    Davinci: ea20: add gpio for keeping power on in board_late_init
    Davinci: ea20: Add default U-Boot environment
    Davinci: ea20: Add early init to get early output from console
    Davinci: ea20: Add NAND support
    Davinci: ea20: set GPIOs to hold MII-Phy in reset and set UART0-Switch for console
    Davinci: ea20: set console on UART0
    arm, davinci: add cam_enc_4xx support
    arm926ejs, davinci: add missing spi defines for dm365
    arm926ejs, davinci: add cpuinfo for dm365
    arm, davinci: add lowlevel function for dm365 soc
    arm, davinci: add header files for dm365
    spl, nand: add 4bit HW ecc oob first nand_read_page function
    arm, davinci: add support for new spl framework
    spl: add option for adding post memory test to the SPL framework
    net, davinci_emac: make clock divider in MDIO control register configurable
    arm, usb, davinci: make USBPHY_CTL register configurable
    usb, davinci: add enable_vbus() weak function
    omap3evm: fix errors caused by multiple definitions
    omap3evm: Add (quick) configuration for NAND only
    omap3evm: Add (quick) configuration for MMC/SD only
    omap3evm: move common config options to new file
    omap3evm: Prepare to split configuration
    omap3evm: Reorder related config options
    omap/spl: actually enable the console
    davinci_emac: compilation fix, phy is array now
    omap3evm: Set environment variable 'ethaddr'
    arm, arm926: fix missing symbols in NAND_SPL mode
    arm, davinci: Add function lpsc_syncreset()
    arm, davinci: replace CONFIG_PRELOADER with CONFIG_SPL_BUILD
    arm/km: portl2 environment address update to P1B
    arm/km: adapt bootcounter evaluation
    arm/km: enable jffs2 cmds
    arm/km: trigger reconfiguration for the Xilinx FPGA
    arm/km: add boardid and hwkey to kernel command line
    ARM: Reintroduce MACH_TYPE_KM_KIRKWOOD for keymile ARM boards
    netspace_v2: enable I2C EEPROM support
    netspace_v2: fix SDRAM configuration
    armada100: define CONFIG_SYS_CACHELINE_SIZE
    pantheon: define CONFIG_SYS_CACHELINE_SIZE
    kirkwood: define CONFIG_SYS_CACHELINE_SIZE
    kirkwood: drop empty asm-offsets.s file
    arm/km/mgcoge3un: enhance "waitforne" feature
    arm/km: add variable waitforne to mgcoge3un
    gplugD: Fix for error:MACH_TYPE_SHEEVAD undeclared
    ARM: dreamplug: fix compilation
    ARM: DockStar: fix compilation
    ARM: netspace_v2: fix warnings
    am335x: Drop board_sysinfo struct
    am335x: Temporarily add MACH_TYPE define
    misc:pmic:samsung Enable PMIC driver at C210 Universal target
    dcache:s5p CONFIG_SYS_CACHELINE_SIZE added for s5p UNIVERSAL C210 target
    dcache:s5p CONFIG_SYS_CACHELINE_SIZE added for s5p GONI target
    smdkv310: use macro for mmc data read function address
    smdkv310: use spl framework for mmc spl
    SMDKV310: use get_ram_size() to validate dram size
    SMDKV310: Initialize board id using CONFIG_MACH_TYPE
    ORIGEN : use absolute paths and fix tool naming
    ORIGEN : enable device tree support
    MX25: tx25: Fix building due to missing MACH_TYPE
    mx31: Add board support for HALE TT-01
    mx31: add ESD control registers
    mx31: define pins and init for UART2 and CSPI3
    MX35: add support for flea3 board
    MX51: vision2: add MACH_TYPE in config file
    vision2: Remove unused header file
    mx51evk: Remove unused get_board_rev function
    mx51evk: Remove unneeded '1' from mx51evk.h
    I2C: Fix mxc_i2c.c problem on imx31_phycore
    mx35pdk: Add RTC support
    mx51evk: Use GPIO API for configuring the IOMUX
    mx51evk: Add RTC support
    rtc: Make mc13783-rtc driver generic
    qong: remove unneeded IOMUX settings
    qong: Use mx31_set_gpr to setup USBH2 pins
    mx31: Introduce mx31_set_gpr function
    mx31pdk: Add MC13783 PMIC support
    qong: remove unneeded "1" from qong.h
    misc: pmic: fix regression in pmic_fsl.c (SPI)
    mx5 configs: CONFIG_PRIME should really be CONFIG_ETHPRIME
    MX35: Drop unnecessary prototypes from imx-regs.h
    I2C: added I2C-2 and I2C-3 to MX35
    MX35: factorize common assembly code
    MX35: add reset cause as provided by other i.MX
    MX35: add pins definition for UART3
    MX35: added ESDC structure to imx-regs

    Wolfgang Denk
     
  • Fix:
    rv3029.c: In function 'rtc_set':
    rv3029.c:98:6: warning: variable 'ret' set but not used
    [-Wunused-but-set-variable]
    rv3029.c: In function 'set_eere_bit':
    rv3029.c:131:6: warning: variable 'ret' set but not used
    [-Wunused-but-set-variable]
    rv3029.c: In function 'wait_eebusy':
    rv3029.c:149:9: warning: variable 'ret' set but not used
    [-Wunused-but-set-variable]
    rv3029.c: In function 'rtc_reset':
    rv3029.c:165:6: warning: variable 'ret' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Fix:
    ds3231.c: In function 'rtc_get':
    ds3231.c:90:52: warning: variable 'control' set but not used
    [-Wunused-but-set-variable]

    Fix is done by switching to standard debug() instead of custom macro.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

04 Nov, 2011

3 commits

  • Fix build issues:

    mvrtc.c: In function 'rtc_get':
    mvrtc.c:45: warning: implicit declaration of function 'readl'
    mvrtc.c: In function 'rtc_set':
    mvrtc.c:100: warning: implicit declaration of function 'writel'
    dreamplug.c: In function 'board_early_init_f':
    dreamplug.c:43: warning: implicit declaration of function 'kw_config_gpio'
    dreamplug.c: In function 'board_init':
    dreamplug.c:108: warning: implicit declaration of function 'kw_sdram_bar'
    drivers/rtc/librtc.o: In function `rtc_set':
    /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:92: undefined reference to `writel'
    /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:103: undefined reference to `writel'
    drivers/rtc/librtc.o: In function `rtc_reset':
    /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:117: undefined reference to `readl'
    /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:120: undefined reference to `readl'
    drivers/rtc/librtc.o: In function `rtc_get':
    /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:45: undefined reference to `readl'
    /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:48: undefined reference to `readl'
    ...

    Signed-off-by: Anatolij Gustschin
    Cc: Jason Cooper
    Cc: Albert ARIBAUD
    Acked-by: Marek Vasut

    Anatolij Gustschin
     
  • Rename mc13783-rtc so that it can be used for both MC13783 and MC13892 PMICs.

    efikamx board, for example, does use a MC13892 PMIC, but the RTC selection is currently made as:

    #define CONFIG_RTC_MC13783

    ,which is not very obvious.

    Let the MC13783 and MC13892 RTC be selected by:

    #define CONFIG_RTC_MC13XXX

    Signed-off-by: Fabio Estevam
    Acked-by: Stefano Babic

    Fabio Estevam
     
  • Fix:
    ds1337.c: In function 'rtc_get':
    ds1337.c:88:52: warning: variable 'control' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

28 Oct, 2011

1 commit


01 Oct, 2011

1 commit


05 Aug, 2011

2 commits


29 Jul, 2011

1 commit


18 May, 2011

2 commits


26 Apr, 2011

1 commit


12 Feb, 2011

1 commit


19 Jan, 2011

1 commit