diff mbox

[U-Boot,6/8] x86: Move CONFIG_8259_PIC and CONFIG_8254_TIMER to Kconfig

Message ID 1445564355-19911-7-git-send-email-bmeng.cn@gmail.com
State Superseded
Headers show

Commit Message

Bin Meng Oct. 23, 2015, 1:39 a.m. UTC
Add Kconfig options for 8259 and 8254.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 arch/x86/Kconfig             | 8 ++++++++
 include/configs/x86-common.h | 2 --
 2 files changed, 8 insertions(+), 2 deletions(-)

Comments

Simon Glass Oct. 23, 2015, 1:47 a.m. UTC | #1
Hi Bin,

On 22 October 2015 at 19:39, Bin Meng <bmeng.cn@gmail.com> wrote:
> Add Kconfig options for 8259 and 8254.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  arch/x86/Kconfig             | 8 ++++++++
>  include/configs/x86-common.h | 2 --
>  2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index f92082d..526a85e 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -420,6 +420,14 @@ config PCIE_ECAM_SIZE
>           so a default 0x10000000 size covers all of the 256 buses which is the
>           maximum number of PCI buses as defined by the PCI specification.
>
> +config I8259_PIC
> +       bool
> +       default y
> +
> +config I8254_TIMER
> +       bool
> +       default y

Can you add help for these two please?

> +
>  source "arch/x86/lib/efi/Kconfig"
>
>  endmenu
> diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
> index 58d2f42..ab9fa0b 100644
> --- a/include/configs/x86-common.h
> +++ b/include/configs/x86-common.h
> @@ -155,8 +155,6 @@
>   */
>
>  #define CONFIG_SYS_X86_TSC_TIMER
> -#define CONFIG_I8259_PIC
> -#define CONFIG_I8254_TIMER
>
>  #define CONFIG_SYS_STACK_SIZE                  (32 * 1024)
>  #define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_TEXT_BASE
> --
> 1.8.2.1
>

Regards,
Simon
diff mbox

Patch

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f92082d..526a85e 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -420,6 +420,14 @@  config PCIE_ECAM_SIZE
 	  so a default 0x10000000 size covers all of the 256 buses which is the
 	  maximum number of PCI buses as defined by the PCI specification.
 
+config I8259_PIC
+	bool
+	default y
+
+config I8254_TIMER
+	bool
+	default y
+
 source "arch/x86/lib/efi/Kconfig"
 
 endmenu
diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index 58d2f42..ab9fa0b 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -155,8 +155,6 @@ 
  */
 
 #define CONFIG_SYS_X86_TSC_TIMER
-#define CONFIG_I8259_PIC
-#define CONFIG_I8254_TIMER
 
 #define CONFIG_SYS_STACK_SIZE			(32 * 1024)
 #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE