1. 21 5月, 2019 24 次提交
    • M
      mpc83xx: Migrate CONFIG_SYS_{BR, OR}*_PRELIM to Kconfig · fe7d654d
      Mario Six 提交于
      Migrate the BR/OR settings to Kconfig. These must be known at compile
      time, so cannot be configured via DT.
      
      Configuration of this crucial variable should still be somewhat
      comfortable. Hence, make its fields configurable in Kconfig, and
      assemble the final value from these.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      fe7d654d
    • M
      sbc8349: Remove SDRAM functionality · daac2086
      Mario Six 提交于
      The MPC8349EMDS configuration was the basis for the sbc8349, so it also
      contains its SDRAM option.
      
      Since
      * the SDRAM has to be soldered onto the board,
      * the sbc8349 never used the support, and
      * the support never worked (see previous patch fixing it),
      
      we can assume that the support on the sbc8349 is an artifact created by
      copying the MPC8349EMDS config wholesome.
      
      Hence, instead of creating a separate sbc8349 config that supports
      SDRAM, we can remove the SDRAM option for this board.
      
      Should it be needed in the future, it can be copied from the new
      MPC8349EMDS_SDRAM board.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      daac2086
    • M
      mpc83xx: Simplify BR,OR lines · a8f97539
      Mario Six 提交于
      Re-format all BR,OR #define lines into single lines. This makes them
      harder to read, but accessible to semi-automatic replacement.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      a8f97539
    • M
      tqm834x: Expand CONFIG_SYS_OR_TIMING_FLASH macro · 87ee5104
      Mario Six 提交于
      We want to normalize all BR/OR config lines as much as possible.
      
      The TQM834x board uses CONFIG_SYS_OR_TIMING_FLASH in a OR definition,
      which we want to remove. But CONFIG_SYS_OR_TIMING_FLASH is also used
      outside of the config file.
      
      Replace these usages with the definition of the variable, so we can
      remove the variable in the next patch.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      87ee5104
    • M
      mpc83xx: Normalize BR/OR option lines · 5d2f4c96
      Mario Six 提交于
      All BR/OR option lines should have the same layout to make them easier
      to migrate to Kconfig. This includes using the same option macros
      everywhere.
      
      The normalize the lines,
      * replace function macros with their results, and
      * replace hardcoded hex values with standard macros
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      5d2f4c96
    • M
      mpc83xx: Migrate LBLAW_* to Kconfig · 9c5df7a2
      Mario Six 提交于
      The LBLAW_* values determine the window configuration of the memory
      controller. Hence, they must be known at compile time, and cannot be
      implemented in the DT mechanism.
      
      Configuration of this crucial variable should still be somewhat
      comfortable. Hence, make its fields configurable in Kconfig, and
      assemble the final value from these.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      9c5df7a2
    • M
      mpc83xx: Migrate BATS config to Kconfig · 30915ab9
      Mario Six 提交于
      The BATs (block address translation registers) determine the initial
      memory window mappings. Hence, they must be known at compile time and
      cannot be implemented in the DT mechanism.
      
      Configuration of this crucial variable should still be somewhat
      comfortable. Hence, make its fields configurable in Kconfig, and
      assemble the final value from these.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      30915ab9
    • M
      powerpc: Migrate HIGH_BATS to Kconfig · 93de2530
      Mario Six 提交于
      Migrate the CONFIG_HIGH_BATS variable to Kconfig.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      93de2530
    • M
      mpc83xx: pcie: Read the clock from registers · d0c62572
      Mario Six 提交于
      The MPC83xx DM timer driver disables arch.pciexp*_clk, and uses
      clk_get_rate instead. But the legacy MPC83xx PCIe driver still uses
      arch.pciexp*_clk for the clock.
      
      Hence, read the PCIe clock from the registers in the legacy MPC83xx PCIe
      driver.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      d0c62572
    • M
      mpc83xx: Kconfig: Migrate HRCW to Kconfig · 21c1502a
      Mario Six 提交于
      The HRCW (hardware reset configuration word) is a constant that must be
      hard-coded into the boot loader image. So, it must be available at
      compile time, and cannot be migrated to the DT mechanism, but has to be
      kept in Kconfig.
      
      Configuration of this crucial variable should still be somewhat
      comfortable. Hence, make its fields configurable in Kconfig, and
      assemble the final value from these.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      21c1502a
    • M
      mpc83xx: Get rid of CONFIG_83XX_CLKIN · ff3bb0c4
      Mario Six 提交于
      MPC83xx uses CONFIG_83XX_CLKIN instead of CONFIG_SYS_CLK_FREQ to set the
      system clock. To migrate the architecture, we can replace
      CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ.
      
      To do this
      * replace all occurrences of CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ
      * set CONFIG_SYS_CLK_FREQ to the old value of CONFIG_83XX_CLKIN in all
        MPC83xx config files
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      ff3bb0c4
    • M
      mpc83xx: Replace CONFIG_83XX_CLKIN in calculations · 0f06f57c
      Mario Six 提交于
      CONFIG_SYS_CLK_FREQ is the standard way to set the system clock
      frequency. On MPC83xx, CONFIG_83XX_CLKIN is used for this purpose.
      Hence, the obvious way is to replace CONFIG_83XX_CLKIN with
      CONFIG_SYS_CLK_FREQ.
      
      A few MPC83xx boards use the CONFIG_83XX_CLKIN variable for computing
      CONFIG_SYS_NS16550_CLK. This makes it harder to replace
      CONFIG_83XX_CLKIN.
      
      But the value of the multiplicator can be read from the SPMR register.
      
      Hence, replace the static calculations with a call to a new get_bus_freq
      function, as other architectures do.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      0f06f57c
    • M
      mpc83xx: Migrate legacy PCI options to Kconfig · 1cbc10c8
      Mario Six 提交于
      The MPC83xx include files contain some settings of the PCI subsystem.
      
      Migrate these to Kconfig until a proper DM PCI driver exists.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      1cbc10c8
    • M
      MPC837XERDB: Remove CONFIG_MPC837XERDB · 47a1b3f4
      Mario Six 提交于
      CONFIG_MPC837XERDB is unused, and TARGET_MPC837XERDB could replace it.
      
      Hence, get rid of CONFIG_MPC837XERDB.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      47a1b3f4
    • M
      MPC837XEMDS: Remove CONFIG_MPC837XEMDS · 897c82ae
      Mario Six 提交于
      CONFIG_MPC837XEMDS is unused, and TARGET_MPC837XEMDS could replace it.
      
      Hence, get rid of CONFIG_MPC837XEMDS.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      897c82ae
    • M
      MPC8315ERDB: Remove CONFIG_MPC8315ERDB · d6a77954
      Mario Six 提交于
      CONFIG_MPC8315ERDB is unused, and TARGET_MPC8315ERDB could replace it.
      
      Hence, get rid of CONFIG_MPC8315ERDB.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      d6a77954
    • M
      MPC8313ERDB: Remove CONFIG_MPC8313ERDB · 67185d19
      Mario Six 提交于
      CONFIG_MPC8313ERDB is unused, and
      TARGET_MPC8313ERDB_NAND/TARGET_MPC8313ERDB_NOR Kconfig could replace it.
      
      Hence, get rid of CONFIG_MPC8313ERDB.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      67185d19
    • M
      strider: Migrate to CONFIG_TARGET_STRIDER · 0e93bb13
      Mario Six 提交于
      Use the proper CONFIG_TARGET_STRIDER Kconfig option to replace the
      CONFIG_STRIDER ad-hoc config option.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      0e93bb13
    • M
      hrcon: Migrate to CONFIG_TARGET_HRCON · d6918816
      Mario Six 提交于
      Use the proper CONFIG_TARGET_HRCON Kconfig option to replace
      the CONFIG_HRCON ad-hoc config option.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      d6918816
    • M
      MPC8349ITX: Migrate to CONFIG_TARGET_MPC8349ITX · 4cb06d3e
      Mario Six 提交于
      Use the proper CONFIG_TARGET_MPC8349ITX Kconfig option to replace the
      CONFIG_MPC8349ITX ad-hoc config option.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      4cb06d3e
    • M
      MPC832XEMDS: Migrate to CONFIG_TARGET_MPC832XEMDS · 8014c162
      Mario Six 提交于
      Use the proper CONFIG_TARGET_MPC832XEMDS Kconfig option to replace the
      CONFIG_MPC832XEMDS ad-hoc config option.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      8014c162
    • M
      ve8313: Merge BR/OR settings · 1e35d425
      Mario Six 提交于
      The ve8313 has the option of either configuring the eLBC (enhanced local system bus) such that
      
      * NOR flash is the first memory bank, and NAND flash is the second memory bank, or
      * NAND flash is the first memory bank, and NOR flash is the second memory bank,
      
      by using CONFIG_SYS_NOR_{BR,OR}_PRELIM and
      CONFIG_SYS_NAND_{BR,OR}_PRELIM for defining
      CONFIG_SYS_{BR,OR}{0,1}_PRELIM.
      
      After Kconfig migration, replacing some lines in the defconfig will have
      the same effect.
      
      Hence, we will not create distinct ve8313_{NOR,NAND} configs for such a
      small change.
      
      Instead, fix the current default (NOR first, NAND second), and unroll
      the  CONFIG_SYS_NAND_{BR,OR}_PRELIM options. This will ease the Kconfig
      migration
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      1e35d425
    • M
      mpc8315erdb: Merge BR/OR settings · 7577cb19
      Mario Six 提交于
      The mpc8315erdb has the option of either configuring the eLBC (enhanced
      local system bus) such that
      
      * NOR flash is the first memory bank, and NAND flash is the second
        memory bank, or
      * NAND flash is the first memory bank, and NOR flash is the second
        memory bank,
      
      by using CONFIG_SYS_NOR_{BR,OR}_PRELIM and
      CONFIG_SYS_NAND_{BR,OR}_PRELIM for defining
      CONFIG_SYS_{BR,OR}{0,1}_PRELIM.
      
      After Kconfig migration, replacing some lines in the defconfig will have
      the same effect.
      
      Hence, we will not create distinct ve8313_{NOR,NAND} configs for such a small change.
      
      Instead, fix the current default (NOR first, NAND second), and unroll
      the CONFIG_SYS_NAND_{BR,OR}_PRELIM options. This will ease the Kconfig
      migration.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      7577cb19
    • M
      mpc83xx: Make distinct MPC8349EMDS_SDRAM board · ddc935fc
      Mario Six 提交于
      The MPC8349EMDS config file contains config options to enable SDRAM
      support. To keep this ability after the Kconfig migration, create a new
      MPC8349EMDS_SDRAM board that enables the SDRAM support and remove the
      SDRAM support from the original board.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      ddc935fc
  2. 20 5月, 2019 16 次提交